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:
Carpanzano 2022-05-05 13:51:41 +02:00
parent 204dfba2d8
commit 9083d3bb3d
5 changed files with 30 additions and 2 deletions

View file

@ -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."

View file

@ -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/**

View 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 ( )
}

View file

@ -0,0 +1,5 @@
process {
publishDir = { "${params.outdir}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" }
}

View 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