Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
Terri Porter authored and Terri Porter committed Apr 18, 2022
1 parent 65f9861 commit 1f3d608
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ MetaWorks consists of a conda environment and Snakemake pipelines that are meant

## Overview

MetaWorks comes with a conda environment file MetaWorks_v1.9.6 that should be activated before running the pipeline. Conda is an environment and package manager (Anaconda, 2016). The environment file contains most of the programs and dependencies needed to run MetaWorks. If pseudogene filtering will be used, then the NCBI ORFfinder program will also need to be installed. Additional RDP-trained reference sets may need to be downloaded if the reference set needed is not already built in to the RDP classifier (see Table 1 below).
MetaWorks comes with a conda environment file MetaWorks_v1.9.7 that should be activated before running the pipeline. Conda is an environment and package manager (Anaconda, 2016). The environment file contains most of the programs and dependencies needed to run MetaWorks. If pseudogene filtering will be used, then the NCBI ORFfinder program will also need to be installed. Additional RDP-trained reference sets may need to be downloaded if the reference set needed is not already built in to the RDP classifier (see Table 1 below).

Snakemake is a python-based workflow manager (Koster and Rahmann, 2012) and it requires three sets of files to run the any one of the workflows described described in the next section (Fig 1).

Expand Down Expand Up @@ -159,10 +159,10 @@ The final output file is results.csv and it has been formatted to specify ESVs f
conda env create -f environment.yml
# Activate the environment
conda activate MetaWorks_v1.9.6
conda activate MetaWorks_v1.9.7
# On the GPSC activate using source
source ~/miniconda/bin/activate MetaWorks_v1.9.6
source ~/miniconda/bin/activate MetaWorks_v1.9.7
```

2. The RDP classifier comes with the training sets to classify 16S, fungal LSU or ITS rDNA. To classify other markers using custom-trained RDP sets, obtain these from GitHub using Table 1 as a guide . Take note of where the rRNAclassifier.properties file is as this needs to be added to the config.yaml .
Expand All @@ -174,11 +174,11 @@ RDP:

3. If doing pseudogene filtering, then download and install the NCBI ORFfinder

The pipeline requires ORFfinder 0.4.3 available from the NCBI at ftp://ftp.ncbi.nlm.nih.gov/genomes/TOOLS/ORFfinder/linux-i64/ . This program should be downloaded, made executable, and put in your conda environment path (ex. ~/miniconda/envs/MetaWorks_v1.9.6/bin).
The pipeline requires ORFfinder 0.4.3 available from the NCBI at ftp://ftp.ncbi.nlm.nih.gov/genomes/TOOLS/ORFfinder/linux-i64/ . This program should be downloaded, made executable, and put in your conda environment path (ex. ~/miniconda/envs/MetaWorks_v1.9.7/bin).

```linux
# go to your conda environment bin
cd ~/miniconda3/envs/MetaWorks_v1.9.6/bin/.
cd ~/miniconda3/envs/MetaWorks_v1.9.7/bin/.
# download ORFfinder
wget ftp://ftp.ncbi.nlm.nih.gov/genomes/TOOLS/ORFfinder/linux-i64/ORFfinder.gz
Expand Down Expand Up @@ -225,15 +225,15 @@ This MetaWorks quick start assumes that you have already installed the CO1 Class

```linux
# download latest version of MetaWorks
wget https://github.com/terrimporter/MetaWorks/releases/download/v1.9.6/MetaWorks1.9.5.zip
wget https://github.com/terrimporter/MetaWorks/releases/download/v1.9.7/MetaWorks1.9.5.zip
unzip MetaWorks1.9.5.zip
cd MetaWorks1.9.5
# edit config_testing_COI_data.yaml file to customize path to CO1v4 classifier properties file (line 131)
# create the latest conda environment and activate it
conda env create -f environment.yml
conda activate MetaWorks_v1.9.6
conda activate MetaWorks_v1.9.7
# run the pipeline on the COI test data
snakemake --jobs 1 --configfile config_testing_COI_data.yaml --snakefile snakefile_ESV
Expand All @@ -247,11 +247,11 @@ We have provided a small set of COI paired-end Illumina MiSeq files for this tut

**Step 1. Prepare your environment for the pipeline.**

Begin by downloading the latest MetaWorks release available at https://github.com/terrimporter/MetaWorks/releases/tag/v1.9.6 by using wget from the command line:
Begin by downloading the latest MetaWorks release available at https://github.com/terrimporter/MetaWorks/releases/tag/v1.9.7 by using wget from the command line:

```linux
# download the pipeline
wget https://github.com/terrimporter/MetaWorks/releases/download/v1.9.6/MetaWorks1.9.5.tar.gz
wget https://github.com/terrimporter/MetaWorks/releases/download/v1.9.7/MetaWorks1.9.5.tar.gz
# unzip the pipeline
unzip MetaWorks1.9.5.zip
Expand All @@ -277,7 +277,7 @@ cd ~/bin
ln -s ~/miniconda3/bin/conda conda
```

Create then activate the MetaWorks_v1.9.6 environment:
Create then activate the MetaWorks_v1.9.7 environment:

```linux
# Move into the MetaWorks folder
Expand All @@ -287,7 +287,7 @@ cd MetaWorks1.9.5
conda env create -f environment.yml
# Activate the environment. Do this everytime before running the pipeline.
conda activate MetaWorks_v1.9.6
conda activate MetaWorks_v1.9.7
```

Expand Down Expand Up @@ -369,10 +369,10 @@ cd ~/bin
ln -s ~/miniconda3/bin/conda conda
# Activate conda method 1 (working in a container)
source ~/miniconda3/bin/activate MetaWorks_v1.9.6
source ~/miniconda3/bin/activate MetaWorks_v1.9.7
# Activate conda method 2
conda activate MetaWorks_v1.9.6
conda activate MetaWorks_v1.9.7
```

### Checking program versions
Expand All @@ -384,7 +384,7 @@ Ensure the program versions in the environment are being used.
conda env create -f environment.yml
# activate the environment
conda activate MetaWorks_v1.9.6
conda activate MetaWorks_v1.9.7
# list all programs available in the environment at once
conda list > programs.list
Expand All @@ -411,11 +411,11 @@ If you have an older version of GLIBC (on Centos6), then you may be missing the
Create a symbolic link to the library:

```linux
cd ~/miniconda3/envs/MetaWorks_v1.9.6/lib
cd ~/miniconda3/envs/MetaWorks_v1.9.7/lib
ln -s ../glibc-2.14/lib/libc.so.6 libc.so.6
```

Create the shell script file LD_PATH.sh in the following location to set the environment variable: ~/miniconda3/envs/MetaWorks_v1.9.6/etc/conda/activate.d/LD_PATH.sh
Create the shell script file LD_PATH.sh in the following location to set the environment variable: ~/miniconda3/envs/MetaWorks_v1.9.7/etc/conda/activate.d/LD_PATH.sh

Put the following text in the LD_PATH.sh file:

Expand All @@ -425,7 +425,7 @@ export LD_LIBRARY_PATH=$CONDA_PREFIX/lib:$LD_LIBRARY_PATH
```

Create the file LD_PATH.sh in the following location to unset the environment variable:
~/miniconda3/envs/MetaWorks_v1.9.6/etc/conda/deactivate.d/LD_PATH.sh
~/miniconda3/envs/MetaWorks_v1.9.7/etc/conda/deactivate.d/LD_PATH.sh

Put the following text in the LD_PATH.sh file:

Expand All @@ -445,7 +445,7 @@ ORFfinder

The missing library (on Centos7), is already available, only the LD_LIBRARY_PATH needs to be updated as follows:

Create the shell script file LD_PATH.sh in the following location to set the environment variable: ~/miniconda3/envs/MetaWorks_v1.9.6/etc/conda/activate.d/LD_PATH.sh
Create the shell script file LD_PATH.sh in the following location to set the environment variable: ~/miniconda3/envs/MetaWorks_v1.9.7/etc/conda/activate.d/LD_PATH.sh

Put the following text in the LD_PATH.sh file:

Expand All @@ -455,7 +455,7 @@ export LD_LIBRARY_PATH=$CONDA_PREFIX/lib:$LD_LIBRARY_PATH
```

Create the file LD_PATH.sh in the following location to unset the environment variable:
~/miniconda3/envs/MetaWorks_v1.9.6/etc/conda/deactivate.d/LD_PATH.sh
~/miniconda3/envs/MetaWorks_v1.9.7/etc/conda/deactivate.d/LD_PATH.sh

Put the following text in the LD_PATH.sh file:

Expand Down Expand Up @@ -509,7 +509,7 @@ nohup snakemake --jobs 24 --snakefile snakefile --configfile config.yaml
# to start a screen session
screen
ctrl+a+c
conda activate MetaWorks_v1.9.6
conda activate MetaWorks_v1.9.7
snakemake --jobs 24 --snakefile snakefile --configfile config.yaml
ctrl+a+d
Expand Down Expand Up @@ -562,7 +562,7 @@ If you use this dataflow or any of the provided scripts, please cite the MetaWor
Porter, T.M., Hajibabaei, M. 2020. METAWORKS: A flexible, scalable bioinformatic pipeline for multi-marker biodiversity assessments. BioRxiv, doi: https://doi.org/10.1101/2020.07.14.202960.

You can also site this repository:
Teresita M. Porter. (2020, June 25). MetaWorks: A Multi-Marker Metabarcode Pipeline (Version v1.9.6). Zenodo. http://doi.org/10.5281/zenodo.4741407
Teresita M. Porter. (2020, June 25). MetaWorks: A Multi-Marker Metabarcode Pipeline (Version v1.9.7). Zenodo. http://doi.org/10.5281/zenodo.4741407

If you use this dataflow for making COI taxonomic assignments, please cite the COI classifier publication:
Porter, T. M., & Hajibabaei, M. (2018). Automated high throughput animal CO1 metabarcode classification. Scientific Reports, 8, 4226.
Expand Down Expand Up @@ -611,4 +611,4 @@ St. John, J. (2016, Downloaded). SeqPrep. Retrieved from https://github.com/jstj

Wang, Q., Garrity, G. M., Tiedje, J. M., & Cole, J. R. (2007). Naive Bayesian Classifier for Rapid Assignment of rRNA Sequences into the New Bacterial Taxonomy. Applied and Environmental Microbiology, 73(16), 5261–5267. doi:10.1128/AEM.00062-07

Last updated: December 14, 2021
Last updated: April 18, 2022

0 comments on commit 1f3d608

Please sign in to comment.