Skip to content

Commit eeb3701

Browse files
authored
Swap template matching at3 and rln5
1 parent 9eaca42 commit eeb3701

1 file changed

Lines changed: 28 additions & 28 deletions

File tree

  • docs/03-tutorial/04-template-matching

docs/03-tutorial/04-template-matching/index.md

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,34 @@ relion_image_handler --i input.mrc --o output.mrc --rescale_angpix 7.64 --new_bo
7474
- **`new_box`** or **`clip`**: Boxsize (in pixels). See [good box sizes](https://blake.bcm.edu/emanwiki/EMAN2/BoxSize).
7575
- **`force_header_angpix`**: There might be some discrepancy between the desired and actual pixel size from the way RELION scales the image. We force the header to the desired pixel size.
7676

77+
## Running template matching on AreTomo3 tomograms {#at3tm}
78+
79+
Similarly, if you have reconstructed your tomograms using the [AreTomo3 pipeline](/03-tutorial/02-aretomo3/), we have a **[batch_pytom_aretomo3](https://github.com/Phaips/batch_pytom_aretomo3)** script. This will also create submission files for template matching using the tilt and CTF information from the AreTomo3 outputs. Your output folder should look something like:
80+
81+
```
82+
aretomo3/
83+
├─ AreTomo3_Session.json
84+
├─ TiltSeries_Metrics.csv
85+
├─ TiltSeries_TimeStamp.csv
86+
├─ Position_1.aln
87+
├─ Position_1.mrc
88+
├─ Position_1_ODD.mrc
89+
├─ Position_1_EVN.mrc
90+
├─ Position_1_Vol.mrc
91+
├─ Position_1_CTF.txt
92+
├─ Position_1_TLT.txt
93+
├─ Position_1_CTF_Imod.txt
94+
├─ Position_1_Imod/
95+
│ ├─ Position_1_st.tlt
96+
│ ├─ Position_1_st.xf
97+
│ └─ Position_1_order_list.csv
98+
├─ Position_2.aln
99+
├─ Position_2.mrc
100+
...
101+
```
102+
103+
The functionality of the batch submission script is basically the same as for the above [RELION5](/03-tutorial/04-template-matching/#rln5tm) one. Make sure to check the `--help` and the [Github README](https://github.com/Phaips/batch_pytom_aretomo3) and feel free to raise any issues or comments directly on the GitHub page. Alternatively, as always, you can run pytom with template matching just using the conventional way. Our scripts are intended to facilitate the batch submission of jobs in case you want to template match hundreds of tomograms.
104+
77105
### Running template matching on RELION5 tomograms {#rln5tm}
78106

79107
To run template matching in batch (on all the tomograms in your RELION folder), we will use this **[batch_pytom_wRln5](https://github.com/Phaips/batch_pytom_wRln5)** script we wrote. It is intended to create `bash.sh` files for SLURM submission. It will read all necessary information like the defocus per tilt and exposure values from the `tilt-series.star` files in your RELION `Tomograms/jobXXX/` folder. For each tomogram, those values will be provided to the `pytom_match_template.py` script. Alternatively, as always, you can just run template matching using pytom in the conventional way. Our scripts are intended to facilitate the batch submission of jobs in case you want to template match hundreds of tomograms.
@@ -164,34 +192,6 @@ If you don't have an HPC or don't use SLURM, you can just run the regular [pytom
164192
You can check the `_scores.mrc` file in IMOD for example to already see if template matching was successful. If you open the `tomogram.mrc` and `_scores.mrc` at the same time you should see bright dots at the center of each of your particles of interest. Later in this section, we'll show you how to visualize your particles first with IMOD, and then more appealingly using ChimeraX & ArtiaX.
165193

166194

167-
## Running template matching on AreTomo3 tomograms {#at3tm}
168-
169-
Similarly, if you have reconstructed your tomograms using the [AreTomo3 pipeline](/03-tutorial/02-aretomo3/), we have a **[batch_pytom_aretomo3](https://github.com/Phaips/batch_pytom_aretomo3)** script. This will also create submission files for template matching using the tilt and CTF information from the AreTomo3 outputs. Your output folder should look something like:
170-
171-
```
172-
aretomo3/
173-
├─ AreTomo3_Session.json
174-
├─ TiltSeries_Metrics.csv
175-
├─ TiltSeries_TimeStamp.csv
176-
├─ Position_1.aln
177-
├─ Position_1.mrc
178-
├─ Position_1_ODD.mrc
179-
├─ Position_1_EVN.mrc
180-
├─ Position_1_Vol.mrc
181-
├─ Position_1_CTF.txt
182-
├─ Position_1_TLT.txt
183-
├─ Position_1_CTF_Imod.txt
184-
├─ Position_1_Imod/
185-
│ ├─ Position_1_st.tlt
186-
│ ├─ Position_1_st.xf
187-
│ └─ Position_1_order_list.csv
188-
├─ Position_2.aln
189-
├─ Position_2.mrc
190-
...
191-
```
192-
193-
The functionality of the batch submission script is basically the same as for the above [RELION5](/03-tutorial/04-template-matching/#rln5tm) one. Make sure to check the `--help` and the [Github README](https://github.com/Phaips/batch_pytom_aretomo3) and feel free to raise any issues or comments directly on the GitHub page. Alternatively, as always, you can run pytom with template matching just using the conventional way. Our scripts are intended to facilitate the batch submission of jobs in case you want to template match hundreds of tomograms.
194-
195195
## Extract particles
196196

197197
Once you have succesfully run template matching, you can extract your particles with `pytom_extract_candidates.py`. This will create the `particles.star` in RELION5 format to then use for [subtomogram averaging](/03-tutorial/05-sta-in-relion5/). Again for detailed explanation check the documentation or `--help` of the pytom script.

0 commit comments

Comments
 (0)