Workflow Steps and Code Snippets
141 tagged steps and code snippets that match keyword kraken2
Snakemake pipeline for detection limit test from laser-microdissected samples
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | shell: """ if [[ {params.is_paired} = "True" ]] ; then kraken2 \ --db {input.database} \ --threads {threads} \ --paired \ --gzip-compressed \ --output >(pigz > {output.out_gz}) \ --report {output.report} \ {input.forward_} \ {input.reverse_} \ > {log} 2>&1 else kraken2 \ --db {input.database} \ --threads {threads} \ --gzip-compressed \ --output >(pigz > {output.out_gz}) \ --report {output.report} \ {input.forward_} \ > {log} 2>&1 fi """ |
Snakemake workflow: Bioinfo_Macro_Microbial_Metatranscriptomics
21 22 23 24 25 26 27 28 29 30 31 32 33 | shell: """ kraken2 \ --db {input.database} \ --threads {threads} \ --paired \ --gzip-compressed \ --output >(pigz -11 > {output.out_gz}) \ --report {output.report} \ {input.forward_} \ {input.reverse_} \ > {log} 2>&1 """ |
85 86 87 88 89 90 91 92 93 94 | shell: """ multiqc \ --title kraken2 \ --force \ --filename kraken2 \ --outdir {params.dir} \ {input} \ 2> {log} 1>&2 """ |
Snakemake workflow: Bioinfo_Macro_Microbial_Metatranscriptomics
21 22 23 24 25 26 27 28 29 30 31 32 33 | shell: """ kraken2 \ --db {input.database} \ --threads {threads} \ --paired \ --gzip-compressed \ --output >(pigz -11 > {output.out_gz}) \ --report {output.report} \ {input.forward_} \ {input.reverse_} \ > {log} 2>&1 """ |
85 86 87 88 89 90 91 92 93 94 | shell: """ multiqc \ --title kraken2 \ --force \ --filename kraken2 \ --outdir {params.dir} \ {input} \ 2> {log} 1>&2 """ |
Snakemake pipeline for detection limit test
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | shell: """ if [[ {params.is_paired} = "True" ]] ; then kraken2 \ --db {input.database} \ --threads {threads} \ --paired \ --gzip-compressed \ --output >(pigz > {output.out_gz}) \ --report {output.report} \ {input.forward_} \ {input.reverse_} \ > {log} 2>&1 else kraken2 \ --db {input.database} \ --threads {threads} \ --gzip-compressed \ --output >(pigz > {output.out_gz}) \ --report {output.report} \ {input.forward_} \ > {log} 2>&1 fi """ |
Snakemake workflow for metagenomic analysis of rumen samples from sheep
187 188 189 190 191 192 193 194 | shell: 'kraken2 ' '--use-names ' '--db /dataset/2022-BJP-GTDB/scratch/2022-BJP-GTDB/kraken/GTDB ' '-t {threads} ' '--report {output.k2ReportGTDB} ' '--report-minimizer-data ' '{input.KDRs} > {output.k2OutputGTDB}' |
vRAPID: Virus Reference-based Assembly and Identification Pipeline
231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 | shell: """ echo "{params.run_ID} was run using the following versions \n" > {output.version_report} echo "\n Name Version Build Channel \n SAMTOOLS: \n" &>> {output.version_report} conda list | grep -w "^samtools" &>> {output.version_report} echo "\n CUTADAPT: \n" &>> {output.version_report} conda list | grep -w "^cutadapt" &>> {output.version_report} echo "\n MINIMAP2: \n" &>> {output.version_report} conda list | grep -w "minimap2" &>> {output.version_report} echo "\n PILON: \n" &>> {output.version_report} conda list | grep "pilon" &>> {output.version_report} echo "\n QUALIMAP: \n" &>> {output.version_report} conda list | grep "qualimap" &>> {output.version_report} echo "\n SHOVILL: \n" &>> {output.version_report} conda list | grep "shovill" &>> {output.version_report} echo "\n PROKKA: \n" &>> {output.version_report} conda list | grep "prokka" &>> {output.version_report} echo "\n KRAKEN2: \n" &>> {output.version_report} conda list | grep "kraken2" &>> {output.version_report} echo "\n PYTHON: \n" &>> {output.version_report} conda list | grep "^python" &>> {output.version_report} echo "\n MULTIQC: \n" &>> {output.version_report} conda list | grep "multiqc" &>> {output.version_report} echo "\n FASTQC: \n" &>> {output.version_report} conda list | grep "fastqc" &>> {output.version_report} echo "\n PICARD Alignment Sumamry Metrics: \n" &>> {output.version_report} conda list | grep "picard" &>> {output.version_report} echo "\n {params.run_ID} was aligned against the following reference: \n {params.reference} \n Using the following genabnk file: \n {params.genbankfile} \n " &>> {output.version_report} echo "\n primer sets used were: \n (1) {params.ps1} \n (2) {params.ps2}" &>> {output.version_report} > {log.versioncheck} 2>&1 """ |
SpaceMicrobe Snakemake Workflow for 10X Visium Spatial Gene Expression Data
291 292 293 294 295 296 297 298 299 300 301 302 303 | shell: """ kraken2 --db {params.db} \ --memory-mapping \ --confidence 0.1 \ --threads {threads} \ --use-names \ --gzip-compressed \ --report-minimizer-data \ --output {output.txt} \ --report {output.report} \ {input} """ |
taxonomic_profiling_pipeline
100 101 102 103 104 105 106 107 108 109 110 111 | shell: "kraken2 " "--db {params.db} " "--threads {threads} " "--output {output.kraken_class} " "--confidence {params.confidence} " "--minimum-base-quality {params.base_qual} " "--report {output.kraken_report} " "--paired " "--use-names " "--gzip-compressed " "{input.fwd} {input.rev}" |
tool / biotools
kraken2
Kraken 2 is the newest version of Kraken, a taxonomic classification system using exact k-mer matches to achieve high accuracy and fast classification speeds. This classifier matches each k-mer within a query sequence to the lowest common ancestor (LCA) of all genomes containing the given k-mer. The k-mer assignments inform the classification algorithm.