-
Notifications
You must be signed in to change notification settings - Fork 743
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow fastq.gz and fq.gz as file input, add meta.yml and test
- Loading branch information
Showing
6 changed files
with
100 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: sortmerna | ||
description: Local sequence alignment tool for filtering, mapping and clustering. | ||
keywords: | ||
- filtering | ||
- mapping | ||
- clustering | ||
- rRNA | ||
- ribosomal RNA | ||
tools: | ||
- SortMeRNA: | ||
description: The core algorithm is based on approximate seeds and allows for sensitive analysis of NGS reads. The main application of SortMeRNA is filtering rRNA from metatranscriptomic data. SortMeRNA takes as input files of reads (fasta, fastq, fasta.gz, fastq.gz) and one or multiple rRNA database file(s), and sorts apart aligned and rejected reads into two files. Additional applications include clustering and taxonomy assignation available through QIIME v1.9.1. SortMeRNA works with Illumina, Ion Torrent and PacBio data, and can produce SAM and BLAST-like alignments. | ||
homepage: https://hpc.nih.gov/apps/sortmeRNA.html | ||
documentation: https://github.com/biocore/sortmerna/wiki/ | ||
licence: ['GPL-3.0-or-later'] | ||
input: | ||
- meta: | ||
type: map | ||
description: | | ||
Groovy Map containing sample information | ||
e.g. [ id:'test', single_end:false ] | ||
- reads: | ||
type: file | ||
description: | | ||
List of input FastQ files of size 1 and 2 for single-end and paired-end data, | ||
respectively. | ||
- fastas: | ||
type: file | ||
description: | | ||
Path to reference file(s) | ||
output: | ||
- meta: | ||
type: map | ||
description: | | ||
Groovy Map containing sample information | ||
e.g. [ id:'test', single_end:false ] | ||
- reads: | ||
type: file | ||
description: The filtered fastq reads | ||
pattern: "*fastq.gz" | ||
- log: | ||
type: file | ||
description: SortMeRNA log file | ||
pattern: "*sortmerna.log" | ||
- versions: | ||
type: file | ||
description: File containing software versions | ||
pattern: "versions.yml" | ||
authors: | ||
- "@drpatelh" | ||
- "@mashehu" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/env nextflow | ||
|
||
nextflow.enable.dsl = 2 | ||
|
||
include { SORTMERNA } from '../../../modules/sortmerna/main.nf' | ||
|
||
// | ||
// Test with single-end data | ||
// | ||
workflow test_sortmerna_single_end { | ||
input = [ [ id:'test', single_end:true ], // meta map | ||
[ file(params.test_data['sarscov2']['illumina']['test_1_fastq_gz'], checkIfExists: true) ] | ||
] | ||
fasta = [ file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true) ] | ||
SORTMERNA ( input, fasta ) | ||
} | ||
|
||
// | ||
// Test with paired-end data | ||
// | ||
workflow test_sortmerna_paired_end { | ||
input = [ [ id:'test', single_end:false ], // meta map | ||
[ file(params.test_data['sarscov2']['illumina']['test_1_fastq_gz'], checkIfExists: true), | ||
file(params.test_data['sarscov2']['illumina']['test_2_fastq_gz'], checkIfExists: true) ] | ||
] | ||
fasta = [ file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true) ] | ||
SORTMERNA ( input, fasta ) | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
process { | ||
|
||
publishDir = { "${params.outdir}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" } | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
## TODO nf-core: Please run the following command to build this file: | ||
# nf-core modules create-test-yml sortmerna | ||
- name: sortmerna | ||
command: nextflow run ./tests/modules/sortmerna -entry test_sortmerna -c ./tests/config/nextflow.config -c ./tests/modules/sortmerna/nextflow.config | ||
tags: | ||
- sortmerna | ||
files: | ||
- path: output/sortmerna/test.bam | ||
md5sum: e667c7caad0bc4b7ac383fd023c654fc |