Skip to content

Commit

Permalink
Merge pull request #1 from sirselim/custom-protocol-patch
Browse files Browse the repository at this point in the history
custom protocol implementation
  • Loading branch information
sirselim authored Mar 1, 2020
2 parents a115116 + 675b45c commit ee06e42
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
15 changes: 9 additions & 6 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,15 @@ Default: "illumina"
--protocol [one protocol listed in the table below]
```

| Protocol | Library Prep Kit | Trimming Parameter | 3' Adapter Sequence |
| :------------ | :-------------------------------------- | :----------------------------------- | :------------------- |
| illumina | Illumina TruSeq Small RNA | clip_R1 = 0; three_prime_clip_R1 = 0 | TGGAATTCTCGGGTGCCAAGG |
| nextflex | BIOO SCIENTIFIC NEXTFLEX Small RNA-Seq | clip_R1 = 4; three_prime_clip_R1 = 4 | TGGAATTCTCGGGTGCCAAGG |
| qiaseq | QIAGEN QIAseq miRNA | clip_R1 = 0; three_prime_clip_R1 = 0 | AACTGTAGGCACCATCAAT |
| cats | Diagenode CATS Small RNA-seq | clip_R1 = 3; three_prime_clip_R1 = 0 | GATCGGAAGAGCACACGTCTG |
| Protocol | Library Prep Kit | Trimming Parameter | 3' Adapter Sequence |
| :----------------- | :-------------------------------------- | :----------------------------------- | :------------------- |
| illumina | Illumina TruSeq Small RNA | clip_R1 = 0; three_prime_clip_R1 = 0 | TGGAATTCTCGGGTGCCAAGG |
| nextflex | BIOO SCIENTIFIC NEXTFLEX Small RNA-Seq | clip_R1 = 4; three_prime_clip_R1 = 4 | TGGAATTCTCGGGTGCCAAGG |
| qiaseq | QIAGEN QIAseq miRNA | clip_R1 = 0; three_prime_clip_R1 = 0 | AACTGTAGGCACCATCAAT |
| cats | Diagenode CATS Small RNA-seq | clip_R1 = 3; three_prime_clip_R1 = 0 | GATCGGAAGAGCACACGTCTG |
| custom<sup>*</sup> | user defined | user defined | user defined |

<sup>*</sup>**Note:** when running `--protocol custom` the user must define the 3' Adapter Sequence. If trimming parameters aren't provided the pipeline will deafult to clip_R1 = 0 and three_prime_clip_R1 = 0 (i.e. no extra clipping).

## Reference genomes

Expand Down
3 changes: 2 additions & 1 deletion main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,7 @@ process mirtrace {

script:
primer = (protocol=="cats") ? " " : " --adapter $three_prime_adapter "
protocol_opt = (protocol=="custom") ? " " : " --protocol $protocol "
"""
for i in $reads
do
Expand All @@ -722,7 +723,7 @@ process mirtrace {
mirtrace qc \\
--species $params.mirtrace_species \\
$primer \\
--protocol $protocol \\
$protocol_opt $protocol \\
--config mirtrace_config \\
--write-fasta \\
--output-dir mirtrace \\
Expand Down

0 comments on commit ee06e42

Please sign in to comment.