DrSAR / SARlabpy

git clone git@pfeifer.phas.ubc.ca:SARlabpy (do not push to github, please)
http://code.SARlab.ca
Other
1 stars 0 forks source link

generate masterlist code doesn't work for certain time points #288

Closed firasm closed 9 years ago

firasm commented 9 years ago

search_string is usually something like: '0h', '24h', '48h'...

lbl is something like :

[u'roi-120h', u'anatomy-144h+', u'dce-120ha', u'dce-0ha', u'dce-144h', u'anatomy-120h+', u'anatomy-0h+', u'roi-144h', u'diffusion-0h', u'diffusion-120h', u'anatomy-0h-', u'anatomy-144h-', u'anatomy-120h-', u'roi-0h', u'diffusion-144h'] if search_string in lbl ...

So '0h' did not match with 24h, 48h, etc. but when our studies expanded to include HPGS4, included time points '120h' , '144h' etc, '0h' matched '120h'

firasm commented 9 years ago

fixed with commit a333566

DrSAR commented 9 years ago

I don't entirely understand the code. Is this to allow for several ROI boxes that have to change from one to the next? If so, there appears to be some assumed syntax inside(!) the scan label which is somewhat new to me. Can you describe this a bit to me. PS: seems like I have been away from the code for a bit...

firasm wrote:

search_string is usually something like: '0h', '24h', '48h'...

lbl is something like :

[u'roi-120h', u'anatomy-144h+', u'dce-120ha', u'dce-0ha', u'dce-144h', u'anatomy-120h+', u'anatomy-0h+', u'roi-144h', u'diffusion-0h', u'diffusion-120h', u'anatomy-0h-', u'anatomy-144h-', u'anatomy-120h-', u'roi-0h', u'diffusion-144h'] if search_string in lbl ...

So '0h' did not match with 24h, 48h, etc. but when our studies expanded to include HPGS4, included time points '120h' , '144h' etc, '0h' matched '120h'

— Reply to this email directly or view it on GitHub https://github.com/DrSAR/SARlabpy/issues/288.

firasm commented 9 years ago

Each label in the masterlist must be of the form:

X-Yh

X is a string that can be of any length, can contain all characters except a dash '-' in there (more later).

-Y is a dash followed by an integer to indicate a time stamp. For e.g., -0h, -24h, -48h ... etc..

ROIs are drawn once on each day's anatomy image, and then transferred to all the other scans from that day. Other scans from the that day are identified with the time stamp encoded in the label.

The code in masterlist deals with determining the bbox for all scans in a patient, one study at a time (based on the day).