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 Aug 20, 2021
1 parent 8157d81 commit 88c91b9
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 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.0 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.2 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 @@ -157,10 +157,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.0
conda activate MetaWorks_v1.9.2
# On the GPSC activate using source
source ~/miniconda/bin/activate MetaWorks_v1.9.0
source ~/miniconda/bin/activate MetaWorks_v1.9.2
```

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 @@ -172,11 +172,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.0/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.2/bin).

```linux
# go to your conda environment bin
cd ~/miniconda3/envs/MetaWorks_v1.9.0/bin/.
cd ~/miniconda3/envs/MetaWorks_v1.9.2/bin/.
# download ORFfinder
wget ftp://ftp.ncbi.nlm.nih.gov/genomes/TOOLS/ORFfinder/linux-i64/ORFfinder.gz
Expand Down Expand Up @@ -223,15 +223,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.0/MetaWorks1.9.0.zip
unzip MetaWorks1.9.0.zip
cd MetaWorks1.9.0
wget https://github.com/terrimporter/MetaWorks/releases/download/v1.9.2/MetaWorks1.9.2.zip
unzip MetaWorks1.9.2.zip
cd MetaWorks1.9.2
# 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.0
conda activate MetaWorks_v1.9.2
# run the pipeline on the COI test data
snakemake --jobs 1 --configfile config_testing_COI_data.yaml --snakefile snakefile_ESV
Expand All @@ -245,14 +245,14 @@ 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.0 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.2 by using wget from the command line:

```linux
# download the pipeline
wget https://github.com/terrimporter/MetaWorks/releases/download/v1.9.0/MetaWorks1.9.0.tar.gz
wget https://github.com/terrimporter/MetaWorks/releases/download/v1.9.2/MetaWorks1.9.2.tar.gz
# unzip the pipeline
unzip MetaWorks1.9.0.zip
unzip MetaWorks1.9.2.zip
```

If you don't already have conda on your system, then you will need to install it:
Expand All @@ -275,17 +275,17 @@ cd ~/bin
ln -s ~/miniconda3/bin/conda conda
```

Create then activate the MetaWorks_v1.9.0 environment:
Create then activate the MetaWorks_v1.9.2 environment:

```linux
# Move into the MetaWorks folder
cd MetaWorks1.9.0
cd MetaWorks1.9.2
# Create the environment from the provided environment.yml file . Only need to do this step once.
conda env create -f environment.yml
# Activate the environment. Do this everytime before running the pipeline.
conda activate MetaWorks_v1.9.0
conda activate MetaWorks_v1.9.2
```

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

### Checking program versions
Expand All @@ -382,7 +382,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.0
conda activate MetaWorks_v1.9.2
# list all programs available in the environment at once
conda list > programs.list
Expand All @@ -407,11 +407,11 @@ If you have an older version of GLIBC, then you may be missing libraries that OR
Create a symbolic link to the library:

```linux
cd ~/miniconda3/envs/MetaWorks_v1.9.0/lib
cd ~/miniconda3/envs/MetaWorks_v1.9.2/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.0/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.2/etc/conda/activate.d/LD_PATH.sh

Put the following text in the LD_PATH.sh file:

Expand All @@ -421,7 +421,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.0/etc/conda/deactivate.d/LD_PATH.sh
~/miniconda3/envs/MetaWorks_v1.9.2/etc/conda/deactivate.d/LD_PATH.sh

Put the following text in the LD_PATH.sh file:

Expand Down Expand Up @@ -475,7 +475,7 @@ nohup snakemake --jobs 24 --snakefile snakefile --configfile config.yaml
# to start a screen session
screen
ctrl+a+c
conda activate MetaWorks_v1.9.0
conda activate MetaWorks_v1.9.2
snakemake --jobs 24 --snakefile snakefile --configfile config.yaml
ctrl+a+d
Expand Down Expand Up @@ -521,7 +521,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.0). Zenodo. http://doi.org/10.5281/zenodo.4741407
Teresita M. Porter. (2020, June 25). MetaWorks: A Multi-Marker Metabarcode Pipeline (Version v1.9.2). 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 @@ -570,4 +570,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: August 10, 2021
Last updated: August 19, 2021

0 comments on commit 88c91b9

Please sign in to comment.