Workflow Steps and Code Snippets
146 tagged steps and code snippets that match keyword Trimmomatic
Command line bioinformatics workflows, created with Snakemake workflow management tool. (V0.4)
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 | shell: """ touch null.fa java -jar {input.exec} PE -threads {threads} -phred33 {input.forward} {input.reverse} \ {output.forward_paired} {output.forward_unpaired} {output.reverse_paired} {output.reverse_unpaired} \ ILLUMINACLIP:{config[trimmomatic][ILLUMINACLIP]} \ HEADCROP:{config[trimmomatic][HEADCROP]} \ LEADING:{config[trimmomatic][LEADING]} \ SLIDINGWINDOW:{config[trimmomatic][SLIDINGWINDOW]} \ TRAILING:{config[trimmomatic][TRAILING]} \ AVGQUAL:{config[trimmomatic][AVGQUAL]} \ MINLEN:{config[trimmomatic][MINLEN]} \ CROP:{config[trimmomatic][CROP]} rm null.fa """ |
High throughput Next Generation Sequencing (NGS) data analysis using Python 3 Snakemake
50 51 | shell: "~/miniconda2/bin/trimmomatic PE -threads {threads} {input.read1} {input.read2} {output.fp} {output.fu} {output.rp} {output.ru} ILLUMINACLIP:TruSeq3-PE-2.fa:2:30:10:2:keepBothReads SLIDINGWINDOW:4:20 TRAILING:3 MINLEN:36 2>{log}" |
Clin-mNGS: Automated pipeline for pathogen detection from clinical metagenomic data
51 52 | shell: "trimmomatic PE {input.r1} {input.r2} {output.r1_paired} {output.r1_unpaired} {output.r2_paired} {output.r2_unpaired} SLIDINGWINDOW:5:20 MINLEN:55 LEADING:3 TRAILING:3" |
A Snakemake workflow to basecall, quality control and assemble Nanopore data.
97 98 | shell: "trimmomatic PE {input.r1} {input.r2} {output.r1} {output.r1_unpaired} {output.r2} {output.r2_unpaired} -threads {params.threads} ILLUMINACLIP:{params.adapter_filepath}:{params.seed}:{params.palindrome_clip}:{params.simple_clip}:{params.minadapterlength}:{params.keep_both_reads} SLIDINGWINDOW:{params.window_size}:{params.window_size_quality} MINLEN:{params.minlength} HEADCROP:{params.headcrop_length} &>{log}" |
(S)train (A)ssignment from (M)etagen(O)me (S)NP (A)nalysis. (1.0)
27 28 | shell: "trimmomatic PE {input.r1} {input.r2} {output.r1} {output.r1_unpaired} {output.r2} {output.r2_unpaired} -threads {params.threads} ILLUMINACLIP:{params.adapter_filepath}:{params.seed}:{params.palindrome_clip}:{params.simple_clip}:{params.minadapterlength}:{params.keep_both_reads} SLIDINGWINDOW:{params.window_size}:{params.window_size_quality} MINLEN:{params.minlength} HEADCROP:{params.headcrop_length} &>{log}" |
Analysis code for the TAP-seq manuscript.
103 104 105 106 | shell: "bash scripts/download_fastq/merge_fastq_i7.sh {params.outdir} {output.fwd} {output.rev} " "> {log} ; trimmomatic SE {output.rev} {params.outdir}/tmp.txt.gz CROP:58 2>> {log} ; " "mv -v {params.outdir}/tmp.txt.gz {output.rev} >> {log}" |
Benchmarking adapter and quality trimming tools
108 109 110 111 112 113 114 115 116 117 118 119 | shell: """ trimmomatic \ SE \ -phred33 \ -threads {threads} \ {input.fastq} \ {output} \ ILLUMINACLIP:gruseq.fa:2:28:10 \ MINLEN:10 \ 2> {log} """ |
An easy-to-use, flexible variant calling pipeline for use on the Biowulf cluster at NIH (v2.0)
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 | shell: """ myoutdir="$(dirname {output.one})" if [ ! -d "$myoutdir" ]; then mkdir -p "$myoutdir"; fi trimmomatic PE \\ -threads {threads} \\ -phred33 \\ {input.r1} {input.r2} \\ {output.one} {output.two} \\ {output.three} {output.four} \\ ILLUMINACLIP:{params.adapterfile}:3:30:10 \\ LEADING:10 \\ TRAILING:10 \\ SLIDINGWINDOW:4:20 \\ MINLEN:20 """ |
This workflow performs an RNA-seq analysis from the sequencing output data to the differential expression analyses. (v2.0.0)
37 38 39 40 41 42 43 44 45 46 | shell: """ sample=({input.sample}) sample_trimmed=({output.sample_trimmed}) sample_untrimmed=({output.sample_untrimmed}) len=${{#sample[@]}} for (( i=0; i<$len; i=i+2 )) do trimmomatic PE -threads 4 ${{sample[$i]}} ${{sample[$i+1]}} ${{sample_trimmed[$i]}} ${{sample_untrimmed[$i]}} ${{sample_trimmed[$i+1]}} ${{sample_untrimmed[$i+1]}} LEADING:20 TRAILING:15 SLIDINGWINDOW:4:15 MINLEN:36 done """ |
Snakemake workflow: 16S rRNA-seq for gastric microbiota
33 34 35 36 37 | shell: ''' trimmomatic PE -threads {threads} -phred33 -quiet {input.r1} {input.r2} \ {output.r1} {output.r1_unpaired} {output.r2} {output.r2_unpaired} {params.trimmer} ''' |