Giter Club home page Giter Club logo

automatic-preprocessing-cosmic2's Introduction

Automatic-preprocessing-COSMIC2

Automatic preprocessing for cryoEM on COSMIC2

Code to run the automatic preprocessing workflow on COSMIC2.

To use:

  1. Navigate to the desired directory
  2. 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, you need to setup the conda environments

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

To use:

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 &

automatic-preprocessing-cosmic2's People

Contributors

yilaili avatar

automatic-preprocessing-cosmic2's Issues

Generate a report in the end of the pipeline

Report (pdf) should include:

  1. # of total micrographs, # of good micrographs, %
  2. # of picked particles, # of good particles
  3. Example images of bad micrographs
  4. Images of the selected and unselected 2D averages
  5. Estimated size of the particles and selected diameter for 2D classification

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.