mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 11:08:17 +00:00
integrating suggestions from PR comments, including recovery of tests for kronadb and more detailed explanation of input database in yml file
This commit is contained in:
parent
204dfba2d8
commit
9083d3bb3d
5 changed files with 30 additions and 2 deletions
|
@ -23,8 +23,11 @@ input:
|
||||||
Groovy Map containing sample information
|
Groovy Map containing sample information
|
||||||
e.g. [ id:'test']
|
e.g. [ id:'test']
|
||||||
- database:
|
- database:
|
||||||
type: path
|
type: file
|
||||||
description: "Path to the taxonomy database downloaded by krona/kronadb"
|
description: |
|
||||||
|
Path to the taxonomy database .tab file downloaded by krona/ktUpdateTaxonomy
|
||||||
|
The file will be saved under a folder named "taxonomy" as "taxonomy/taxonomy.tab".
|
||||||
|
The parent folder will be passed as argument to ktImportTaxonomy.
|
||||||
- report:
|
- report:
|
||||||
type: file
|
type: file
|
||||||
description: "A tab-delimited file with taxonomy IDs and (optionally) query IDs, magnitudes, and scores. Query IDs are taken from column 1, taxonomy IDs from column 2, and scores from column 3. Lines beginning with # will be ignored."
|
description: "A tab-delimited file with taxonomy IDs and (optionally) query IDs, magnitudes, and scores. Query IDs are taken from column 1, taxonomy IDs from column 2, and scores from column 3. Lines beginning with # will be ignored."
|
||||||
|
|
|
@ -1054,6 +1054,10 @@ kraken2/kraken2:
|
||||||
- modules/untar/**
|
- modules/untar/**
|
||||||
- tests/modules/kraken2/kraken2/**
|
- tests/modules/kraken2/kraken2/**
|
||||||
|
|
||||||
|
krona/kronadb:
|
||||||
|
- modules/krona/kronadb/**
|
||||||
|
- tests/modules/krona/kronadb/**
|
||||||
|
|
||||||
krona/ktupdatetaxonomy:
|
krona/ktupdatetaxonomy:
|
||||||
- modules/krona/ktupdatetaxonomy/**
|
- modules/krona/ktupdatetaxonomy/**
|
||||||
- tests/modules/krona/ktupdatetaxonomy/**
|
- tests/modules/krona/ktupdatetaxonomy/**
|
||||||
|
|
9
tests/modules/krona/kronadb/main.nf
Normal file
9
tests/modules/krona/kronadb/main.nf
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
#!/usr/bin/env nextflow
|
||||||
|
|
||||||
|
nextflow.enable.dsl = 2
|
||||||
|
|
||||||
|
include { KRONA_KRONADB } from '../../../../modules/krona/kronadb/main.nf'
|
||||||
|
|
||||||
|
workflow test_krona_kronadb {
|
||||||
|
KRONA_KRONADB ( )
|
||||||
|
}
|
5
tests/modules/krona/kronadb/nextflow.config
Normal file
5
tests/modules/krona/kronadb/nextflow.config
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
process {
|
||||||
|
|
||||||
|
publishDir = { "${params.outdir}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" }
|
||||||
|
|
||||||
|
}
|
7
tests/modules/krona/kronadb/test.yml
Normal file
7
tests/modules/krona/kronadb/test.yml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
- name: krona kronadb test_krona_kronadb
|
||||||
|
command: nextflow run ./tests/modules/krona/kronadb -entry test_krona_kronadb -c ./tests/config/nextflow.config -c ./tests/modules/krona/kronadb/nextflow.config
|
||||||
|
tags:
|
||||||
|
- krona
|
||||||
|
- krona/kronadb
|
||||||
|
files:
|
||||||
|
- path: output/krona/taxonomy/taxonomy.tab
|
Loading…
Reference in a new issue