Skip to content

Commit

Permalink
add sindle end, FastQC
Browse files Browse the repository at this point in the history
  • Loading branch information
kubu4 committed Feb 5, 2024
1 parent 5de3938 commit 4cce68e
Show file tree
Hide file tree
Showing 25 changed files with 10,077 additions and 26 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<html><head><meta http-equiv="content-type" content="text/html;charset=utf-8" /><title>fastp report at 2024-02-02 17:05:20 </title><script src='http://opengene.org/plotly-1.2.0.min.js'></script>
<html><head><meta http-equiv="content-type" content="text/html;charset=utf-8" /><title>fastp report at 2024-02-05 13:41:47 </title><script src='http://opengene.org/plotly-1.2.0.min.js'></script>

<script type='text/javascript'>
window.Plotly || document.write('<script src="https://cdn.plot.ly/plotly-1.2.0.min.js"><\/script>')
Expand Down Expand Up @@ -4660,4 +4660,4 @@ <h1 style='text-align:left;'><a href='https://github.com/OpenGene/fastp' target=
</div>

</div>
<div id='footer'> <p>/home/shared/fastp --in1 ./raw/sRNA-POR-79-S1-TP2_R1_001.fastq.gz --in2 ./raw/sRNA-POR-79-S1-TP2_R2_001.fastq.gz --out1 ./trimmed-reads/fastp-adapters-polyG.R1.fq.gz --out2 ./trimmed-reads/fastp-adapters-polyG.R2.fq.gz --adapter_fasta NEB-adapters.fasta --trim_poly_g --overlap_len_require 17 --length_limit 31 --thread 46 --html fastp-31bp-adapters-polyG.html --json fastp-31bp-adapters-polyG.json --report_title fastp-31bp-adapters-polyG-only </p>fastp 0.23.2, at 2024-02-02 17:05:20 </div></body></html>
<div id='footer'> <p>/home/shared/fastp --in1 ./raw/sRNA-POR-79-S1-TP2_R1_001.fastq.gz --in2 ./raw/sRNA-POR-79-S1-TP2_R2_001.fastq.gz --out1 ./trimmed-reads/fastp-31bp-adapters-polyG.R1.fq.gz --out2 ./trimmed-reads/fastp-31bp-adapters-polyG.R2.fq.gz --adapter_fasta NEB-adapters.fasta --trim_poly_g --overlap_len_require 17 --length_limit 31 --thread 46 --html fastp-31bp-adapters-polyG.html --json fastp-31bp-adapters-polyG.json --report_title fastp-31bp-adapters-polyG-only </p>fastp 0.23.2, at 2024-02-05 13:41:47 </div></body></html>

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<html><head><meta http-equiv="content-type" content="text/html;charset=utf-8" /><title>fastp report at 2024-02-02 16:55:03 </title><script src='http://opengene.org/plotly-1.2.0.min.js'></script>
<html><head><meta http-equiv="content-type" content="text/html;charset=utf-8" /><title>fastp report at 2024-02-05 13:41:12 </title><script src='http://opengene.org/plotly-1.2.0.min.js'></script>

<script type='text/javascript'>
window.Plotly || document.write('<script src="https://cdn.plot.ly/plotly-1.2.0.min.js"><\/script>')
Expand Down Expand Up @@ -4659,4 +4659,4 @@ <h1 style='text-align:left;'><a href='https://github.com/OpenGene/fastp' target=
</div>

</div>
<div id='footer'> <p>/home/shared/fastp --in1 ./raw/sRNA-POR-79-S1-TP2_R1_001.fastq.gz --in2 ./raw/sRNA-POR-79-S1-TP2_R2_001.fastq.gz --out1 ./trimmed-reads/fastp-adapters-polyG.R1.fq.gz --out2 ./trimmed-reads/fastp-adapters-polyG.R2.fq.gz --adapter_fasta NEB-adapters.fasta --trim_poly_g --overlap_len_require 17 --thread 46 --html fastp-adapters-polyG.html --json fastp-adapters-polyG.json --report_title fastp-adapters-polyG-only </p>fastp 0.23.2, at 2024-02-02 16:55:04 </div></body></html>
<div id='footer'> <p>/home/shared/fastp --in1 ./raw/sRNA-POR-79-S1-TP2_R1_001.fastq.gz --in2 ./raw/sRNA-POR-79-S1-TP2_R2_001.fastq.gz --out1 ./trimmed-reads/fastp-adapters-polyG.R1.fq.gz --out2 ./trimmed-reads/fastp-adapters-polyG.R2.fq.gz --adapter_fasta NEB-adapters.fasta --trim_poly_g --overlap_len_require 17 --thread 46 --html fastp-adapters-polyG.html --json fastp-adapters-polyG.json --report_title fastp-adapters-polyG-only </p>fastp 0.23.2, at 2024-02-05 13:41:12 </div></body></html>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<html><head><meta http-equiv="content-type" content="text/html;charset=utf-8" /><title>fastp report at 2024-02-02 16:54:27 </title><script src='http://opengene.org/plotly-1.2.0.min.js'></script>
<html><head><meta http-equiv="content-type" content="text/html;charset=utf-8" /><title>fastp report at 2024-02-05 13:40:38 </title><script src='http://opengene.org/plotly-1.2.0.min.js'></script>

<script type='text/javascript'>
window.Plotly || document.write('<script src="https://cdn.plot.ly/plotly-1.2.0.min.js"><\/script>')
Expand Down Expand Up @@ -4624,4 +4624,4 @@ <h1 style='text-align:left;'><a href='https://github.com/OpenGene/fastp' target=
</div>

</div>
<div id='footer'> <p>/home/shared/fastp --in1 ./raw/sRNA-POR-79-S1-TP2_R1_001.fastq.gz --in2 ./raw/sRNA-POR-79-S1-TP2_R2_001.fastq.gz --out1 ./trimmed-reads/fastp-polyG_only.R1.fq.gz --out2 ./trimmed-reads/fastp-polyG_only.R2.fq.gz --disable_adapter_trimming --trim_poly_g --overlap_len_require 17 --thread 46 --html fastp-polyG-only.html --json fastp-polyG-only.json --report_title fastp-polyG-only </p>fastp 0.23.2, at 2024-02-02 16:54:27 </div></body></html>
<div id='footer'> <p>/home/shared/fastp --in1 ./raw/sRNA-POR-79-S1-TP2_R1_001.fastq.gz --in2 ./raw/sRNA-POR-79-S1-TP2_R2_001.fastq.gz --out1 ./trimmed-reads/fastp-polyG_only.R1.fq.gz --out2 ./trimmed-reads/fastp-polyG_only.R2.fq.gz --disable_adapter_trimming --trim_poly_g --overlap_len_require 17 --thread 46 --html fastp-polyG-only.html --json fastp-polyG-only.json --report_title fastp-polyG-only </p>fastp 0.23.2, at 2024-02-05 13:40:38 </div></body></html>

Large diffs are not rendered by default.

Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ echo "## Data URL"
echo 'export raw_reads_url="https://owl.fish.washington.edu/nightingales/P_evermanni/30-852430235/"'
echo "# Data directories"
echo 'export fastqc_out_dir="./fastqc"'
echo 'export raw_reads_dir="./raw"'
echo 'export trimmed_fastqs_dir="./trimmed-reads"'
echo ""
Expand All @@ -65,6 +66,7 @@ echo "# Paths to programs"
echo 'export programs_dir="/home/shared"'
echo 'export bbmerge="${programs_dir}/bbmap-39.06/bbmerge.sh"'
echo 'export fastp="${programs_dir}/fastp"'
echo 'export fastqc="${programs_dir}/FastQC-0.12.1/fastqc"'
echo ""
echo "# Set number of CPUs to use"
Expand Down Expand Up @@ -151,7 +153,9 @@ echo ""

[`fastp`](https://github.com/OpenGene/fastp) has many built-in functionality, including before/after trimming plots, and read 1 and read 2 merging.

### PolyG Trimming Only
### Paired-end Trimming

#### PolyG Trimming Only
```{bash fastp-polyG-only, engine='bash', eval=TRUE}
# Load bash variables into memory
source .bashvars
Expand All @@ -171,7 +175,7 @@ source .bashvars
```

### Adapters & PolyG Trimming
#### Adapters & PolyG Trimming
```{bash fastp-adapters-and-polyg, engine='bash', eval=TRUE}
# Load bash variables into memory
source .bashvars
Expand All @@ -190,20 +194,20 @@ source .bashvars
--report_title "fastp-adapters-polyG-only"
```

### PolyG Trimming Max Length 31
#### PolyG Trimming Max Length 31

This can't be run because we know from the polyG only trimming, that most read lengths are >89bp. As such, it would end up discarding all the reads...

### Adapters & PolyG Trimming Max Length 31
#### Adapters & PolyG Trimming Max Length 31
```{bash fastp-adapters-and-polyg, engine='bash', eval=TRUE}
# Load bash variables into memory
source .bashvars
"${fastp}" \
--in1 ./raw/sRNA-POR-79-S1-TP2_R1_001.fastq.gz \
--in2 ./raw/sRNA-POR-79-S1-TP2_R2_001.fastq.gz \
--out1 ./trimmed-reads/fastp-adapters-polyG.R1.fq.gz \
--out2 ./trimmed-reads/fastp-adapters-polyG.R2.fq.gz \
--out1 ./trimmed-reads/fastp-31bp-adapters-polyG.R1.fq.gz \
--out2 ./trimmed-reads/fastp-31bp-adapters-polyG.R2.fq.gz \
--adapter_fasta NEB-adapters.fasta \
--trim_poly_g \
--overlap_len_require 17 \
Expand All @@ -214,7 +218,7 @@ source .bashvars
--report_title "fastp-31bp-adapters-polyG-only"
```

### Adapters & PolyG Trimming Max Length 31 With Merge
#### Adapters & PolyG Trimming Max Length 31 With Merge
```{bash fastp-adapters-and-polyg, engine='bash', eval=TRUE}
# Load bash variables into memory
source .bashvars
Expand All @@ -229,26 +233,103 @@ source .bashvars
--merge \
--merged_out ./trimmed-reads/fastp-31bp-merged-adapters-polyG.fq.gz \
--thread ${threads} \
--html "fastp-31bp-merge-adapters-polyG.html" \
--json "fastp-31bp-merge-adapters-polyG.json" \
--report_title "fastp-31bp-adapters-polyG-only"
--html "fastp-31bp-merged-adapters-polyG.html" \
--json "fastp-31bp-merged-adapters-polyG.json" \
--report_title "fastp-31bp-merged-adapters-polyG"
```

### Adapters & PolyG Trimming
```{bash fastp-adapters-and-polyg, engine='bash', eval=TRUE}
### Single-end Trimming

#### Auto-adapters & PolyG Trimming
```{bash fastp-R1-auto_adapters-and-polyg, engine='bash', eval=TRUE}
# Load bash variables into memory
source .bashvars
"${fastp}" \
--in1 ./raw/sRNA-POR-79-S1-TP2_R1_001.fastq.gz \
--in2 ./raw/sRNA-POR-79-S1-TP2_R2_001.fastq.gz \
--adapter_fasta NEB-adapters.fasta \
--out1 ./trimmed-reads/fastp-R1-auto_adapters-polyG.fq.gz \
--trim_poly_g \
--overlap_len_require 17 \
--merge \
--merged_out ./trimmed-reads/fastp-merged-adapters-polyG.fq.gz \
--thread ${threads} \
--html "fastp-merge-adapters-polyG.html" \
--json "fastp-merge-adapters-polyG.json" \
--report_title "fastp-adapters-polyG-only"
--html "fastp-R1-auto_adapters-polyG.html" \
--json "fastp-R1-auto_adapters-polyG.json" \
--report_title "fastp-R1-auto_adapters-polyG"
```
#### Auto-adapters & PolyG Trimming Max Length 31
```{bash fastp-R1-31bp-auto_adapters-and-polyg, engine='bash', eval=TRUE}
# Load bash variables into memory
source .bashvars
"${fastp}" \
--in1 ./raw/sRNA-POR-79-S1-TP2_R1_001.fastq.gz \
--out1 ./trimmed-reads/fastp-R1-31bp-auto_adapters-polyG.fq.gz \
--trim_poly_g \
--length_limit 31 \
--thread ${threads} \
--html "fastp-R1-31bp-auto_adapters-polyG.html" \
--json "fastp-R1-31bbp-auto_adapters-polyG.json" \
--report_title "fastp-31bp-R1-auto_adapters-polyG"
```

## FastQC
```{r , engine='bash', eval=TRUE}
# Load bash variables into memory
source .bashvars
mkdir --parents "./fastqc"
# Populate array with FastQ files
fastq_array=(./trimmed-reads/*.fq.gz)
# Pass array contents to new variable
fastqc_list=$(echo "${fastq_array[*]}")
# Run FastQC
# NOTE: Do NOT quote ${fastqc_list}
${fastqc} \
--threads ${threads} \
--outdir ${fastqc_out_dir} \
${fastqc_list}
```

## FastQC
```{r , engine='bash', eval=TRUE}
# Load bash variables into memory
source .bashvars
mkdir --parents "./fastqc"
# Populate array with FastQ files
fastq_array=(./trimmed-reads/*.fq.gz)
# Pass array contents to new variable
fastqc_list=$(echo "${fastq_array[*]}")
# Run FastQC
# NOTE: Do NOT quote ${fastqc_list}
${fastqc} \
--threads ${threads} \
--outdir ${fastqc_out_dir} \
${fastqc_list}
```

## MultiQC

```{r , engine='bash', eval=TRUE}
# Load bash variables into memory
source .bashvars
mkdir --parents "./fastqc"
# Populate array with FastQ files
fastq_array=(./trimmed-reads/*.fq.gz)
# Pass array contents to new variable
fastqc_list=$(echo "${fastq_array[*]}")
# Run FastQC
# NOTE: Do NOT quote ${fastqc_list}
${fastqc} \
--threads ${threads} \
--outdir ${fastqc_out_dir} \
${fastqc_list}
```

0 comments on commit 4cce68e

Please sign in to comment.