eman2:programs:e2tomoseg
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
eman2:programs:e2tomoseg [2025/06/14 18:54] – steveludtke | eman2:programs:e2tomoseg [2025/06/14 21:05] (current) – steveludtke | ||
---|---|---|---|
Line 45: | Line 45: | ||
* All of the other options should normally be fine, and you can press **Launch** | * All of the other options should normally be fine, and you can press **Launch** | ||
- | {{attachment: | + | {{http:// |
* Note: There may be cases where it is impossible to pick a single scale which works well to annotate features at different scales. For example, if you are trying to annotate icosahedral viruses (large scale) and actin filaments (require small scale to identify) in the same tomogram, you may need to import the tomogram twice, with 2 different " | * Note: There may be cases where it is impossible to pick a single scale which works well to annotate features at different scales. For example, if you are trying to annotate icosahedral viruses (large scale) and actin filaments (require small scale to identify) in the same tomogram, you may need to import the tomogram twice, with 2 different " | ||
Line 78: | Line 78: | ||
* You have now created two new files in the // | * You have now created two new files in the // | ||
- | {{attachment: | + | {{ http:// |
Note: The box size for training tiles MUST be 64x64. If the feature of interest does not fit in a 64x64 tile, you will need to create a more down-sampled copy of your tomogram for the recognition to work well. You can do this manually with e2proc3d.py. If you create a down-sampled version of a tomogram, use the exact same name and location as the original tomogram, but add a suffix to the name preceded by %%__%% (double underscore). eg - // | Note: The box size for training tiles MUST be 64x64. If the feature of interest does not fit in a 64x64 tile, you will need to create a more down-sampled copy of your tomogram for the recognition to work well. You can do this manually with e2proc3d.py. If you create a down-sampled version of a tomogram, use the exact same name and location as the original tomogram, but add a suffix to the name preceded by %%__%% (double underscore). eg - // | ||
Line 98: | Line 98: | ||
* When you are finished, simply close the windows. The segmentation file will be saved automatically as " | * When you are finished, simply close the windows. The segmentation file will be saved automatically as " | ||
- | {{attachment: | + | {{ http:// |
===== Build Training Set ===== | ===== Build Training Set ===== | ||
Line 133: | Line 133: | ||
* Open the // | * Open the // | ||
- | {{attachment: | + | {{ http:// |
* Zoom in or out a bit so there are 3*N images displayed in each row. For each image triplet, the first one is the tile from the tomogram, the second is the corresponding manual segmentation, | * Zoom in or out a bit so there are 3*N images displayed in each row. For each image triplet, the first one is the tile from the tomogram, the second is the corresponding manual segmentation, | ||
Line 142: | Line 142: | ||
===== Apply to Tomograms ===== | ===== Apply to Tomograms ===== | ||
+ | {{ http:// | ||
Finally, open **Apply the neural network panel**. Choose the tomogram you used to generate the boxes in the **tomograms** box, choose the saved neural network file (not the " | Finally, open **Apply the neural network panel**. Choose the tomogram you used to generate the boxes in the **tomograms** box, choose the saved neural network file (not the " | ||
- | |||
- | {{attachment: | ||
To segment a different feature, just repeat the entire process for the each feature of interest. Make sure to use different file names (eg - _good2 and _bad2)! The trained network should generally work well on other tomograms using a similar specimen with similar microscope settings (clearly the A/pix value must be the same). | To segment a different feature, just repeat the entire process for the each feature of interest. Make sure to use different file names (eg - _good2 and _bad2)! The trained network should generally work well on other tomograms using a similar specimen with similar microscope settings (clearly the A/pix value must be the same). | ||
Line 152: | Line 151: | ||
Merging the results from multiple networks on a single tomogram can help resolve ambiguities, | Merging the results from multiple networks on a single tomogram can help resolve ambiguities, | ||
- | | + | < |
+ | mergetomoseg.py < | ||
+ | </code> | ||
===== Tips in selecting training samples ===== | ===== Tips in selecting training samples ===== | ||
+ | {{ http:// | ||
+ | |||
* Annotate samples correctly, as a bad segmentation in the training set can damage the overall performance. In the microtubule case, if you annotate the spacing between microtubules, | * Annotate samples correctly, as a bad segmentation in the training set can damage the overall performance. In the microtubule case, if you annotate the spacing between microtubules, | ||
- | {{attachment: | ||
* Make sure there are no positive samples in the negative training set. If your target feature is everywhere and it is hard to find negative regions, you can add additional positive samples which include various features other than the target feature (annotating only the target feature). | * Make sure there are no positive samples in the negative training set. If your target feature is everywhere and it is hard to find negative regions, you can add additional positive samples which include various features other than the target feature (annotating only the target feature). | ||
* You can bin your tomogram differently to segment different features. Just import multiple copies of raw tomogram with different shrink factors, and unbin the segmentation using math.fft.resample processor. It is particularly useful when you have features with different lengthscales in one tomogram, and it is impossible to both fit the large features into a 64*64 box and still have the smaller features visible at the same scale. | * You can bin your tomogram differently to segment different features. Just import multiple copies of raw tomogram with different shrink factors, and unbin the segmentation using math.fft.resample processor. It is particularly useful when you have features with different lengthscales in one tomogram, and it is impossible to both fit the large features into a 64*64 box and still have the smaller features visible at the same scale. | ||
Line 166: | Line 168: | ||
Darius Jonasch, the first user of the tomogram segmentation protocol, provided many useful advices to make the workflow user-friendly. He also wrote a tutorial of the earlier version of the protocol, on which this tutorial is based. | Darius Jonasch, the first user of the tomogram segmentation protocol, provided many useful advices to make the workflow user-friendly. He also wrote a tutorial of the earlier version of the protocol, on which this tutorial is based. | ||
- |
eman2/programs/e2tomoseg.1749927270.txt.gz · Last modified: by steveludtke