Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tutorial reformatted as Markdown #1

Merged
merged 2 commits into from
Apr 27, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 38 additions & 31 deletions tutorial/tutorial.txt → tutorial/README.md
Original file line number Diff line number Diff line change
@@ -1,53 +1,60 @@
###################################################################
# GBS SNP Calling Reference Optional Pipeline (GBS-SNP-CROP v1.1)
# step-by-step
####################################################################
# GBS SNP Calling Reference Optional Pipeline (GBS-SNP-CROP v1.1) Tutorial

# Authors: Arthur T. O. Melo, Radhika Bartaula, and Iago Hale
# Department of Biological Sciences, College of Life Science and Agriculture, University of New Hampshire, Durham, NH, USA.
Authors: Arthur T. O. Melo, Radhika Bartaula, and Iago Hale
Department of Biological Sciences, College of Life Science and Agriculture, University of New Hampshire, Durham, NH, USA.

Step 1: Parsing the raw reads (GBS-SNP-CROP-1.pl)
Parsing paired-end (PE) reads:
# Step 1: Parsing the raw reads

```bash
# Parsing paired-end (PE) reads:
perl /path-to-GBS-SNP-CROP/GBS-SNP-CROP-1.pl -d PE -b barcodesID.txt -fq L001 -s 1 -e 2 -enz1 TGCA -enz2 CGG
Parsing single-end (SE) reads:
# Parsing single-end (SE) reads:
perl /path-to-GBS-SNP-CROP/GBS-SNP-CROP-1.pl -d SE -b barcodesID.txt -fq L001 -s 1 -e 2 -enz1 TGCA -enz2 CGG
```


Step 2: Trim based on quality (GBS-SNP-CROP-2.pl)
Trimming paired-end (PE) reads:
# Step 2: Trim based on quality
```basg
# Trimming paired-end (PE) reads:
perl /path-to-GBS-SNP-CROP/GBS-SNP-CROP-2.pl -d PE -fq L001 -t 10 -ph 33 -l 30 -sl 4:30 -tr 30 -m 32
Trimming single-end (SE) reads:
# Trimming single-end (SE) reads:
perl /path-to-GBS-SNP-CROP/GBS-SNP-CROP-2.pl -d SE -fq L001 -t 10 -ph 33 -l 30 -sl 4:30 -tr 30 -m 32
```


Step 3: Demultiplex (GBS-SNP-CROP-3.pl)
Demultiplexing paired-end (PE) reads:
# Step 3: Demultiplex
```bash
# Demultiplexing paired-end (PE) reads:
perl /path-to-GBS-SNP-CROP/GBS-SNP-CROP-3.pl -d PE -b barcodesID.txt -fq L001
Demultiplexing single-end (SE) reads:
# Demultiplexing single-end (SE) reads:
perl /path-to-GBS-SNP-CROP/GBS-SNP-CROP-3.pl -d SE -b barcodesID.txt -fq L001
```


Step 4: Cluster reads and assemble the Mock Reference (GBS-SNP-CROP-4.pl)
Parsing paired-end (PE) reads:
# Step 4: Cluster reads and assemble the Mock Reference
```bash
# Parsing paired-end (PE) reads:
perl /path-to-GBS-SNP-CROP/GBS-SNP-CROP-4.pl -d PE -b barcodeID.txt -rl 150 -pl 32 -p 0.01 -id 0.93 -t 10 -MR MockRefName
Parsing single-end (SE) reads:
# Parsing single-end (SE) reads:
perl /path-to-GBS-SNP-CROP/GBS-SNP-CROP-4.pl -d SE -b barcodeID.txt -rl 150 -pl 32 -p 0.01 -id 0.93 -t 10 -MR MockRefName
```


Step 5: Align with BWA-mem and process with SAMTools (GBS-SNP-CROP-5.pl)
Mapping paired-end (PE) reads:
# Step 5: Align with BWA-mem and process with SAMTools
```bash
# Mapping paired-end (PE) reads:
perl /path-to-GBS-SNP-CROP/GBS-SNP-CROP-5.pl -d PE-b barcodeID.txt -ref MockRefName.MockRef_Genome.fasta -Q 30 -q 0 -f 2 -F 2308 -t 10 -Opt 0
Mapping single-end (SE) reads:
# Mapping single-end (SE) reads:
perl /path-to-GBS-SNP-CROP/GBS-SNP-CROP-5.pl -d SE-b barcodeID.txt -ref MockRefName.MockRef_Genome.fasta -Q 30 -q 0 -f 0 -F 2308 -t 10 -Opt 0
```


Step 6: Parse mpileup output and produce the SNP discovery master matrix (GBS-SNP-CROP-6.pl)
# Step 6: Parse mpileup output and produce the SNP discovery master matrix
```bash
perl /path-to-GBS-SNP-CROP/GBS-SNP-CROP-6.pl -b barcodeID.txt -out SNPs_master_matrix.txt
```


Step 7: Filter SNPs and call genotypes (GBS-SNP-CROP-7.pl)
# Step 7: Filter SNPs and call genotypes
```bash
perl /path-to-GBS-SNP-CROP/GBS-SNP-CROP-7.pl -in SNPs_master_matrix.txt -out SNPs_genotyping_matrix.txt -mnHoDepth0 11 -mnHoDepth1 48 -mnHetDepth 3 -altStrength 0.9 -mnAlleleRatio 0.1 -mnCall 0.75 -mnAvgDepth 4 -mxAvgDepth 200
```


Downstream Tool (GBS-SNP-CROP-8.pl)
# Downstream Tool
```bash
perl /path-to-GBS-SNP-CROP/GBS-SNP-CROP-8.pl -in SNPs_genotyping_matrix.txt -b barcodeID.txt -formats R,Tassel,Plink
```