teamtomo / membrain-seg

membrane segmentation in 3D for cryo-ET
Other
54 stars 13 forks source link

Thresholds input file specification needs fix #80

Closed kimdn closed 2 weeks ago

kimdn commented 2 weeks ago

Description

According to

membrain thresholds --scoremap-path <path-to-scoremap>
        --thresholds -1.5

I did

membrain thresholds --scoremap-path outputs/2024_06_06-MED4_10p4_Apix_MED4_TS_11_SIRT_CTF_no_Au_rec/2024_06_06-MED4_10p4_Apix_MED4_TS_11_SIRT_CTF_no_Au_rec_scores.mrc --thresholds -1.5

but MemBrain-seg seeks /predictions (hardcoded?)

Screenshot 2024-09-05 at 7 37 02 PM

LorenzLamm commented 2 weeks ago

Hey @kimdn, Thanks a lot for raising this.

You can control the output folder in the command line via the flag --out-folder /path/to/your/output If no argument is provided here, it will default to ./predictions, i.e. also the default output folder for segmentations.

E.g. for your case, you could do membrain thresholds --scoremap-path outputs/2024_06_06-MED4_10p4_Apix_MED4_TS_11_SIRT_CTF_no_Au_rec/2024_06_06-MED4_10p4_Apix_MED4_TS_11_SIRT_CTF_no_Au_rec_scores.mrc --thresholds -1.5 --out-folder outputs/2024_06_06-MED4_10p4_Apix_MED4_TS_11_SIRT_CTF_no_Au_rec/ and it should work just fine.

To avoid the error, maybe we should automatically create the output folder? I should definitely add the out_folder argument to the documentation.

Let me know if this helps. :)

kimdn commented 2 weeks ago

@LorenzLamm

Adding --out-folder outputs/2024_06_06-MED4_10p4_Apix_MED4_TS_11_SIRT_CTF_no_Au_rec/ works.

Yes, either adding document or adding exception handling like 'MemBrain-seg can't find score file in default "predictions" folder. Specify --out-folder as you did for "membrain segment"' might be nice.

Thank you for making MemBrain-seg. Just using your latest pre-trained model segmented our target membrane well (even when our input tomogram is not denoised yet) !