Advertisement
Guest User

Untitled

a guest
Jun 24th, 2016
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 35.12 KB | None | 0 0
  1.  
  2. A rendszer sikeresen feltöltötte és hozzáadta a(z) OCC_2nd_fig.pdf mellékletet.Filippo Piccinini hozzáadva. Eltávolításához nyomja le a Backspace billentyűt.
  3.  
  4. Ugrás a tartalomra
  5. A Gmail használata képernyőolvasóval
  6. Keresés
  7.  
  8.  
  9.  
  10.  
  11. Gmail
  12. LEVÉLÍRÁS
  13. Címkék
  14. Beérkező levelek
  15. Csillagozott
  16. Fontos
  17. Elküldött levelek
  18. Piszkozatok (3)
  19. Körök
  20. Barátok
  21. Család
  22. Ismerősök
  23. Követés
  24. [Mailbox]
  25. KOLESZ EOTVOS
  26. MUNKA
  27. Notes
  28. Personal
  29. Travel
  30. VATERA
  31. Továbbiak
  32. Csevegés
  33. Tamás Balassa
  34. Ön most láthatatlan a hálózaton.
  35. Láthatatlanság megszüntetése
  36.  
  37. Személyek keresése...
  38. Nem dolgozik András Maróy
  39. Nem dolgozik Gergely Munkácsy
  40. Nem dolgozik József Farkas (Google Dokumentumok)
  41. Nem dolgozik László Dobó
  42. Zoltán Ozsvár
  43.  
  44. Megjelölés olvasottként Továbbiak
  45. 1–50/1 251
  46.  
  47. Beszélgetések
  48.  
  49. Elsődleges
  50. Közösségi
  51. 2 új
  52. Promóciók
  53. 2 új
  54. Frissítések
  55. Fórumok
  56.  
  57. Molnár Csaba (2)
  58. 11:47Csatolt fájl Nincs megcsillagozva
  59. gyorsítás a vektor kereséshez
  60.  
  61. https://www.mathworks.com/matlabcentral/newsreader/view_thread/306676 Quoting Molnár Csaba <mcsaba
  62. Filippo; én (2)
  63. 9:24Csatolt fájl Nincs megcsillagozva
  64. Documentation file for the release
  65.  
  66. 2016-06-24 9:24 GMT+02:00 Filippo Piccinini <f.piccinini@unibo.it>: Abel and Tamas please, in
  67. Peter Horvath
  68. jún. 23.Csatolt fájl Nincs megcsillagozva
  69. createreport
  70. MUNKA
  71.  
  72. Peter Horvath, Ph.D. Group Leader Synthetic and Systems Biology Unit Hungarian Academy of Sciences,
  73. No-IP.com
  74. jún. 23. Nincs megcsillagozva
  75. June Newsletter + SAVE $4 On Any Service
  76.  
  77. Let Us Know What You Think! Take a quick survey and receive $4 off any service. No-IP.com Support
  78. Peter Horvath
  79. jún. 23. Nincs megcsillagozva
  80. rad varnak a hallgatok
  81. MUNKA
  82.  
  83. Peter Horvath, Ph.D. Group Leader Synthetic and Systems Biology Unit Hungarian Academy of Sciences,
  84. Peter Horvath
  85. jún. 23.Csatolt fájl Nincs megcsillagozva
  86. Next iteration
  87. MUNKA
  88.  
  89. Attached. It is not that bad, we have to expand the results section and now reading it I dislike the
  90. Jozsef; Tamás (2)
  91. jún. 22. Nincs megcsillagozva
  92. holnap
  93.  
  94. Szia Jozsi, Elozo latogatasod ota itt var rad a 2literes! :) BT 2016. június 22. 15:15 Jozsef Molnar
  95. én; Ríz-Herczeg (2)
  96. jún. 22. Nincs megcsillagozva
  97. EIT nyilatkozat/szerzodes
  98.  
  99. Kedves Tamás! A küldött befogadó nyilatkozat elegendő. Köszönöm! -rhk- Ríz-Herczeg Krisztina +36 1
  100. Ríz-Herczeg; én (10)
  101. jún. 22.Csatolt fájl Nincs megcsillagozva
  102. PhD ELTE IK felvételi vizsga beosztás 2016 07 06 SZERDA
  103.  
  104. Ríz-Herczeg Krisztina +36 1 381 22 99 NEMZETKÖZI és TUDOMÁNYSZERVEZÉSI REFERENS ELTE INFORMATIKAI
  105. Peter; én (3)
  106. jún. 21. Nincs megcsillagozva
  107. ACC bug
  108. MUNKA
  109.  
  110. yes, I had to hack it. pls consider unstructured data. thanks, hp Peter Horvath, Ph.D. Group Leader
  111. Peter Horvath
  112. jún. 21. Nincs megcsillagozva
  113. I am out of town. Re: ACC bug
  114. MUNKA
  115.  
  116. Hi, I am working in satellite mode, answers might come with delay. In urgent case you reach me on: +
  117. Filippo Piccinini
  118. jún. 21. Nincs megcsillagozva
  119. I: article
  120.  
  121. Da: h938454@gmail.com [h938454@gmail.com] per conto di Peter Horvath [horvath.peter@brc.mta.hu]
  122. én; Battancs; Balázs (5)
  123. jún. 20.Csatolt fájl Nincs megcsillagozva
  124. PhD szobeli
  125.  
  126. Kedves Tamas! Mint azt a Dekani Hivatal is megerositette (lasd alabb), a level tehat kiment. Azt
  127. Filippo; Peter (2)
  128. jún. 20.Csatolt fájl Nincs megcsillagozva
  129. Submission last parts
  130. MUNKA
  131.  
  132. Dear All, Please find attached an early version of the ACC paper. This is only an info message that
  133. Filippo Piccinini (4)
  134. jún. 20.Csatolt fájl Nincs megcsillagozva
  135. Paragraph for find similar cells
  136.  
  137. Thank you Lassi, Meanwhile I wrote the other sections and now I can submit to Peter the entire
  138. szkabel; Tamás (2)
  139. jún. 19. Nincs megcsillagozva
  140. Background AL
  141.  
  142. Sziasztok, Szerintem egyebkent a B verzioban nem feltetlenul pozitiv az, hogy gyors marad a remove
  143. Peter Horvath (4)
  144. jún. 19. Nincs megcsillagozva
  145. gimnazista hallgatok
  146. MUNKA
  147.  
  148. Sziasztok, Akkor holnap reggel jonnek a hallgatok a csatolt schedule szerint. Sajnos en Debrecenben
  149. Krisztina Buzas
  150. jún. 17. Nincs megcsillagozva
  151. Fwd: Cikk
  152.  
  153. Továbbított levél Feladó: Peter Horvath <horvath.peter@brc.mta.hu> Dátum:
  154. Peter Horvath
  155. jún. 16.Csatolt fájl Nincs megcsillagozva
  156. Fwd: Fluidigm seminar invitation - June 21st
  157. MUNKA
  158.  
  159. FYI Peter Horvath, Ph.D. Group Leader Synthetic and Systems Biology Unit Hungarian Academy of
  160. Filippo Piccinini
  161. jún. 16.Csatolt fájl Nincs megcsillagozva
  162. Material for Kristina
  163.  
  164. Hello Peter, I merged the sections on my shoulders with the section written by Tamas. I'm
  165. Krisztián; Peter (2)
  166. jún. 16. Nincs megcsillagozva
  167. [biomag] a story
  168. MUNKA
  169.  
  170. Dear All, I see the point of Krisztian. Please try to solve it yourself, if it wont be solved we will
  171. Krisztina Buzas
  172. jún. 15.Csatolt fájl Nincs megcsillagozva
  173. kézirathoz
  174.  
  175. Kedves Péter és Tamás, első körben írtam valamit, legyetek kedvesek nézzétek meg, mit gondoltok. Nem
  176. Molnár; én (3)
  177. jún. 15. Nincs megcsillagozva
  178. Re: Csabi, csabi nem kellene itt nyitva hagynod a géped... így bárki írhat neked e-mail...
  179.  
  180. Semmi.. Ábel tanulja tőled a rosszat :D On Wed, Jun 15, 2016 at 4:38 PM, Tamás Balassa <
  181. Filippo Piccinini
  182. jún. 15.Csatolt fájl Nincs megcsillagozva
  183. Figure Active Learning
  184.  
  185. Figure Active Learning in a good quality //
  186. Filippo; Peter; én (3)
  187. jún. 15.Csatolt fájl Nincs megcsillagozva
  188. Submission of new sections
  189. MUNKA
  190.  
  191. Filippo, heres my review, enjoy. 2016-06-15 10:58 GMT+02:00 Peter Horvath <horvath.peter@brc.mta.
  192. Filippo Piccinini
  193. jún. 14.Csatolt fájl Nincs megcsillagozva
  194. Figure "abundant"
  195.  
  196. Figure "abundant" // Dr.
  197. Filippo Piccinini
  198. jún. 14.Csatolt fájl Nincs megcsillagozva
  199. Images
  200.  
  201. Images // Dr. Filippo Piccinini, Ph.
  202. Tamás; Buzas; Peter (6)
  203. jún. 14.Csatolt fájl Nincs megcsillagozva
  204. Tablazat
  205. MUNKA
  206.  
  207. OK akkor! szep napot! Peter Horvath, Ph.D. Group Leader Synthetic and Systems Biology Unit Hungarian
  208. JIE; én (3)
  209. jún. 14.Csatolt fájl Nincs megcsillagozva
  210. Test test test
  211.  
  212. Haha thanks! But the soup i bought is a total failure~~~~ Sent from my iPhone On 14 Jun 2016, at 11:
  213. Alex; Bozóné; Tamás (5)
  214. jún. 13. Nincs megcsillagozva
  215. Nyári gyakorlat
  216. MUNKA
  217.  
  218. Kedves Alex, Ideznem ugyintezonk szavait: Sajnos az SZBK nem tud ilyen nyilatkozatot aláírni, mert
  219. Peter; Filippo; én (6)
  220. jún. 13.Csatolt fájl Nincs megcsillagozva
  221. corrections
  222. MUNKA
  223.  
  224. There You go! I have also a suggestion experienced from this latest correction: decide whether to use
  225. Csizmazia Anikó
  226. jún. 13.Csatolt fájl Csillagozott
  227. Új Nemzeti Kiválóság Program leendő doktoranduszoknak - ösztöndíjlehetőség!
  228.  
  229. Pályázati felhívás – Felsőoktatási Doktori Hallgatói, Doktorjelölti Kutatói Ösztöndíjra (ÚNKP-16-3)
  230. Peter Horvath
  231. jún. 12. Nincs megcsillagozva
  232. Olypus -> Zeiss converter
  233. MUNKA
  234.  
  235. Csabi, Megcsinaltam amit tudtam. A fileok a BIOMAG 1 (amin Tamas dolgozik) gepen vannak. d:\phorvath\
  236. No-IP Notices
  237. jún. 11. Nincs megcsillagozva
  238. Please confirm your hostname now or it will be deleted
  239.  
  240. tamasbalassa.ddns.net is expiring soon No-IP.com Support tamasbalassa.ddns.net will expire in 7 days
  241. Filippo Piccinini
  242. jún. 11. Nincs megcsillagozva
  243. Fwd: salsa party
  244.  
  245. Forwarded message From: Gergo Fekete <feketegergo@gmail.com> Date: 2016-
  246. Filippo Piccinini (3)
  247. jún. 10.Csatolt fájl Nincs megcsillagozva
  248. Selected cells info
  249.  
  250. Hello Tamas, please, can you send to Kristina the new Figure4 and the new Table with the info of the
  251. Filippo; én (2)
  252. jún. 10.Csatolt fájl Nincs megcsillagozva
  253. Figures ACC GUI
  254.  
  255. Grazie mille perfetto ragazzo :D 2016-06-10 14:01 GMT+02:00 Filippo Piccinini <f.piccinini@unibo.
  256. Peter; én (3)
  257. jún. 10. Nincs megcsillagozva
  258. Fwd: BK szemináriumok, az őszi szemeszter előzetese...
  259. MUNKA
  260.  
  261. mostmar tudsz beleirni is! Peter Horvath, Ph.D. Group Leader Synthetic and Systems Biology Unit
  262. Filippo Piccinini
  263. jún. 9.Csatolt fájl Nincs megcsillagozva
  264. Figure 4 last version
  265.  
  266. // Dr. Filippo Piccinini, Ph.D
  267. Filippo Piccinini
  268. jún. 8. Nincs megcsillagozva
  269. First video tutorial ready
  270.  
  271. Hello ACC Developers, I'm really extremely happy and I'm writing this email to bring my
  272. Lassi; Filippo; én (8)
  273. jún. 8.Csatolt fájl Nincs megcsillagozva
  274. Review of bug fix
  275.  
  276. Lets Skype now. You can also see the changes with TeamViewer. -- Lassi Paavolainen, PhD Postdoctoral
  277. Filippo Piccinini
  278. jún. 8.Csatolt fájl Nincs megcsillagozva
  279. Sections submission
  280.  
  281. Hi Peter, I'm submitting you three new sections: Section 2 Implementation Section 3.2 Phenotype
  282. Peter; én (2)
  283. jún. 8. Nincs megcsillagozva
  284. Fwd: kezirat
  285. MUNKA
  286.  
  287. Peter, volt itt Krisztina. Igazabol elmondta, hogy mi kell neki es Filippora jutott a feladat. Ki
  288. Soccer Manager (4)
  289. jún. 8. Nincs megcsillagozva
  290. Warning! You are about to lose your club
  291.  
  292. Warning! You are about to lose your club Soccer Manager Worlds Hi Tamas, We notice you have not
  293. Filippo; én (2)
  294. jún. 7.Csatolt fájl Nincs megcsillagozva
  295. Only few suggestions
  296.  
  297. Show me your tette perfette. 2016-06-07 18:06 GMT+02:00 Filippo Piccinini <f.piccinini@unibo.it
  298. h938454
  299. jún. 7. Nincs megcsillagozva
  300. h938454@gmail.com megosztotta naptárát önnel
  301.  
  302. Kedves tamasbalassa9@gmail.com! Értesítjük, hogy h938454@gmail.com hozzáférési jogosultságot adott
  303. Filippo Piccinini
  304. jún. 7. Nincs megcsillagozva
  305. Piia is arrived: evening together
  306.  
  307. Hi Guys, Piia is just arrived!!!!!! I'm proposing to go out this night, after dinner, to drink
  308. Peter Horvath
  309. jún. 7.Csatolt fájl Nincs megcsillagozva
  310. Fwd: PhD hallgató-jelöltek bemutatkozása
  311. MUNKA
  312.  
  313. Peter Horvath, Ph.D. Group Leader Synthetic and Systems Biology Unit Hungarian Academy of Sciences,
  314. Filippo Piccinini
  315. jún. 6.Csatolt fájl Nincs megcsillagozva
  316. Papers for Tamas
  317.  
  318. Hello Tamas, inside these papers you will find interesting citations and probably the names of the
  319. Nagy .. én; Ríz-Herczeg (26)
  320. jún. 6.Csatolt fájl Nincs megcsillagozva
  321. Balassa Tamás doktori eljárása ELTE IK
  322. MUNKA
  323.  
  324. remek. köszönöm! Ríz-Herczeg Krisztina +36 1 381 22 99 NEMZETKÖZI és TUDOMÁNYSZERVEZÉSI REFERENS ELTE
  325. Az összes nyomtatása Új ablakban
  326. createreport
  327. Beérkező levelek
  328. x
  329. MUNKA
  330. x
  331.  
  332. Peter Horvath
  333. Melléklet16:54 (20 órája)
  334.  
  335. címzett: saját magam
  336. angol
  337. magyar Üzenet lefordítása
  338. Kikapcsolás a következő nyelvhez: angol
  339. Peter Horvath, Ph.D.
  340. Group Leader
  341. Synthetic and Systems Biology Unit
  342. Hungarian Academy of Sciences, BRC, Szeged
  343. w: www.brc.hu/sysbiol
  344. t: +36 70 5120015
  345.  
  346. Finnish Distinguished Professor (FiDiPro) fellow
  347. Institute for Molecular Medicine Finland (FIMM), Helsinki
  348. t: +358 50 4480947
  349.  
  350. Mellékletek terület
  351.  
  352. Válasszon: Válasz vagy Továbbítás
  353. Peter Horvath
  354. Hozzáadás körökhöz
  355.  
  356. Részletek megjelenítése
  357.  
  358.  
  359. function varargout = create_reportGUI(varargin)
  360. % CREATE_REPORTGUI M-file for create_reportGUI.fig
  361. % CREATE_REPORTGUI, by itself, creates a new CREATE_REPORTGUI or raises the existing
  362. % singleton*.
  363. %
  364. % H = CREATE_REPORTGUI returns the handle to a new CREATE_REPORTGUI or the handle to
  365. % the existing singleton*.
  366. %
  367. % CREATE_REPORTGUI('CALLBACK',hObject,eventData,handles,...) calls the local
  368. % function named CALLBACK in CREATE_REPORTGUI.M with the given input arguments.
  369. %
  370. % CREATE_REPORTGUI('Property','Value',...) creates a new CREATE_REPORTGUI or raises the
  371. % existing singleton*. Starting from the left, property value pairs are
  372. % applied to the GUI before create_reportGUI_OpeningFcn gets called. An
  373. % unrecognized property name or invalid value makes property application
  374. % stop. All inputs are passed to create_reportGUI_OpeningFcn via varargin.
  375. %
  376. % *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one
  377. % instance to run (singleton)".
  378. %
  379. % See also: GUIDE, GUIDATA, GUIHANDLES
  380.  
  381. % Edit the above text to modify the response to help create_reportGUI
  382.  
  383. % Last Modified by GUIDE v2.5 19-Feb-2016 18:11:49
  384.  
  385. % Begin initialization code - DO NOT EDIT
  386. gui_Singleton = 1;
  387. gui_State = struct('gui_Name', mfilename, ...
  388. 'gui_Singleton', gui_Singleton, ...
  389. 'gui_OpeningFcn', @create_reportGUI_OpeningFcn, ...
  390. 'gui_OutputFcn', @create_reportGUI_OutputFcn, ...
  391. 'gui_LayoutFcn', [] , ...
  392. 'gui_Callback', []);
  393. if nargin && ischar(varargin{1})
  394. gui_State.gui_Callback = str2func(varargin{1});
  395. end
  396.  
  397. if nargout
  398. [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
  399. else
  400. gui_mainfcn(gui_State, varargin{:});
  401. end
  402. % End initialization code - DO NOT EDIT
  403.  
  404.  
  405. % --- Executes just before create_reportGUI is made visible.
  406. function create_reportGUI_OpeningFcn(hObject, eventdata, handles, varargin)
  407. % This function has no output args, see OutputFcn.
  408. % hObject handle to figure
  409. % eventdata reserved - to be defined in a future version of MATLAB
  410. % handles structure with handles and user data (see GUIDATA)
  411. % varargin command line arguments to create_reportGUI (see VARARGIN)
  412.  
  413. % Choose default command line output for create_reportGUI
  414. handles.output = hObject;
  415.  
  416. % Update handles structure
  417. guidata(hObject, handles);
  418.  
  419. % UIWAIT makes create_reportGUI wait for user response (see UIRESUME)
  420. % uiwait(handles.figure1);
  421.  
  422. global CommonHandles;
  423.  
  424. % fill in the lists
  425.  
  426. % plate names and select all
  427. set(handles.listbox2, 'String', CommonHandles.PlatesNames);
  428. set(handles.listbox2, 'Value', [1:length(CommonHandles.PlatesNames)]);
  429.  
  430. % Phenotype name list
  431. for i=1:length(CommonHandles.Classes)
  432. phenotypeNames{i} = CommonHandles.Classes{i}.Name;
  433. end
  434.  
  435. set(handles.listbox1, 'String', phenotypeNames);
  436. set(handles.listbox3, 'String', phenotypeNames);
  437. set(handles.listbox3, 'Value', [1:length(phenotypeNames)]);
  438.  
  439.  
  440. % --- Outputs from this function are returned to the command line.
  441. function varargout = create_reportGUI_OutputFcn(hObject, eventdata, handles)
  442. % varargout cell array for returning output args (see VARARGOUT);
  443. % hObject handle to figure
  444. % eventdata reserved - to be defined in a future version of MATLAB
  445. % handles structure with handles and user data (see GUIDATA)
  446.  
  447. % Get default command line output from handles structure
  448. varargout{1} = handles.output;
  449.  
  450.  
  451. % --- Executes on selection change in listbox1.
  452. function listbox1_Callback(hObject, eventdata, handles)
  453. % hObject handle to listbox1 (see GCBO)
  454. % eventdata reserved - to be defined in a future version of MATLAB
  455. % handles structure with handles and user data (see GUIDATA)
  456.  
  457. % Hints: contents = get(hObject,'String') returns listbox1 contents as cell array
  458. % contents{get(hObject,'Value')} returns selected item from listbox1
  459.  
  460.  
  461. % --- Executes during object creation, after setting all properties.
  462. function listbox1_CreateFcn(hObject, eventdata, handles)
  463. % hObject handle to listbox1 (see GCBO)
  464. % eventdata reserved - to be defined in a future version of MATLAB
  465. % handles empty - handles not created until after all CreateFcns called
  466.  
  467. % Hint: listbox controls usually have a white background on Windows.
  468. % See ISPC and COMPUTER.
  469. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  470. set(hObject,'BackgroundColor','white');
  471. end
  472.  
  473.  
  474. % --- Executes on selection change in listbox2.
  475. function listbox2_Callback(hObject, eventdata, handles)
  476. % hObject handle to listbox2 (see GCBO)
  477. % eventdata reserved - to be defined in a future version of MATLAB
  478. % handles structure with handles and user data (see GUIDATA)
  479.  
  480. % Hints: contents = get(hObject,'String') returns listbox2 contents as cell array
  481. % contents{get(hObject,'Value')} returns selected item from listbox2
  482.  
  483.  
  484. % --- Executes during object creation, after setting all properties.
  485. function listbox2_CreateFcn(hObject, eventdata, handles)
  486. % hObject handle to listbox2 (see GCBO)
  487. % eventdata reserved - to be defined in a future version of MATLAB
  488. % handles empty - handles not created until after all CreateFcns called
  489.  
  490. % Hint: listbox controls usually have a white background on Windows.
  491. % See ISPC and COMPUTER.
  492. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  493. set(hObject,'BackgroundColor','white');
  494. end
  495.  
  496.  
  497. % --- Executes on button press in pushbutton1.
  498. function pushbutton1_Callback(hObject, eventdata, handles)
  499. % hObject handle to pushbutton1 (see GCBO)
  500. % eventdata reserved - to be defined in a future version of MATLAB
  501. % handles structure with handles and user data (see GUIDATA)
  502.  
  503. %% here starts the show
  504. global CommonHandles;
  505.  
  506. CommonHandles.Report.SelectedPlates = get(handles.listbox2, 'Value');
  507.  
  508. % reclassify if nescessary -> non ratio based statistics and reclassify
  509. % enabled
  510.  
  511.  
  512. colmax = CommonHandles.PlateTypeInfo{CommonHandles.WellType}.col;
  513. rowmaxnum = CommonHandles.PlateTypeInfo{CommonHandles.WellType}.row;
  514. wellcount = colmax*rowmaxnum;
  515. rowmax = char(rowmaxnum+'A'-1);
  516.  
  517. counter = 0;
  518. cellcounter = 0;
  519. if ~isfield(CommonHandles.Report, 'ClassifiedPlates')
  520. CommonHandles.Report.ClassifiedPlates = [];
  521. end;
  522.  
  523. waitBarHandle = waitbar(0,'Classifying cells...');
  524.  
  525. for plateidx = 1:length(CommonHandles.Report.SelectedPlates)
  526.  
  527. % if not unstructured data
  528. if colmax > -1
  529. PredictionResult = zeros(colmax, rowmaxnum, length(CommonHandles.Classes));
  530. cellNumber = zeros(colmax, rowmaxnum);
  531.  
  532. cellPrediction = cell(colmax, rowmaxnum);
  533. cellProps = cell(colmax, rowmaxnum);
  534.  
  535. % single cell output for CL2M
  536. if get(handles.checkbox6, 'Value')
  537. % create a csv file
  538. singeCellFID = fopen([CommonHandles.DirName filesep char(CommonHandles.PlatesNames(CommonHandles.Report.SelectedPlates(plateidx))) filesep CommonHandles.MetaDataFolder filesep char(CommonHandles.PlatesNames(CommonHandles.Report.SelectedPlates(plateidx))) '_singleCellData.csv'], 'w');
  539.  
  540. % header
  541. fprintf(singeCellFID, 'PlateName, Row, Col, ImageName, ImageNumber, ObjectNumber, xPixelPos, yPixelPos, Class\n');
  542.  
  543. end
  544.  
  545. for col = 1:colmax
  546. for row = 'A':rowmax
  547. rownum = row - 'A' + 1;
  548. counter = counter + 1;
  549. % create base file names
  550. colString = sprintf('%02d', col);
  551. FileNamePrefix = [CommonHandles.DirName filesep char(CommonHandles.PlatesNames(CommonHandles.Report.SelectedPlates(plateidx))) filesep CommonHandles.ImageFolder filesep char(CommonHandles.PlatesNames(CommonHandles.Report.SelectedPlates(plateidx))) '*_' row colString '*'];
  552. % list them
  553. MetadataFiles = dir(FileNamePrefix);
  554. cellNumberThisWell = 0;
  555. cpCell = {};
  556. propCell = {};
  557. for i=1:size(MetadataFiles, 1)
  558. [pathstr, fileNameexEx, ext] = fileparts(MetadataFiles(i).name);
  559.  
  560. [CommonHandles.SelectedMetaDataFileName,CommonHandles.SelectedMetaData] = readMetaData(CommonHandles, fileNameexEx, CommonHandles.Report.SelectedPlates(plateidx));
  561.  
  562. SelectedMetaData = CommonHandles.SelectedMetaData;
  563. % FileName = [CommonHandles.DirName filesep char(CommonHandles.PlatesNames(CommonHandles.Report.SelectedPlates(plateidx))) filesep CommonHandles.MetaDataFolder filesep MetadataFiles(i).name];
  564. % %SelectedMetaData = load(FileName);
  565. % SelectedMetaData = hdf5read([CommonHandles.DirName filesep char(CommonHandles.PlatesNames(CommonHandles.Report.SelectedPlates(plateidx))) filesep CommonHandles.MetaDataFolder filesep char(CommonHandles.PlatesNames(CommonHandles.Report.SelectedPlates(plateidx))) '.h5'], ['/' fileNameexEx '.tif']);
  566.  
  567. features = SelectedMetaData(:, 3:size(SelectedMetaData, 2));
  568.  
  569. if CommonHandles.SALT.initialized
  570. CommonHandles.SALT.trainingData.instances = features;
  571. if strcmp(CommonHandles.SelectedClassifier,'OneClassClassifier')
  572. [out, ~ ,props] = svmpredict(ones(size(features,1),1), CommonHandles.SALT.trainingData.instances, CommonHandles.SALT.model);
  573. out(out<0) = 2;
  574. else
  575. CommonHandles.SALT.trainingData.labels = ones(size(features, 1));
  576. if size(features, 2) ~= 0
  577. [out,props] = sacPredict(CommonHandles.SALT.model, CommonHandles.SALT.trainingData);
  578. else
  579. out = [];
  580. props = [];
  581. end
  582. end
  583. else
  584. errordlg('Please initalize SALT/sac!');
  585. return;
  586. end;
  587.  
  588.  
  589. % print single cell file for CL2M
  590. if get(handles.checkbox6, 'Value')
  591.  
  592. for cellIdx = 1:numel(out)
  593. %Printing out to file PlateName, Row, Col, ImageName, ImageNumber, ObjectNumber, xPixelPos, yPixelPos, Class
  594. fprintf(singeCellFID, '%s, %s, %d, %s, %d, %d, %f, %f, %d\n', ...
  595. char(CommonHandles.PlatesNames(CommonHandles.Report.SelectedPlates(plateidx))), ...
  596. row, ...
  597. col, ...
  598. fileNameexEx,...
  599. i, ...
  600. cellIdx, ...
  601. SelectedMetaData(cellIdx, 1),...
  602. SelectedMetaData(cellIdx, 2),...
  603. out(cellIdx));
  604. end
  605.  
  606. end
  607.  
  608. for ii=1:size(SelectedMetaData, 1)
  609. if ~isempty(out)
  610. PredictionResult(col, rownum, out(ii)) = PredictionResult(col, rownum, out(ii)) + 1;
  611. end;
  612. end;
  613.  
  614. cpCell{i,1} = out;
  615. propCell{i,1} = props;
  616. cellcounter = cellcounter + length(out);
  617. cellNumberThisWell = cellNumberThisWell + length(out);
  618. end;
  619.  
  620. cellPrediction{col,rownum} = cpCell;
  621. cellProps{col,rownum} = propCell;
  622.  
  623. cellNumber(col, rownum) = cellNumberThisWell;
  624. donePercent = double(counter/(length(CommonHandles.Report.SelectedPlates) * wellcount));
  625. waitText = sprintf('Classifying cells... %d%% done ( %d cells)', int16(donePercent * 100), cellcounter);
  626. waitbar(donePercent, waitBarHandle, waitText);
  627. end
  628. end
  629.  
  630. % close singel cell file for CL2M
  631. if get(handles.checkbox6, 'Value')
  632. % close single cell file
  633. fclose(singeCellFID);
  634.  
  635. end
  636.  
  637.  
  638. CommonHandles.Report.ClassResult(CommonHandles.Report.SelectedPlates(plateidx)) = {PredictionResult};
  639. CommonHandles.Report.ClassifiedPlates = union(CommonHandles.Report.ClassifiedPlates, CommonHandles.Report.SelectedPlates(plateidx));
  640. CommonHandles.Report.CellNumber(CommonHandles.Report.SelectedPlates(plateidx)) = {cellNumber};
  641. CommonHandles.Report.CellPrediction(CommonHandles.Report.SelectedPlates(plateidx)) = {cellPrediction};
  642. CommonHandles.Report.CellProps(CommonHandles.Report.SelectedPlates(plateidx)) = {cellProps};
  643.  
  644. %save cell number
  645. % Todo: handle case when stat does not exist
  646. name = sprintf('stat%s%s_cellnumber.mat',filesep, char(CommonHandles.PlatesNames(CommonHandles.Report.SelectedPlates(plateidx))));
  647. save(name, 'cellNumber');
  648. name = sprintf('%s%s%s%s%s_cellnumber.mat', char(CommonHandles.PlatesNames(CommonHandles.Report.SelectedPlates(plateidx))), filesep, char(CommonHandles.MetaDataFolder),filesep, char(CommonHandles.PlatesNames(CommonHandles.Report.SelectedPlates(plateidx))));
  649. name = [CommonHandles.DirName filesep name];
  650. save(name, 'cellNumber');
  651. name = sprintf('%s%s%s%s%s_cellnumber.csv', char(CommonHandles.PlatesNames(CommonHandles.Report.SelectedPlates(plateidx))), filesep, char(CommonHandles.MetaDataFolder),filesep, char(CommonHandles.PlatesNames(CommonHandles.Report.SelectedPlates(plateidx))));
  652. name = [CommonHandles.DirName filesep name];
  653. dlmwrite(name, cellNumber, ';');
  654. else
  655. % unstructured data
  656.  
  657. % all files in the current folder
  658. FileNamePrefix = [CommonHandles.DirName filesep char(CommonHandles.PlatesNames(CommonHandles.Report.SelectedPlates(plateidx))) filesep CommonHandles.ImageFolder filesep 'r01*' CommonHandles.ImageExtension];
  659. fileList = dir(FileNamePrefix);
  660. PredictionResult = zeros(numel(fileList), length(CommonHandles.Classes));
  661.  
  662. % single cell output for CL2M
  663. if get(handles.checkbox6, 'Value')
  664. % create a csv file
  665. singeCellFID = fopen([CommonHandles.DirName filesep char(CommonHandles.PlatesNames(CommonHandles.Report.SelectedPlates(plateidx))) filesep CommonHandles.MetaDataFolder filesep char(CommonHandles.PlatesNames(CommonHandles.Report.SelectedPlates(plateidx))) '_singleCellData.csv'], 'w');
  666.  
  667. % header
  668. fprintf(singeCellFID, 'PlateName, ImageName, ObjectNumber, xPixelPos, yPixelPos, Class\n');
  669.  
  670. end
  671.  
  672.  
  673. fid = fopen([CommonHandles.DirName filesep char(CommonHandles.PlatesNames(CommonHandles.Report.SelectedPlates(plateidx))) filesep CommonHandles.MetaDataFolder filesep char(CommonHandles.PlatesNames(CommonHandles.Report.SelectedPlates(plateidx))) '.csv'], 'w');
  674.  
  675. fprintf(fid, 'File name');
  676.  
  677. for cl = 1:length(CommonHandles.Classes)
  678. fprintf(fid, ',%s', CommonHandles.Classes{cl}.Name);
  679. end
  680.  
  681. fprintf(fid,'\n');
  682. counter = 0;
  683. for fIdx = 1:numel(fileList)
  684. counter = counter + 1;
  685. cellNumberThisWell = 0;
  686. [pathstr, fileNameexEx, ext] = fileparts(fileList(fIdx).name);
  687. [CommonHandles.SelectedMetaDataFileName,CommonHandles.SelectedMetaData] = readMetaData(CommonHandles, fileNameexEx, CommonHandles.Report.SelectedPlates(plateidx));
  688. SelectedMetaData = CommonHandles.SelectedMetaData;
  689. features = [];
  690. for ii=1:size(SelectedMetaData, 1)
  691. features(ii, :) = SelectedMetaData(ii, 3:size(SelectedMetaData, 2));
  692. end;
  693. if CommonHandles.SALT.initialized
  694. CommonHandles.SALT.trainingData.instances = features;
  695. CommonHandles.SALT.trainingData.labels = ones(size(features, 1));
  696. %size(features, 1)
  697. if features(1 , 1) ~= 0
  698. [out,props] = sacPredict(CommonHandles.SALT.model, CommonHandles.SALT.trainingData);
  699. else
  700. out = [];
  701. props = [];
  702. end;
  703. else
  704. errordlg('Please initalize SALT/sac!');
  705. return;
  706. end;
  707. for ii=1:size(SelectedMetaData, 1)
  708. if ~isempty(out)
  709. PredictionResult(fIdx, out(ii)) = PredictionResult(fIdx, out(ii)) + 1;
  710. end;
  711. end;
  712.  
  713.  
  714. % print single cell file for CL2M
  715. if get(handles.checkbox6, 'Value')
  716.  
  717. for cellIdx = 1:numel(out)
  718. %Printing out to file PlateName, Row, Col, ImageName, ImageNumber, ObjectNumber, xPixelPos, yPixelPos, Class
  719. fprintf(singeCellFID, '%s, %s, %d, %f, %f, %d\n', ...
  720. char(CommonHandles.PlatesNames(CommonHandles.Report.SelectedPlates(plateidx))), ...
  721. fileNameexEx,...
  722. cellIdx, ...
  723. SelectedMetaData(cellIdx, 1),...
  724. SelectedMetaData(cellIdx, 2),...
  725. out(cellIdx));
  726. end
  727.  
  728. end
  729.  
  730.  
  731. cellcounter = cellcounter + length(out);
  732. cellNumberThisWell = cellNumberThisWell + length(out);
  733.  
  734. fprintf(fid, '%s', fileList(fIdx).name);
  735.  
  736. for cl = 1:length(CommonHandles.Classes)
  737. fprintf(fid, ',%d', PredictionResult(fIdx, cl));
  738. end
  739.  
  740. fprintf(fid,'\n');
  741.  
  742. donePercent = double(counter/numel(fileList));
  743. waitText = sprintf('Plate %s/%s; Classifying cells... %d%% done ( %d cells)', num2str(plateidx), num2str(length(CommonHandles.Report.SelectedPlates)), int16(donePercent * 100), cellcounter);
  744. waitbar(donePercent, waitBarHandle, waitText);
  745. end;
  746. fclose(fid);
  747.  
  748. % close singel cell file for CL2M
  749. if get(handles.checkbox6, 'Value')
  750. % close single cell file
  751. fclose(singeCellFID);
  752.  
  753. end
  754.  
  755. end
  756. end
  757. close(waitBarHandle);
  758.  
  759.  
  760. % cumulative statistics
  761. if colmax > -1
  762. CommonHandles.Report.FenotypesStat = get(handles.listbox1, 'Value');
  763. CommonHandles.Report.FenotypesNorm = get(handles.listbox3, 'Value');
  764. for plateidx = 1:length(CommonHandles.Report.SelectedPlates)
  765. PredictionResult = cell2mat(CommonHandles.Report.ClassResult(CommonHandles.Report.SelectedPlates(plateidx)));
  766. norm = sum(PredictionResult(:,:,CommonHandles.Report.FenotypesNorm), 3);
  767. cumul = sum(PredictionResult(:,:,CommonHandles.Report.FenotypesStat), 3);
  768. total = sum(PredictionResult(:,:,:), 3);
  769. hitmap = cumul ./ norm;
  770. idxlist = isnan(hitmap);
  771. idxlist = find(idxlist == 1);
  772. hitmap(idxlist) = 0;
  773.  
  774.  
  775. %% create acc file
  776. name = sprintf('%s%s%s%s%s.csv', char(CommonHandles.PlatesNames(CommonHandles.Report.SelectedPlates(plateidx))), filesep, char(CommonHandles.MetaDataFolder),filesep, char(CommonHandles.PlatesNames(CommonHandles.Report.SelectedPlates(plateidx))));
  777. name = [CommonHandles.DirName filesep name];
  778. fout = fopen(name, 'w');
  779. % header
  780. fprintf(fout, 'PlateName, Row, Col, ObjectNumber, MainHitrate');
  781. for cl = 1:length(CommonHandles.Classes)
  782. fprintf(fout, ',%s', CommonHandles.Classes{cl}.Name);
  783. end
  784. fprintf(fout,'\n');
  785.  
  786. % data
  787. for i=1:size(norm, 1)
  788. for j=1:size(norm, 2)
  789. fprintf(fout, '%s, %s, %d, %d, %f', char(CommonHandles.PlatesNames(CommonHandles.Report.SelectedPlates(plateidx))), char(j+'A'-1), i, total(i, j), hitmap(i, j));
  790. for cl = 1:length(CommonHandles.Classes)
  791. fprintf(fout, ',%d', PredictionResult(i, j, cl));
  792. end
  793. fprintf(fout,'\n');
  794. end;
  795. end;
  796. fclose(fout);
  797.  
  798. %save statistics
  799. filename = sprintf('%s_cumul', char(CommonHandles.PlatesNames(CommonHandles.Report.SelectedPlates(plateidx))));
  800. for ft = 1:length(CommonHandles.Report.FenotypesStat)
  801. filename = sprintf('%s_%d', filename, CommonHandles.Report.FenotypesStat(ft));
  802. end;
  803. filename = sprintf('%s_v', filename);
  804. for ft = 1:length(CommonHandles.Report.FenotypesNorm)
  805. filename = sprintf('%s_%d', filename, CommonHandles.Report.FenotypesNorm(ft));
  806. end;
  807. name = sprintf('%s%s%s%s%s.mat', char(CommonHandles.PlatesNames(CommonHandles.Report.SelectedPlates(plateidx))), filesep, char(CommonHandles.MetaDataFolder), filesep, filename);
  808. name = [CommonHandles.DirName filesep name];
  809. save(name, 'hitmap');
  810. name = sprintf('%s%s%s%s%s.csv', char(CommonHandles.PlatesNames(CommonHandles.Report.SelectedPlates(plateidx))), filesep, char(CommonHandles.MetaDataFolder), filesep, filename);
  811. name = [CommonHandles.DirName filesep name];
  812. dlmwrite(name, hitmap, ';');
  813.  
  814. %%% cumulative ratio based
  815. name = sprintf('stat%s%s.mat',filesep, char(CommonHandles.PlatesNames(CommonHandles.Report.SelectedPlates(plateidx))));
  816. save(name, 'hitmap');
  817.  
  818. outName = [char(CommonHandles.DirName) filesep char(CommonHandles.PlatesNames(CommonHandles.Report.SelectedPlates(plateidx))) filesep char(CommonHandles.MetaDataFolder) filesep, filename '.pdf'];
  819. h1 = figure(1);
  820. try
  821. createPDFReport(outName, char(CommonHandles.PlatesNames(CommonHandles.Report.SelectedPlates(plateidx))), hitmap, norm, h1);
  822. catch
  823. errordlg('Please select the right plate size!');
  824. close(h1);
  825. end
  826.  
  827. end
  828.  
  829. % if license('test', 'matlab_report_gen')
  830. % report('platereport_cumul.rpt')
  831. % end
  832. end
  833.  
  834. tempSplittedImageName = strsplit(CommonHandles.SelectedImageName,{filesep,'.'});
  835. [CommonHandles.SelectedMetaDataFileName,CommonHandles.SelectedMetaData] = readMetaData(CommonHandles, char(tempSplittedImageName(end-1)), CommonHandles.SelectedPlate);
  836.  
  837. uiresume(gcbf);
  838. close(gcbf);
  839. % show is over... :)
  840.  
  841.  
  842. % --- Executes on button press in pushbutton2.
  843. function pushbutton2_Callback(hObject, eventdata, handles)
  844. % hObject handle to pushbutton2 (see GCBO)
  845. % eventdata reserved - to be defined in a future version of MATLAB
  846. % handles structure with handles and user data (see GUIDATA)
  847.  
  848. uiresume(gcbf);
  849. close;
  850.  
  851. % --- Executes on selection change in listbox3.
  852. function listbox3_Callback(hObject, eventdata, handles)
  853. % hObject handle to listbox3 (see GCBO)
  854. % eventdata reserved - to be defined in a future version of MATLAB
  855. % handles structure with handles and user data (see GUIDATA)
  856.  
  857. % Hints: contents = get(hObject,'String') returns listbox3 contents as cell array
  858. % contents{get(hObject,'Value')} returns selected item from listbox3
  859.  
  860.  
  861. % --- Executes during object creation, after setting all properties.
  862. function listbox3_CreateFcn(hObject, eventdata, handles)
  863. % hObject handle to listbox3 (see GCBO)
  864. % eventdata reserved - to be defined in a future version of MATLAB
  865. % handles empty - handles not created until after all CreateFcns called
  866.  
  867. % Hint: listbox controls usually have a white background on Windows.
  868. % See ISPC and COMPUTER.
  869. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
  870. set(hObject,'BackgroundColor','white');
  871. end
  872.  
  873.  
  874. % --- Executes on button press in pushbutton3.
  875. function pushbutton3_Callback(hObject, eventdata, handles)
  876. % hObject handle to pushbutton3 (see GCBO)
  877. % eventdata reserved - to be defined in a future version of MATLAB
  878. % handles structure with handles and user data (see GUIDATA)
  879.  
  880. % this function creates a hit report called hit_report_phenotypes_date_threshold.csv
  881.  
  882. % input threshold level
  883.  
  884.  
  885. % --- Executes on button press in checkbox6.
  886. function checkbox6_Callback(hObject, eventdata, handles)
  887. % hObject handle to checkbox6 (see GCBO)
  888. % eventdata reserved - to be defined in a future version of MATLAB
  889. % handles structure with handles and user data (see GUIDATA)
  890.  
  891. % Hint: get(hObject,'Value') returns toggle state of checkbox6
  892. create_reportGUI.m
  893. Társítás
  894. create_reportGUI.m megjelenítése.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement