1
0
Fork 0
mirror of https://github.com/MillironX/taxprofiler.git synced 2024-09-21 02:32:04 +00:00

Rename taxpasta parameters and remove samplesheet parameter

This commit is contained in:
sofstam 2023-02-17 14:47:29 +01:00
parent 604df56fdb
commit f0aa89cb87
3 changed files with 16 additions and 23 deletions

View file

@ -534,7 +534,7 @@ process {
}
withName: MOTUS_MERGE {
ext.args = { params.generate_biom_output ? "-B" : "" }
ext.args = { params.standardisation_motus_generatebiom ? "-B" : "" }
ext.prefix = { "motus_${meta.id}_combined_reports" }
publishDir = [
path: { "${params.outdir}/motus/" },
@ -545,9 +545,8 @@ process {
withName: TAXPASTA_MERGE {
ext.args = {
[
"-p ${meta.tool} -o ${meta.tool}_${meta.id}.${params.taxpasta_standardisation_format}",
params.taxpasta_add_taxonomy ? "-p" : "",
params.taxpasta_add_samplesheet ? "-s" :""
"-p ${meta.tool} -o ${meta.tool}_${meta.id}.${params.standardisation_taxpasta_format}",
params.standardisation_taxpasta_addtaxonomy ? "-p" : ""
].join(' ').trim()
}
publishDir = [

View file

@ -156,10 +156,9 @@ params {
// profile standardisation
run_profile_standardisation = false
taxpasta_add_taxonomy = false
taxpasta_add_samplesheet = false
taxpasta_standardisation_format = 'tsv'
generate_biom_output = false
standardisation_taxpasta_addtaxonomy = false
standardisation_taxpasta_format = 'tsv'
standardisation_motus_generatebiom = false
}
// Load base.config by default for all pipelines

View file

@ -491,11 +491,11 @@
"description": "Turn on standardisation of taxon tables across profilers",
"help_text": "Turns on standardisation of output OTU tables across all tools; each into a TSV format following the following scheme:\n\n|TAXON | SAMPLE_A | SAMPLE_B |\n|-------------|----------------|-----------------|\n| taxon_a | 32 | 123 |\n| taxon_b | 1 | 5 |\n\nThis currently only is generated for mOTUs."
},
"generate_biom_output": {
"standardisation_motus_generatebiom": {
"type": "boolean",
"fa_icon": "fas fa-toggle-on",
"description": "Turn on generation of BIOM output (currently only applies to mOTUs)",
"help_text": "Turn on the saving of the taxonomic output in BIOM format (`.biom`) in the results directory of your pipeline run, instead of the default TSV format.\n\nNote this file is from the output of the `motus merge` command.\n\n> Modifies tool parameter(s):\n> - `-B -o`"
"help_text": "Turn on the saving of the taxonomic output in BIOM format (`.biom`) in the results directory of your pipeline run, instead of the default TSV format.\\n\\nNote this file is from the output of the `motus merge` command.\\n\\n> Modifies tool parameter(s):\\n> - `-B -o`"
},
"run_krona": {
"type": "boolean",
@ -510,22 +510,17 @@
"description": "Specify path to krona taxonomy directories (required for MALT krona plots)",
"help_text": "Specify a path to a Krona taxonomy database directory (i.e. a directory containing a krona generated `.tab` file).\n\nThis is only required for generating Krona plots of MALT output.\n\nNote this taxonomy database must be downloaded and generated with the `updateTaxonomy.sh` script from the krona-tools package."
},
"taxpasta_add_taxonomy": {
"type": "boolean",
"description": "The path to a directory containing taxdump files.",
"help_text": "At least nodes.dmp and names.dmp are required. A merged.dmp file is optional."
},
"taxpasta_add_samplesheet": {
"type": "boolean",
"description": "A table with with two columns, one for the sample and one for the taxonomic profile.",
"help_text": "If this option is provided, any arguments are ignored."
},
"taxpasta_standardisation_format": {
"standardisation_taxpasta_format": {
"type": "string",
"default": "tsv",
"fa_icon": "fas fa-file",
"description": "The desired output format.",
"enum": ["tsv", "csv", "arrow", "parquet", "biom"],
"fa_icon": "fas fa-file"
"enum": ["tsv", "csv", "arrow", "parquet", "biom"]
},
"standardisation_taxpasta_addtaxonomy": {
"type": "boolean",
"description": "The path to a directory containing taxdump files, typically from NCBI.",
"help_text": "At least nodes.dmp and names.dmp are required. A merged.dmp file is optional."
}
},
"fa_icon": "fas fa-chart-line"