Difference between revisions of "User talk:Ecr33"

From YalePETWiki
Jump to navigationJump to search
Line 1: Line 1:
== Documentation on MCCOD ==
+
= Documentation on MCCOD =
  
 
=== &nbsp;HRRT Version<br>  ===
 
=== &nbsp;HRRT Version<br>  ===

Revision as of 03:14, 5 July 2019

Documentation on MCCOD

 HRRT Version

All the codes can be found in:/home1/ecr33/Project/MCCOD/hrrt/Codes/


Pipeline Name: whole_processing_pipe.m

Input: CSV file containing the following information:


1. Patient ID

     - will not affect the final result

     - it should not be repeated for the same subject

     - example: ec950_fdg, ec950_app311

2. fn_listmode 

     - should be in linux format

     - example: /data2/hrrthome/Recons/ecr33/simulation/4D/HRRT/FDG/AF120/Frame001/AF120-Human-2016.11.28.10.19.0_EM-sim.l64

3. fn_qimage 

     - should be in linux format

     - example: /home1/cs2679/HRRT/testdata/HRRT_systemQ.hdr

     - currently only using 1 qimage which is the example above

4. fn_mr/mu_image

     - should be in windows format

     - this is using MR mask

     - Y:/mct/Yihuan/For_Enette/simulation/phantom_hrrt/af120_18270/af120_18270_labelmap

     - note that the user need not put ".raw" at the end, this is taken care of in the pipeline

     - IMPORTANT NOTE: normally, when a user simply copies the address of the folder, it looks like this: Y:\mct\Yihuan\For_Enette\simulation\phantom_hrrt\af120_18270\af120_18270_labelmap. It always uses the backslash but for this particular pipeline, the user needs to use the FORWARD SLASH for this parameter. Otherwise, the pipeline will give the user an error. It will not read the labelmap properly.

5. fn_vc

     - should be in linux format

     - example: /data4/mct/Yihuan/For_Enette/simulation/Results/FDG/af120_18270/VC_files/AF120_20161128_100602_PETstart_0ms.vc

6. output_location

     - should be in linux format

     - example: /home1/ecr33/Project/MCCOD/hrrt/FDG_sim/af120_18270/

     - note that the user needs to put "/" at the end

7. new_mask_destination

     - should be in linux format

     - basically output_location and new_mask_destination are the SAME

8. comment

     - this will be attached at the end of the result's filename

9. time_start_ms

     - should be in millisecond

10. time_duration_ms

     - should be in millisecond

     - note that this is not the end time, only the duration

11. cod_enable

     - choices: 0 or 1

     - if 1, COD will be generated

     - if 0, COD will not be generated

12. CODti

     - COD time interval

     - should be in millisecond

     - default time interval: 1000 (1 sec)

13. cloud_enable

     - choices: 0 or 1

     - if 1, cloud will be generated

     - if 0, cloud will not be generated

     - if 0, cloud_interval_enable, down_sample_enable, cloudinterval_ms and down_sample_ratio will NOT be used

14. cloud_interval_enable

     - choices: 0 or 1

     - if 1, cloud will be generated depending on the input value in the cloudinterval_ms

     - if 0, cloud is generated only for one scan for the time period chosen by the user

     - example: if duration is 50000 and cloudinterval_ms is 2000, there will be 25 clouds

15. down_sample_enable

     - choices: 0 or 1

     - if 1, the size of the cloud will decrease

     - if 0, the size of the cloud will remain the same (original size)

16. cloudinterval_ms

     - should be in millisecond

17. down_sample_ratio

     - ratio of downsampling

     - example: original size (256*256*207) and down_sample_ratio is 4, then the new size will be 64*64*51

     - NOTE: some voxels will be discarded if the down sampling is enabled

18. weight_enable

     - weight scheme

     - according to cs2679, this part will not make a noticeable different so this is always chosen to be 0

19. median_interval_ms

     - should be in millisecond

     - this is for the new mask generation phase

     - the mask will make sure that the patient is always inside the FOV

     - 1000 is just good enough for nearly all the cases according to cs2679

     - this means that 1000 ms (1 sec), the code will pick the median within that 1 sec (in VC file, every line interval is 30 ms) and use that as the representative for that particular second. If this value is 5000 ms, then the value to be chosen is within the 5 seconds of the VC file

20. data_format

     - for HRRT, always: PETLINK_64DP_HRRT

21. server_name

     - user can choose a server in which to run the code

     - according to cs2679, he normally uses: Ursa, Virgo, Taurus, Pisces

22. crop_enable

     - choices: 0 or 1

     - if 1, cropping will happen

     - if 0, cropping will not happen

     - because of the use of mask, areas outside the mask have 0 value and those areas will be cropped in the output cloud to save disk space

23. status

     - if 0, not processed yet

     - if 1, processing

     - if 100, finished processing

     - if -1, failed

     - for new users and new cases, always put 0 24. list_com

     - this is for plotting the COM curve of a specific ROI the user wants to see

     - if this is not needed, put "no"

     - if the user wants to look at several ROIs, make sure to use the FS LABEL and include space in between the ROIs

     - example: 17 1032 1033 2033


    • Quick note: If parameter #13 is chosen to be 0, remember that parameters #14,15,16 and 17 will NOT be used no matter what the user puts there.
    • Another note: The pipeline above can only work when the user chooses to use MR mask and not the MU mask.


Another worth noting is that the user can choose to use the MR mask or the MU mask. 

1. Currently, the inputs above work only when you use the MR MASK. 

2. If the user decides to use the MU mask, another pipeline should be used called HRRT_cod_cloud_MU.m

3. There CSV file input is basically the same except for another input column (the last column).

4. bUseMU

     - choices: 0 or 1

     - if 1, the Mu mask will be used instead of MR mask

     - if 0, the MR mask will be used

5. In short, the user can choose to use the MU PIPELINE both for MR and MU mask because this particular pipeline takes care of the issue.