Automatic preprocessing for cryoEM on COSMIC2
Code to run the automatic preprocessing workflow on COSMIC2.
To use:
- Navigate to the desired directory
- Example:
python submit_pipeline.py --input_dir <directory contains all the micrographs> --CS 2.7 --HT 300 --apix 0.66 --final_apix 1 --user_email <user email>
The code will submit the whole workflow to the cluster and print the Job ID. Note: The whole workflow job is just a master job. It only uses one core on one node. From the master job, it will submit different steps as different jobs, using either CPU or GPU nodes, depending on the nature of the job. You can kill the whole workflow by using the Job ID printed from this script. However, already submitted jobs cannot be canceled. The Job ID of the all the sub jobs are stored in the log files corresponding to the name of the specific job. For example, Job ID for CTF job can be found in CTFFIND4_log.txt.
Installation:
First, setup cryolo:
conda create -n cryolo-pipeline -c anaconda python=3.6 pyqt=5 cudnn=7.1.2 numpy==1.14.5 cython wxPython==4.0.4 intel-openmp==2019.4
conda activate cryolo-pipeline
pip install 'cryolo[gpu]'
conda deactivate
Then, setup cryoassess:
conda create -n cryoassess -c anaconda python=3.6 pyqt=5 cudnn=7.1.2 numpy=1.14.5 intel-openmp=2019.4
conda activate cryoassess
pip install tensorflow==1.10.1 keras==2.2.5 Pillow==4.3.0 mrcfile==1.1.2 pandas==0.25.3 opencv-python==4.1.2.30 scikit-image==0.16.2
conda deactivate
Last, setup pipeline:
conda create -n pipeline -c anaconda python=3.6 pyqt=5 cudnn=7.1.2 numpy==1.18.1 cython wxPython==4.0.4 intel-openmp==2019.4
conda activate pipeline
pip install pandas
conda deactivate
Navigate to the desired directory:
python submit_pipeline.py --input_dir <directory contains all the micrographs> --CS 2.7 --HT 300 --apix 0.66 --final_apix 1
And then:
nohup bash pipeline.sh &> log.txt &