mirror of
https://github.com/MillironX/taxprofiler.git
synced 2024-11-14 07:03:09 +00:00
Merge branch 'nf-core:dev' into update_output
This commit is contained in:
commit
3b6be07623
56 changed files with 537 additions and 270 deletions
4
.github/workflows/fix-linting.yml
vendored
4
.github/workflows/fix-linting.yml
vendored
|
@ -34,9 +34,9 @@ jobs:
|
||||||
id: prettier_status
|
id: prettier_status
|
||||||
run: |
|
run: |
|
||||||
if prettier --check ${GITHUB_WORKSPACE}; then
|
if prettier --check ${GITHUB_WORKSPACE}; then
|
||||||
echo "name=result::pass" >> $GITHUB_OUTPUT
|
echo "result=pass" >> $GITHUB_OUTPUT
|
||||||
else
|
else
|
||||||
echo "name=result::fail" >> $GITHUB_OUTPUT
|
echo "result=fail" >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Run 'prettier --write'
|
- name: Run 'prettier --write'
|
||||||
|
|
2
.github/workflows/linting_comment.yml
vendored
2
.github/workflows/linting_comment.yml
vendored
|
@ -18,7 +18,7 @@ jobs:
|
||||||
|
|
||||||
- name: Get PR number
|
- name: Get PR number
|
||||||
id: pr_number
|
id: pr_number
|
||||||
run: echo "name=pr_number::$(cat linting-logs/PR_number.txt)" >> $GITHUB_OUTPUT
|
run: echo "pr_number=$(cat linting-logs/PR_number.txt)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Post PR comment
|
- name: Post PR comment
|
||||||
uses: marocchino/sticky-pull-request-comment@v2
|
uses: marocchino/sticky-pull-request-comment@v2
|
||||||
|
|
389
docs/usage.md
389
docs/usage.md
|
@ -99,65 +99,16 @@ nf-core/taxprofiler will automatically decompress and extract any compressed arc
|
||||||
|
|
||||||
Expected (uncompressed) database files for each tool are as follows:
|
Expected (uncompressed) database files for each tool are as follows:
|
||||||
|
|
||||||
- **MALT** output of `malt-build`. A directory containing:
|
- [**Bracken** output](#bracken-custom-database) of a combined `kraken2-` and `bracken-build` process.
|
||||||
- `ref.idx`
|
- [**Centrifuge** output](#centrifuge-custom-database) of `centrifuge-build`.
|
||||||
- `taxonomy.idx`
|
- [**DIAMOND** output](#diamond-custom-database) of `diamond makedb`.
|
||||||
- `taxonomy.map`
|
to generate taxonomic profile. See [DIAMOND documentation](https://github.com/bbuchfink/diamond/wiki/3.-Command-line-options#makedb-options).
|
||||||
- `index0.idx`
|
- [**Kaiju** output](#kaiju-custom-database) of `kaiju-makedb`.
|
||||||
- `table0.idx`
|
- [**Kraken2** output](#kraken2-custom-database) of `kraken2-build` command(s).
|
||||||
- `table0.db`
|
- [**KrakenUniq** output](#krakenuniq-custom-database) of `krakenuniq-build` command(s).
|
||||||
- `ref.inf`
|
- [**MALT** output](#malt-custom-database) of `malt-build`.
|
||||||
- `ref.db`
|
- [**MetaPhlAn3**](#metaphlan3-custom-database) generated with `metaphlan --install` or downloaded from links on the [MetaPhlAn3 wiki](https://github.com/biobakery/MetaPhlAn/wiki/MetaPhlAn-3.0#customizing-the-database).
|
||||||
- `taxonomy.tre`
|
- [**mOTUs**](#motus-custom-database) is composed of code and database together.
|
||||||
- **Kraken2** output of `kraken2-build` command(s) A directory containing:
|
|
||||||
- `opts.k2d`
|
|
||||||
- `hash.k2d`
|
|
||||||
- `taxo.k2d`
|
|
||||||
- **Bracken** output of a combined `kraken2-` and `bracken-build` process. Please see the [documentation on Bracken](https://github.com/jenniferlu717/Bracken#running-bracken-easy-version) for details. The output is a directory containing files per expected sequencing read length similarly to:
|
|
||||||
- `hash.k2d`
|
|
||||||
- `opts.k2d`
|
|
||||||
- `taxo.k2d`
|
|
||||||
- `database.kraken`
|
|
||||||
- `database100mers.kmer_distrib`
|
|
||||||
- `database100mers.kraken`
|
|
||||||
- `database150mers.kmer_distrib`
|
|
||||||
- `database150mers.kraken`
|
|
||||||
- **KrakenUniq** output of `krakenuniq-build` command(s) A directory containing:
|
|
||||||
- `opts.k2d`
|
|
||||||
- `hash.k2d`
|
|
||||||
- `taxo.k2d`
|
|
||||||
- `database.idx`
|
|
||||||
- `taxDB`
|
|
||||||
- **Centrifuge** output of `centrifuge-build`. A directory containing:
|
|
||||||
- `<database_name>.<number>.cf`
|
|
||||||
- `<database_name>.<number>.cf`
|
|
||||||
- `<database_name>.<number>.cf`
|
|
||||||
- `<database_name>.<number>.cf`
|
|
||||||
- **MetaPhlAn3** generated with `metaphlan --install` or downloaded from links on the [MetaPhlAn3 wiki](https://github.com/biobakery/MetaPhlAn/wiki/MetaPhlAn-3.0#customizing-the-database). A directory containing:
|
|
||||||
- `mpa_v30_CHOCOPhlAn_201901.pkl`
|
|
||||||
- `mpa_v30_CHOCOPhlAn_201901.pkl`
|
|
||||||
- `mpa_v30_CHOCOPhlAn_201901.fasta`
|
|
||||||
- `mpa_v30_CHOCOPhlAn_201901.3.bt2`
|
|
||||||
- `mpa_v30_CHOCOPhlAn_201901.4.bt2`
|
|
||||||
- `mpa_v30_CHOCOPhlAn_201901.1.bt2`
|
|
||||||
- `mpa_v30_CHOCOPhlAn_201901.2.bt2`
|
|
||||||
- `mpa_v30_CHOCOPhlAn_201901.rev.1.bt2`
|
|
||||||
- `mpa_v30_CHOCOPhlAn_201901.rev.2.bt2`
|
|
||||||
- `mpa_latest`
|
|
||||||
- **Kaiju** output of `kaiju-makedb`. A directory containing:
|
|
||||||
- `kaiju_db_*.fmi`
|
|
||||||
- `nodes.dmp`
|
|
||||||
- `names.dmp`
|
|
||||||
- **DIAMOND** output of `diamond makedb`. Note: requires building with taxonomy files
|
|
||||||
to generate taxonomic profile. See [DIAMOND documentation](https://github.com/bbuchfink/diamond/wiki/3.-Command-line-options#makedb-options). A file named:
|
|
||||||
- `<database_name>.dmnd`
|
|
||||||
- **mOTUs** is composed of code and database together. The mOTUs tools
|
|
||||||
[`downloadDB`](https://github.com/motu-tool/mOTUs/blob/master/motus/downloadDB.py)
|
|
||||||
is used to prepare the mOTUs database and create a file with the version information.
|
|
||||||
The database download step can be time consuming and the database will be consisting
|
|
||||||
with same release version of the mOTUs tools. The database for same version tools
|
|
||||||
can be thus reused for multiple runs. Users can download the database once using the script above and
|
|
||||||
specify the path the database to the TSV table provided to `--databases`.
|
|
||||||
|
|
||||||
## Running the pipeline
|
## Running the pipeline
|
||||||
|
|
||||||
|
@ -169,6 +120,8 @@ nextflow run nf-core/taxprofiler --input samplesheet.csv --databases databases.c
|
||||||
|
|
||||||
This will launch the pipeline with the `docker` configuration profile. See below for more information about profiles.
|
This will launch the pipeline with the `docker` configuration profile. See below for more information about profiles.
|
||||||
|
|
||||||
|
When running nf-core/taxprofiler, every step and tool is 'opt in'. To run a given profiler you must make sure to supply both a database in your `<database>.csv` and supply `--run_<profiler>` flag to your command. Omitting either will result in the profiling tool not executing. If you wish to perform pre-processing (adapter clipping, merge running etc.) or post-processing (visualisation) steps, these are also opt in with a `--perform_<step>` flag. In some cases, the pre- and post-processing steps may also require additional files. Please check the parameters tab of this documentation for more information.
|
||||||
|
|
||||||
Note that the pipeline will create the following files in your working directory:
|
Note that the pipeline will create the following files in your working directory:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
@ -180,7 +133,7 @@ work # Directory containing the nextflow working files
|
||||||
|
|
||||||
### Sequencing quality control
|
### Sequencing quality control
|
||||||
|
|
||||||
nf-core taxprofiler offers [`falco`][https://github.com/smithlabcode/falco] as an alternative option to [`FastQC`](https://www.bioinformatics.babraham.ac.uk/projects/fastqc/).
|
[`FastQC`](https://www.bioinformatics.babraham.ac.uk/projects/fastqc/) gives general quality metrics about your reads. It provides information about the quality score distribution across your reads, per base sequence content (%A/T/G/C), adapter contamination and overrepresented sequences. nf-core taxprofiler offers [`falco`](https://github.com/smithlabcode/falco) as an drop-in replacement, with supposedly better improvement particularly for long reads.
|
||||||
|
|
||||||
### Preprocessing Steps
|
### Preprocessing Steps
|
||||||
|
|
||||||
|
@ -195,16 +148,16 @@ nf-core/taxprofiler offers four main preprocessing steps
|
||||||
|
|
||||||
Raw sequencing read processing in the form of adapter clipping and paired-end read merging can be activated via the `--perform_shortread_qc` or `--perform_longread_qc` flags.
|
Raw sequencing read processing in the form of adapter clipping and paired-end read merging can be activated via the `--perform_shortread_qc` or `--perform_longread_qc` flags.
|
||||||
|
|
||||||
It is highly recommended to run this on raw reads to remove artifacts from sequencing that can cause false positive identification of taxa (e.g. contaminated reference genomes) and/or skews in taxonomic abundance profiles.
|
It is highly recommended to run this on raw reads to remove artifacts from sequencing that can cause false positive identification of taxa (e.g. contaminated reference genomes) and/or skews in taxonomic abundance profiles. If you have public data, normally these should have been corrected for however you should still check this is the case.
|
||||||
|
|
||||||
There are currently two options for short-read preprocessing: `fastp` or `adapterremoval`.
|
There are currently two options for short-read preprocessing: [`fastp`](https://github.com/OpenGene/fastp) or [`adapterremoval`](https://github.com/MikkelSchubert/adapterremoval).
|
||||||
|
|
||||||
For adapter clipping, you can either rely on tool default adapter sequences, or supply your own adapters (`--shortread_qc_adapter1` and `--shortread_qc_adapter2`)
|
For adapter clipping, you can either rely on the tool's default adapter sequences, or supply your own adapters (`--shortread_qc_adapter1` and `--shortread_qc_adapter2`)
|
||||||
By default, paired-end merging is not activated and paired-end profiling is performed where supported otherwise pairs will be independently profiled. If paired-end merging is activated you can also specify whether to include unmerged reads in the reads sent for profiling (`--shortread_qc_mergepairs` and `--shortread_qc_includeunmerged`).
|
By default, paired-end merging is not activated. In this case paired-end 'alignment' against the reference databases is performed where supported, and if not, supported pairs will be independently profiled. If paired-end merging is activated you can also specify whether to include unmerged reads in the reads sent for profiling (`--shortread_qc_mergepairs` and `--shortread_qc_includeunmerged`).
|
||||||
You can also turn off clipping and only perform paired-end merging, if requested. This can be useful when processing data downloaded from the ENA, SRA, or DDBJ (`--shortread_qc_skipadaptertrim`).
|
You can also turn off clipping and only perform paired-end merging, if requested. This can be useful when processing data downloaded from the ENA, SRA, or DDBJ (`--shortread_qc_skipadaptertrim`).
|
||||||
Both tools support length filtering of reads and can be tuned with `--shortread_qc_minlength`. Performing length filtering can be useful to remove short (often low sequencing complexity) sequences that result in unspecific classification and therefore slow down runtime during profiling, with minimal gain.
|
Both tools support length filtering of reads and can be tuned with `--shortread_qc_minlength`. Performing length filtering can be useful to remove short (often low sequencing complexity) sequences that result in unspecific classification and therefore slow down runtime during profiling, with minimal gain.
|
||||||
|
|
||||||
There is currently one option for long-read Oxford Nanopore processing: `porechop`.
|
There is currently one option for long-read Oxford Nanopore processing: [`porechop`](https://github.com/rrwick/Porechop).
|
||||||
|
|
||||||
For both short-read and long-read preprocessing, you can optionally save the resulting processed reads with `--save_preprocessed_reads`.
|
For both short-read and long-read preprocessing, you can optionally save the resulting processed reads with `--save_preprocessed_reads`.
|
||||||
|
|
||||||
|
@ -216,10 +169,14 @@ Complexity filtering is primarily a run-time optimisation step. It is not necess
|
||||||
|
|
||||||
There are currently three options for short-read complexity filtering: [`bbduk`](https://jgi.doe.gov/data-and-tools/software-tools/bbtools/bb-tools-user-guide/bbduk-guide/), [`prinseq++`](https://github.com/Adrian-Cantu/PRINSEQ-plus-plus), and [`fastp`](https://github.com/OpenGene/fastp#low-complexity-filter).
|
There are currently three options for short-read complexity filtering: [`bbduk`](https://jgi.doe.gov/data-and-tools/software-tools/bbtools/bb-tools-user-guide/bbduk-guide/), [`prinseq++`](https://github.com/Adrian-Cantu/PRINSEQ-plus-plus), and [`fastp`](https://github.com/OpenGene/fastp#low-complexity-filter).
|
||||||
|
|
||||||
The tools offer different algorithms and parameters for removing low complexity reads. We therefore recommend reviewing the pipeline's [parameter documentation](https://nf-co.re/taxprofiler/parameters) and the documentation of the tools (see links above) to decide on optimal methods and parameters for your dataset.
|
There is one option for long-read quality filtering: [`Filtlong`](https://github.com/rrwick/Filtlong)
|
||||||
|
|
||||||
|
The tools offer different algorithms and parameters for removing low complexity reads and quality filtering. We therefore recommend reviewing the pipeline's [parameter documentation](https://nf-co.re/taxprofiler/parameters) and the documentation of the tools (see links above) to decide on optimal methods and parameters for your dataset.
|
||||||
|
|
||||||
You can optionally save the FASTQ output of the run merging with the `--save_complexityfiltered_reads`. If running with `fastp`, complexity filtering happens inclusively within the earlier shortread preprocessing step. Therefore there will not be an independent pipeline step for complexity filtering, and no independent FASTQ file (i.e. `--save_complexityfiltered_reads` will be ignored) - your complexity filtered reads will also be in the `fastp/` folder in the same file(s) as the preprocessed read.
|
You can optionally save the FASTQ output of the run merging with the `--save_complexityfiltered_reads`. If running with `fastp`, complexity filtering happens inclusively within the earlier shortread preprocessing step. Therefore there will not be an independent pipeline step for complexity filtering, and no independent FASTQ file (i.e. `--save_complexityfiltered_reads` will be ignored) - your complexity filtered reads will also be in the `fastp/` folder in the same file(s) as the preprocessed read.
|
||||||
|
|
||||||
|
> ⚠️ For nanopore data: we do not recommend performing any read preprocessing or complexity filtering if you are using ONTs Guppy toolkit for basecalling and post-processing.
|
||||||
|
|
||||||
#### Host Removal
|
#### Host Removal
|
||||||
|
|
||||||
Removal of possible-host reads from FASTQ files prior profiling can be activated with `--perform_shortread_hostremoval` or `--perform_longread_hostremoval`.
|
Removal of possible-host reads from FASTQ files prior profiling can be activated with `--perform_shortread_hostremoval` or `--perform_longread_hostremoval`.
|
||||||
|
@ -242,11 +199,13 @@ Activating this functionality will concatenate the FASTQ files with the same sam
|
||||||
|
|
||||||
You can optionally save the FASTQ output of the run merging with the `--save_runmerged_reads`.
|
You can optionally save the FASTQ output of the run merging with the `--save_runmerged_reads`.
|
||||||
|
|
||||||
##### Profiling
|
#### Profiling
|
||||||
|
|
||||||
|
The following suggestion gives you some tips and suggestions regarding running some of the different tools specifically _within the pipeline_. For advice as to which tool to run in your context, please see the documentation of each tool.
|
||||||
|
|
||||||
###### Bracken
|
###### Bracken
|
||||||
|
|
||||||
It is unclear whether Bracken is suitable for running long reads, as it makes certain assumptions about read lengths. Furthemore, during testing we found issues where Bracken would fail on the long-read test data. Therefore nf-core/taxprofiler does not run Bracken on data specified as being sequenced with `OXFORD_NANOPORE` in the input samplesheet. If you believe this to be wrong, please contact us on the nf-core slack and we can discuss this.
|
It is unclear whether Bracken is suitable for running long reads, as it makes certain assumptions about read lengths. Furthemore, during testing we found issues where Bracken would fail on the long-read test data. Therefore nf-core/taxprofiler does not run Bracken on data specified as being sequenced with `OXFORD_NANOPORE` in the input samplesheet. If you would like to change this behaviour, please contact us on the nf-core slack and we can discuss this.
|
||||||
|
|
||||||
###### Centrifuge
|
###### Centrifuge
|
||||||
|
|
||||||
|
@ -254,13 +213,13 @@ Centrifuge currently does not accept FASTA files as input, therefore no output w
|
||||||
|
|
||||||
###### DIAMOND
|
###### DIAMOND
|
||||||
|
|
||||||
DIAMOND only allows output of a single format at a time, therefore parameters such --diamond_save_reads supplied will result in only aligned reads in SAM format will be produced, no taxonomic profiles will be available. Be aware of this when setting up your pipeline runs, depending n your particular use case.
|
DIAMOND only allows output of a single format at a time, therefore parameters such --diamond_save_reads supplied will result in only aligned reads in SAM format will be produced, no taxonomic profiles will be available. Be aware of this when setting up your pipeline runs, depending on your particular use case.
|
||||||
|
|
||||||
###### MALT
|
###### MALT
|
||||||
|
|
||||||
MALT does not support paired-end reads alignment (unlike other tools), therefore nf-core/taxprofiler aligns these as indepenent files if read-merging is skipped. If you skip merging, you can sum or average the results of the counts of the pairs.
|
MALT does not support paired-end reads alignment (unlike other tools), therefore nf-core/taxprofiler aligns these as indepenent files if read-merging is skipped. If you skip merging, you can sum or average the results of the counts of the pairs.
|
||||||
|
|
||||||
Krona can only be run on MALT output if path to Krona taxonomy database supplied to `--krona_taxonomy_directory`. Therefore if you do not supply the a KRona directory, Krona plots will not be produced for MALT.
|
Krona can only be run on MALT output if path to Krona taxonomy database supplied to `--krona_taxonomy_directory`. Therefore if you do not supply the a Krona directory, Krona plots will not be produced for MALT.
|
||||||
|
|
||||||
###### MetaPhlAn3
|
###### MetaPhlAn3
|
||||||
|
|
||||||
|
@ -468,6 +427,296 @@ We recommend adding the following line to your environment to limit this (typica
|
||||||
NXF_OPTS='-Xms1g -Xmx4g'
|
NXF_OPTS='-Xms1g -Xmx4g'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Tutorials
|
||||||
|
|
||||||
|
### Retrieving databases or building custom databases
|
||||||
|
|
||||||
|
Here we will give brief guidance on how to build databases for each supported taxonomic profiler. You should always consult the documentation of each tool for more information, here we provide these as quick reference guides (with no guarantee they are up to date).
|
||||||
|
The following tutorials assumes you already have the tool available (e.g. installed locally, or via conda, docker etc.), and you have already downloaded the FASTA files you wish to build into a database.
|
||||||
|
|
||||||
|
#### Bracken custom database
|
||||||
|
|
||||||
|
Bracken does not provide any default databases for profiling, but rather building upon Kraken2 databases. See [Kraken2](#kraken2-custom-database) for more information on how to build these.
|
||||||
|
|
||||||
|
In addition to a Kraken2 database, you also need to have the (average) read lengths (in bp) of your sequencing experiment, the K-mer size used to build the Kraken2 database, and Kraken2 available on your machine.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
bracken-build -d <KRAKEN_DB_DIR> -k <KRAKEN_DB_KMER_LENGTH> -l <READLENGTH>
|
||||||
|
```
|
||||||
|
|
||||||
|
> 🛈 You can speed up database construction by supplying the threads parameter (`-t`).
|
||||||
|
|
||||||
|
> 🛈 If you do not have Kraken2 in your `$PATH` you can point to the binary with `-x /<path>/<to>/kraken2`.
|
||||||
|
|
||||||
|
<details markdown="1">
|
||||||
|
<summary>Expected files in database directory</summary>
|
||||||
|
|
||||||
|
- `bracken`
|
||||||
|
- `hash.k2d`
|
||||||
|
- `opts.k2d`
|
||||||
|
- `taxo.k2d`
|
||||||
|
- `database.kraken`
|
||||||
|
- `database100mers.kmer_distrib`
|
||||||
|
- `database100mers.kraken`
|
||||||
|
- `database150mers.kmer_distrib`
|
||||||
|
- `database150mers.kraken`
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
|
You can follow Bracken [tutorial](https://ccb.jhu.edu/software/bracken/index.shtml?t=manual) for more information. Alternatively, you can use one of the indexes that can be found [here](https://benlangmead.github.io/aws-indexes/k2).
|
||||||
|
|
||||||
|
#### Centrifuge custom database
|
||||||
|
|
||||||
|
Centrifuge allows the user to [build custom databases](https://ccb.jhu.edu/software/centrifuge/manual.shtml#custom-database). The user should download taxonomy files, make custom `seqid2taxid.map` and combine the fasta files together. You need four components: a tab-separated file mapping sequence IDs to taxonomy IDs (`--conversion-table`), a \t|\t-separated file mapping taxonomy IDs to their parents and rank, up to the root of the tree (`--taxonomy-tree`), a '|'-separated file mapping taxonomy IDs to a name (`--name-table`) and the reference sequences.
|
||||||
|
|
||||||
|
An example of custom `seqid2taxid.map`:
|
||||||
|
|
||||||
|
NC_001133.9 4392
|
||||||
|
NC_012920.1 9606
|
||||||
|
NC_001134.8 4392
|
||||||
|
NC_001135.5 4392
|
||||||
|
|
||||||
|
```bash
|
||||||
|
centrifuge-download -o taxonomy taxonomy
|
||||||
|
|
||||||
|
cat *.{fa,fna} > input-sequences.fna
|
||||||
|
centrifuge-build -p 4 --conversion-table seqid2taxid.map --taxonomy-tree taxonomy/nodes.dmp --name-table taxonomy/names.dmp input-sequences.fna taxprofiler_cf
|
||||||
|
```
|
||||||
|
|
||||||
|
<details markdown="1">
|
||||||
|
<summary>Expected files in database directory</summary>
|
||||||
|
|
||||||
|
- `centrifuge`
|
||||||
|
- `<database_name>.<number>.cf`
|
||||||
|
- `<database_name>.<number>.cf`
|
||||||
|
- `<database_name>.<number>.cf`
|
||||||
|
- `<database_name>.<number>.cf`
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
|
#### DIAMOND custom database
|
||||||
|
|
||||||
|
To create a custom database for DIAMOND, the user should download and unzip the NCBI's taxonomy files. The `makedb` needs to be executed afterwards. A detailed description can be found [here](https://github.com/bbuchfink/diamond/wiki/1.-Tutorial)
|
||||||
|
|
||||||
|
```bash
|
||||||
|
wget ftp://ftp.ncbi.nlm.nih.gov/pub/taxonomy/taxdmp.zip
|
||||||
|
unzip taxdmp.zip
|
||||||
|
|
||||||
|
## warning: large file!
|
||||||
|
wget ftp://ftp.ncbi.nlm.nih.gov/pub/taxonomy/accession2taxid/prot.accession2taxid.FULL.gz
|
||||||
|
|
||||||
|
## warning: takes a long time!
|
||||||
|
cat ../raw/*.faa | diamond makedb -d testdb-diamond --taxonmap prot.accession2taxid.FULL.gz --taxonnodes nodes.dmp --taxonnames names.dmp
|
||||||
|
|
||||||
|
rm *dmp *txt *gz *prt *zip
|
||||||
|
```
|
||||||
|
|
||||||
|
<details markdown="1">
|
||||||
|
<summary>Expected files in database directory</summary>
|
||||||
|
|
||||||
|
- `diamond`
|
||||||
|
- `<database_name>.dmnd`
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
|
#### Kaiju custom database
|
||||||
|
|
||||||
|
It is possible to [create custom databases](https://github.com/bioinformatics-centre/kaiju#custom-database) with Kaiju. To build a kaiju database, you need three components: a FASTA file with the protein sequences (the headers are the numeric NCBI taxon identifiers of the protein sequences), number of threads and you need to define the uppercase characters of the standard 20 amino acids.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
kaiju-mkbwt -n 5 -a ACDEFGHIKLMNPQRSTVWY -o proteins proteins.faa
|
||||||
|
kaiju-mkfmi proteins
|
||||||
|
```
|
||||||
|
|
||||||
|
<details markdown="1">
|
||||||
|
<summary>Expected files in database directory</summary>
|
||||||
|
|
||||||
|
- `kaiju`
|
||||||
|
- `kaiju_db_*.fmi`
|
||||||
|
- `nodes.dmp`
|
||||||
|
- `names.dmp`
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
|
#### Kraken2 custom database
|
||||||
|
|
||||||
|
To build a Kraken2 database you need two components: a taxonomy (consisting of `names.dmp`, `nodes.dmp`, and `*accession2taxid`) files, and the FASTA files you wish to include.
|
||||||
|
|
||||||
|
To install pulling the NCBI taxonomy, you can run the following:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
kraken2-build --download-taxonomy --db <YOUR_DB_NAME>
|
||||||
|
```
|
||||||
|
|
||||||
|
You can then add your FASTA files with the following build command.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
kraken2-build --add-to-library *.fna --db <YOUR_DB_NAME>
|
||||||
|
```
|
||||||
|
|
||||||
|
You can repeat this step multiple times to iteratively add more genomes prior building.
|
||||||
|
|
||||||
|
You can also automatical download and add 'standard' libraries provided by Kraken2 (e.g. bacteria on RefSeq)
|
||||||
|
|
||||||
|
```bash
|
||||||
|
kraken2-build --download-library bacteria --db <YOUR_DB_NAME>
|
||||||
|
```
|
||||||
|
|
||||||
|
Once all genomes are added to the library, you can build the database (and optionally clean it up):
|
||||||
|
|
||||||
|
```bash
|
||||||
|
kraken2-build --build --db <YOUR_DB_NAME>
|
||||||
|
kraken2-build --clean--db <YOUR_DB_NAME>
|
||||||
|
```
|
||||||
|
|
||||||
|
You can then add the <YOUR_DB_NAME>/ path to your nf-core/taxprofiler database input sheet.
|
||||||
|
|
||||||
|
<details markdown="1">
|
||||||
|
<summary>Expected files in database directory</summary>
|
||||||
|
|
||||||
|
- `kraken2`
|
||||||
|
- `opts.k2d`
|
||||||
|
- `hash.k2d`
|
||||||
|
- `taxo.k2d`
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
|
You can follow the Kraken2 [tutorial](https://github.com/DerrickWood/kraken2/blob/master/docs/MANUAL.markdown#custom-databases) for a more detailed description.
|
||||||
|
|
||||||
|
#### KrakenUniq custom database
|
||||||
|
|
||||||
|
KrakenUniq allows to re-use Kraken(2) databases ([see above](#kraken2)) however with some restrictions. KrakenUniq also provides you with the ability to auto-download and build 'standard' NCBI reference datasets.
|
||||||
|
|
||||||
|
For any KrakenUniq databases, you require: taxonomy files, the FASTA files you wish to include, a `seqid2mapid` file, and a k-mer length.
|
||||||
|
|
||||||
|
To auto-download and build a 'standard' database of Bacteria and Archaea genomes from RefSeq, you can run something like:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
krakenuniq-download --db <DB_DIR_NAME> taxonomy
|
||||||
|
krakenuniq-download --db <DB_DIR_NAME> --threads 10 --dust refseq/bacteria refseq/archaea
|
||||||
|
krakenuniq-build --db <DB_DIR_NAME> --kmer-len 31 --threads 10 --taxids-for-genomes --taxids-for-sequences
|
||||||
|
```
|
||||||
|
|
||||||
|
This will download all the required files for you and build the database.
|
||||||
|
|
||||||
|
Alternatively, if you want to build your own you first must make a `seqid2taxid.map` file which is a two column text file containing the FASTA sequence header and the NCBI taxonomy ID for each sequence:
|
||||||
|
|
||||||
|
```
|
||||||
|
MT192765.1 2697049
|
||||||
|
```
|
||||||
|
|
||||||
|
Then make a directory (`<DB_DIR_NAME>/`), containing the `seqid2taxid.map` file and your FASTA files in a subdirectory called `library/`. You must then run the `taxonomy` command on the `<DB_DIR_NAME>/` directory, and then build it.
|
||||||
|
|
||||||
|
```
|
||||||
|
mkdir -p <DB_DIR_NAME>/library
|
||||||
|
mv `seqid2taxid.map` <DB_DIR_NAME>/
|
||||||
|
mv *.fna <DB_DIR_NAME>/library
|
||||||
|
krakenuniq-download --db <DB_DIR_NAME> taxonomy
|
||||||
|
krakenuniq-build --db <DB_DIR_NAME> --kmer-len 31
|
||||||
|
```
|
||||||
|
|
||||||
|
> 🛈 You can speed up database construction by supplying the threads parameter (`--threads`).
|
||||||
|
|
||||||
|
<details markdown="1">
|
||||||
|
<summary>Expected files in database directory</summary>
|
||||||
|
|
||||||
|
- `krakenuniq`
|
||||||
|
- `opts.k2d`
|
||||||
|
- `hash.k2d`
|
||||||
|
- `taxo.k2d`
|
||||||
|
- `database.idx`
|
||||||
|
- `taxDB`
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
|
Please see the [KrakenUniq documentation](https://github.com/fbreitwieser/krakenuniq#database-building) for more information.
|
||||||
|
|
||||||
|
````
|
||||||
|
|
||||||
|
#### MALT custom database
|
||||||
|
|
||||||
|
MALT does not provide any default databases for profiling, therefore you must build your own.
|
||||||
|
You need FASTA files to include, and an (unzipped) [MEGAN mapping 'db' file](https://software-ab.informatik.uni-tuebingen.de/download/megan6/) for your FASTA type.
|
||||||
|
In addition to the input directory, output directory, and the mapping file database, you also need to specify the sequence type (DNA or Protein) with the `-s` flag.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
malt-build -i <path>/<to>/<fasta>/*.{fna,fa,fasta} -a2t <path>/<to>/<map>.db -d <YOUR_DB_NAME>/ -s DNA
|
||||||
|
````
|
||||||
|
|
||||||
|
You can then add the <YOUR_DB_NAME>/ path to your nf-core/taxprofiler database input sheet.
|
||||||
|
|
||||||
|
⚠️ MALT generates very large database files and requires large amounts of RAM. You can reduce both by increasing the step size `-st` (with a reduction in sensitivity).
|
||||||
|
|
||||||
|
> 🛈 MALT-build can be multi-threaded with `-t` to speed up building.
|
||||||
|
|
||||||
|
<details markdown="1">
|
||||||
|
<summary>Expected files in database directory</summary>
|
||||||
|
|
||||||
|
- `malt`
|
||||||
|
- `ref.idx`
|
||||||
|
- `taxonomy.idx`
|
||||||
|
- `taxonomy.map`
|
||||||
|
- `index0.idx`
|
||||||
|
- `table0.idx`
|
||||||
|
- `table0.db`
|
||||||
|
- `ref.inf`
|
||||||
|
- `ref.db`
|
||||||
|
- `taxonomy.tre`
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
|
See the [MALT manual](https://software-ab.informatik.uni-tuebingen.de/download/malt/manual.pdf) for more information.
|
||||||
|
|
||||||
|
#### MetaPhlAn3 custom database
|
||||||
|
|
||||||
|
MetaPhlAn3 provides a prebuilt database of marker genes.
|
||||||
|
This must be downloaded by the user. To do this you need to have `MetaPhlAn3` installed on your machine.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
metaphlan --install --bowtie2db <YOUR_DB_NAME>/
|
||||||
|
```
|
||||||
|
|
||||||
|
You can then add the `<YOUR_DB_NAME>/` path to your nf-core/taxprofiler database input sheet.
|
||||||
|
|
||||||
|
> 🛈 It is generally not recommended to modify this database yourself, thus this is currently not supported in the pipeline. However, it is possible to customise the existing database by adding your own marker genomes following the instructions [here](https://github.com/biobakery/MetaPhlAn/wiki/MetaPhlAn-3.1#customizing-the-database). If using your own database is relevant for you, please contact the nf-core/taxprofiler developers on the [nf-core slack](https://nf-co.re/join) and we will investigate supporting this.
|
||||||
|
|
||||||
|
<details markdown="1">
|
||||||
|
<summary>Expected files in database directory</summary>
|
||||||
|
|
||||||
|
- `metaphlan3`
|
||||||
|
- `mpa_v30_CHOCOPhlAn_201901.pkl`
|
||||||
|
- `mpa_v30_CHOCOPhlAn_201901.pkl`
|
||||||
|
- `mpa_v30_CHOCOPhlAn_201901.fasta`
|
||||||
|
- `mpa_v30_CHOCOPhlAn_201901.3.bt2`
|
||||||
|
- `mpa_v30_CHOCOPhlAn_201901.4.bt2`
|
||||||
|
- `mpa_v30_CHOCOPhlAn_201901.1.bt2`
|
||||||
|
- `mpa_v30_CHOCOPhlAn_201901.2.bt2`
|
||||||
|
- `mpa_v30_CHOCOPhlAn_201901.rev.1.bt2`
|
||||||
|
- `mpa_v30_CHOCOPhlAn_201901.rev.2.bt2`
|
||||||
|
- `mpa_latest`
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
|
More information on the MetaPhlAn3 database can be found [here](https://github.com/biobakery/MetaPhlAn/wiki/MetaPhlAn-3.1#installation).
|
||||||
|
|
||||||
|
#### mOTUs custom database
|
||||||
|
|
||||||
|
mOTUs provides a prebuilt database of marker genes.
|
||||||
|
|
||||||
|
This must be downloaded by the user. To do this you need to have `mOTUs` installed on your machine.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
motus downloadDB
|
||||||
|
```
|
||||||
|
|
||||||
|
Then supply the `db_mOTU/` path to your nf-core/taxprofiler database input sheet.
|
||||||
|
|
||||||
|
> ⚠️ The `db_mOTU/` directory may be downloaded to somewhere in your Python's `site-package` directory. You will have to find this yourself as the exact location varies depends on installation method.
|
||||||
|
|
||||||
|
It is not possible to create a custom mOTUs database.
|
||||||
|
|
||||||
|
More information on the mOTUs database can be found [here](https://motu-tool.org/installation.html).
|
||||||
|
|
||||||
## Troubleshooting and FAQs
|
## Troubleshooting and FAQs
|
||||||
|
|
||||||
### I get a warning during centrifuge_kreport process with exit status 255
|
### I get a warning during centrifuge_kreport process with exit status 255
|
||||||
|
|
|
@ -72,7 +72,7 @@ class WorkflowMain {
|
||||||
NfcoreTemplate.checkConfigProvided(workflow, log)
|
NfcoreTemplate.checkConfigProvided(workflow, log)
|
||||||
|
|
||||||
// Check that conda channels are set-up correctly
|
// Check that conda channels are set-up correctly
|
||||||
if (params.enable_conda) {
|
if (workflow.profile.tokenize(',').intersect(['conda', 'mamba']).size() >= 1) {
|
||||||
Utils.checkCondaChannels(log)
|
Utils.checkCondaChannels(log)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
82
modules.json
82
modules.json
|
@ -7,208 +7,208 @@
|
||||||
"nf-core": {
|
"nf-core": {
|
||||||
"adapterremoval": {
|
"adapterremoval": {
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"git_sha": "ce7cf27e377fdacf7ebe8e75903ec70405ea1659",
|
"git_sha": "c8e35eb2055c099720a75538d1b8adb3fb5a464c",
|
||||||
"installed_by": ["modules"]
|
"installed_by": ["modules"]
|
||||||
},
|
},
|
||||||
"bbmap/bbduk": {
|
"bbmap/bbduk": {
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"git_sha": "5e34754d42cd2d5d248ca8673c0a53cdf5624905",
|
"git_sha": "c8e35eb2055c099720a75538d1b8adb3fb5a464c",
|
||||||
"installed_by": ["modules"]
|
"installed_by": ["modules"]
|
||||||
},
|
},
|
||||||
"bowtie2/align": {
|
"bowtie2/align": {
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"git_sha": "5e34754d42cd2d5d248ca8673c0a53cdf5624905",
|
"git_sha": "c8e35eb2055c099720a75538d1b8adb3fb5a464c",
|
||||||
"installed_by": ["modules"]
|
"installed_by": ["modules"]
|
||||||
},
|
},
|
||||||
"bowtie2/build": {
|
"bowtie2/build": {
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"git_sha": "5e34754d42cd2d5d248ca8673c0a53cdf5624905",
|
"git_sha": "c8e35eb2055c099720a75538d1b8adb3fb5a464c",
|
||||||
"installed_by": ["modules"]
|
"installed_by": ["modules"]
|
||||||
},
|
},
|
||||||
"bracken/bracken": {
|
"bracken/bracken": {
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"git_sha": "8cab56516076b23c6f8eb1ac20ba4ce9692c85e1",
|
"git_sha": "c8e35eb2055c099720a75538d1b8adb3fb5a464c",
|
||||||
"installed_by": ["modules"]
|
"installed_by": ["modules"]
|
||||||
},
|
},
|
||||||
"bracken/combinebrackenoutputs": {
|
"bracken/combinebrackenoutputs": {
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"git_sha": "9c87d5fdad182590a370ea43a4ecebd200a6f6fb",
|
"git_sha": "c8e35eb2055c099720a75538d1b8adb3fb5a464c",
|
||||||
"installed_by": ["modules"]
|
"installed_by": ["modules"]
|
||||||
},
|
},
|
||||||
"cat/fastq": {
|
"cat/fastq": {
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"git_sha": "5e34754d42cd2d5d248ca8673c0a53cdf5624905",
|
"git_sha": "c8e35eb2055c099720a75538d1b8adb3fb5a464c",
|
||||||
"installed_by": ["modules"]
|
"installed_by": ["modules"]
|
||||||
},
|
},
|
||||||
"centrifuge/centrifuge": {
|
"centrifuge/centrifuge": {
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"git_sha": "5e34754d42cd2d5d248ca8673c0a53cdf5624905",
|
"git_sha": "c8e35eb2055c099720a75538d1b8adb3fb5a464c",
|
||||||
"installed_by": ["modules"]
|
"installed_by": ["modules"]
|
||||||
},
|
},
|
||||||
"centrifuge/kreport": {
|
"centrifuge/kreport": {
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"git_sha": "5e34754d42cd2d5d248ca8673c0a53cdf5624905",
|
"git_sha": "c8e35eb2055c099720a75538d1b8adb3fb5a464c",
|
||||||
"installed_by": ["modules"]
|
"installed_by": ["modules"]
|
||||||
},
|
},
|
||||||
"custom/dumpsoftwareversions": {
|
"custom/dumpsoftwareversions": {
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"git_sha": "5e34754d42cd2d5d248ca8673c0a53cdf5624905",
|
"git_sha": "c8e35eb2055c099720a75538d1b8adb3fb5a464c",
|
||||||
"installed_by": ["modules"]
|
"installed_by": ["modules"]
|
||||||
},
|
},
|
||||||
"diamond/blastx": {
|
"diamond/blastx": {
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"git_sha": "5e34754d42cd2d5d248ca8673c0a53cdf5624905",
|
"git_sha": "c8e35eb2055c099720a75538d1b8adb3fb5a464c",
|
||||||
"installed_by": ["modules"]
|
"installed_by": ["modules"]
|
||||||
},
|
},
|
||||||
"falco": {
|
"falco": {
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"git_sha": "fc959214036403ad83efe7a41d43d0606c445cda",
|
"git_sha": "c8e35eb2055c099720a75538d1b8adb3fb5a464c",
|
||||||
"installed_by": ["modules"],
|
"installed_by": ["modules"],
|
||||||
"patch": "modules/nf-core/falco/falco.diff"
|
"patch": "modules/nf-core/falco/falco.diff"
|
||||||
},
|
},
|
||||||
"fastp": {
|
"fastp": {
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"git_sha": "1e49f31e93c56a3832833eef90a02d3cde5a3f7e",
|
"git_sha": "c8e35eb2055c099720a75538d1b8adb3fb5a464c",
|
||||||
"installed_by": ["modules"]
|
"installed_by": ["modules"]
|
||||||
},
|
},
|
||||||
"fastqc": {
|
"fastqc": {
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"git_sha": "5e34754d42cd2d5d248ca8673c0a53cdf5624905",
|
"git_sha": "c8e35eb2055c099720a75538d1b8adb3fb5a464c",
|
||||||
"installed_by": ["modules"]
|
"installed_by": ["modules"]
|
||||||
},
|
},
|
||||||
"filtlong": {
|
"filtlong": {
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"git_sha": "5e34754d42cd2d5d248ca8673c0a53cdf5624905",
|
"git_sha": "c8e35eb2055c099720a75538d1b8adb3fb5a464c",
|
||||||
"installed_by": ["modules"]
|
"installed_by": ["modules"]
|
||||||
},
|
},
|
||||||
"gunzip": {
|
"gunzip": {
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"git_sha": "5e34754d42cd2d5d248ca8673c0a53cdf5624905",
|
"git_sha": "c8e35eb2055c099720a75538d1b8adb3fb5a464c",
|
||||||
"installed_by": ["modules"]
|
"installed_by": ["modules"]
|
||||||
},
|
},
|
||||||
"kaiju/kaiju": {
|
"kaiju/kaiju": {
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"git_sha": "5e34754d42cd2d5d248ca8673c0a53cdf5624905",
|
"git_sha": "c8e35eb2055c099720a75538d1b8adb3fb5a464c",
|
||||||
"installed_by": ["modules"]
|
"installed_by": ["modules"]
|
||||||
},
|
},
|
||||||
"kaiju/kaiju2krona": {
|
"kaiju/kaiju2krona": {
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"git_sha": "5e34754d42cd2d5d248ca8673c0a53cdf5624905",
|
"git_sha": "c8e35eb2055c099720a75538d1b8adb3fb5a464c",
|
||||||
"installed_by": ["modules"]
|
"installed_by": ["modules"]
|
||||||
},
|
},
|
||||||
"kaiju/kaiju2table": {
|
"kaiju/kaiju2table": {
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"git_sha": "5e34754d42cd2d5d248ca8673c0a53cdf5624905",
|
"git_sha": "c8e35eb2055c099720a75538d1b8adb3fb5a464c",
|
||||||
"installed_by": ["modules"]
|
"installed_by": ["modules"]
|
||||||
},
|
},
|
||||||
"kraken2/kraken2": {
|
"kraken2/kraken2": {
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"git_sha": "5e34754d42cd2d5d248ca8673c0a53cdf5624905",
|
"git_sha": "c8e35eb2055c099720a75538d1b8adb3fb5a464c",
|
||||||
"installed_by": ["modules"]
|
"installed_by": ["modules"]
|
||||||
},
|
},
|
||||||
"krakentools/combinekreports": {
|
"krakentools/combinekreports": {
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"git_sha": "5e34754d42cd2d5d248ca8673c0a53cdf5624905",
|
"git_sha": "c8e35eb2055c099720a75538d1b8adb3fb5a464c",
|
||||||
"installed_by": ["modules"]
|
"installed_by": ["modules"]
|
||||||
},
|
},
|
||||||
"krakentools/kreport2krona": {
|
"krakentools/kreport2krona": {
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"git_sha": "5e34754d42cd2d5d248ca8673c0a53cdf5624905",
|
"git_sha": "c8e35eb2055c099720a75538d1b8adb3fb5a464c",
|
||||||
"installed_by": ["modules"]
|
"installed_by": ["modules"]
|
||||||
},
|
},
|
||||||
"krakenuniq/preloadedkrakenuniq": {
|
"krakenuniq/preloadedkrakenuniq": {
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"git_sha": "05649975c6611c6e007537a7984e186e12ae03af",
|
"git_sha": "a6eb17f65b3ee5761c25c075a6166c9f76733cee",
|
||||||
"installed_by": ["modules"]
|
"installed_by": ["modules"]
|
||||||
},
|
},
|
||||||
"krona/ktimporttaxonomy": {
|
"krona/ktimporttaxonomy": {
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"git_sha": "5e34754d42cd2d5d248ca8673c0a53cdf5624905",
|
"git_sha": "c8e35eb2055c099720a75538d1b8adb3fb5a464c",
|
||||||
"installed_by": ["modules"]
|
"installed_by": ["modules"]
|
||||||
},
|
},
|
||||||
"krona/ktimporttext": {
|
"krona/ktimporttext": {
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"git_sha": "5e34754d42cd2d5d248ca8673c0a53cdf5624905",
|
"git_sha": "c8e35eb2055c099720a75538d1b8adb3fb5a464c",
|
||||||
"installed_by": ["modules"]
|
"installed_by": ["modules"]
|
||||||
},
|
},
|
||||||
"malt/run": {
|
"malt/run": {
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"git_sha": "6d9712f03ec2de8264a50ee4541a617e1e063b51",
|
"git_sha": "c8e35eb2055c099720a75538d1b8adb3fb5a464c",
|
||||||
"installed_by": ["modules"]
|
"installed_by": ["modules"]
|
||||||
},
|
},
|
||||||
"megan/rma2info": {
|
"megan/rma2info": {
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"git_sha": "5e34754d42cd2d5d248ca8673c0a53cdf5624905",
|
"git_sha": "c8e35eb2055c099720a75538d1b8adb3fb5a464c",
|
||||||
"installed_by": ["modules"]
|
"installed_by": ["modules"]
|
||||||
},
|
},
|
||||||
"metaphlan3/mergemetaphlantables": {
|
"metaphlan3/mergemetaphlantables": {
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"git_sha": "5e34754d42cd2d5d248ca8673c0a53cdf5624905",
|
"git_sha": "c8e35eb2055c099720a75538d1b8adb3fb5a464c",
|
||||||
"installed_by": ["modules"]
|
"installed_by": ["modules"]
|
||||||
},
|
},
|
||||||
"metaphlan3/metaphlan3": {
|
"metaphlan3/metaphlan3": {
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"git_sha": "5e34754d42cd2d5d248ca8673c0a53cdf5624905",
|
"git_sha": "c8e35eb2055c099720a75538d1b8adb3fb5a464c",
|
||||||
"installed_by": ["modules"]
|
"installed_by": ["modules"]
|
||||||
},
|
},
|
||||||
"minimap2/align": {
|
"minimap2/align": {
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"git_sha": "5e34754d42cd2d5d248ca8673c0a53cdf5624905",
|
"git_sha": "c8e35eb2055c099720a75538d1b8adb3fb5a464c",
|
||||||
"installed_by": ["modules"]
|
"installed_by": ["modules"]
|
||||||
},
|
},
|
||||||
"minimap2/index": {
|
"minimap2/index": {
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"git_sha": "5e34754d42cd2d5d248ca8673c0a53cdf5624905",
|
"git_sha": "c8e35eb2055c099720a75538d1b8adb3fb5a464c",
|
||||||
"installed_by": ["modules"]
|
"installed_by": ["modules"]
|
||||||
},
|
},
|
||||||
"motus/merge": {
|
"motus/merge": {
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"git_sha": "3fce766123e71e82fb384db7d07b59180baa9ee9",
|
"git_sha": "c8e35eb2055c099720a75538d1b8adb3fb5a464c",
|
||||||
"installed_by": ["modules"]
|
"installed_by": ["modules"]
|
||||||
},
|
},
|
||||||
"motus/profile": {
|
"motus/profile": {
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"git_sha": "3fce766123e71e82fb384db7d07b59180baa9ee9",
|
"git_sha": "c8e35eb2055c099720a75538d1b8adb3fb5a464c",
|
||||||
"installed_by": ["modules"]
|
"installed_by": ["modules"]
|
||||||
},
|
},
|
||||||
"multiqc": {
|
"multiqc": {
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"git_sha": "5e34754d42cd2d5d248ca8673c0a53cdf5624905",
|
"git_sha": "c8e35eb2055c099720a75538d1b8adb3fb5a464c",
|
||||||
"installed_by": ["modules"]
|
"installed_by": ["modules"]
|
||||||
},
|
},
|
||||||
"porechop/porechop": {
|
"porechop/porechop": {
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"git_sha": "2a4e85eb81875a572bb58133e37f84ba3cc484d7",
|
"git_sha": "c8e35eb2055c099720a75538d1b8adb3fb5a464c",
|
||||||
"installed_by": ["modules"]
|
"installed_by": ["modules"]
|
||||||
},
|
},
|
||||||
"prinseqplusplus": {
|
"prinseqplusplus": {
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"git_sha": "5e34754d42cd2d5d248ca8673c0a53cdf5624905",
|
"git_sha": "c8e35eb2055c099720a75538d1b8adb3fb5a464c",
|
||||||
"installed_by": ["modules"]
|
"installed_by": ["modules"]
|
||||||
},
|
},
|
||||||
"samtools/bam2fq": {
|
"samtools/bam2fq": {
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"git_sha": "5e34754d42cd2d5d248ca8673c0a53cdf5624905",
|
"git_sha": "c8e35eb2055c099720a75538d1b8adb3fb5a464c",
|
||||||
"installed_by": ["modules"]
|
"installed_by": ["modules"]
|
||||||
},
|
},
|
||||||
"samtools/index": {
|
"samtools/index": {
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"git_sha": "5e34754d42cd2d5d248ca8673c0a53cdf5624905",
|
"git_sha": "c8e35eb2055c099720a75538d1b8adb3fb5a464c",
|
||||||
"installed_by": ["modules"]
|
"installed_by": ["modules"]
|
||||||
},
|
},
|
||||||
"samtools/stats": {
|
"samtools/stats": {
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"git_sha": "5e34754d42cd2d5d248ca8673c0a53cdf5624905",
|
"git_sha": "c8e35eb2055c099720a75538d1b8adb3fb5a464c",
|
||||||
"installed_by": ["modules"]
|
"installed_by": ["modules"]
|
||||||
},
|
},
|
||||||
"samtools/view": {
|
"samtools/view": {
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"git_sha": "5e34754d42cd2d5d248ca8673c0a53cdf5624905",
|
"git_sha": "c8e35eb2055c099720a75538d1b8adb3fb5a464c",
|
||||||
"installed_by": ["modules"]
|
"installed_by": ["modules"]
|
||||||
},
|
},
|
||||||
"untar": {
|
"untar": {
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"git_sha": "5e34754d42cd2d5d248ca8673c0a53cdf5624905",
|
"git_sha": "c8e35eb2055c099720a75538d1b8adb3fb5a464c",
|
||||||
"installed_by": ["modules"]
|
"installed_by": ["modules"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
process SAMPLESHEET_CHECK {
|
process SAMPLESHEET_CHECK {
|
||||||
tag "$samplesheet"
|
tag "$samplesheet"
|
||||||
|
|
||||||
conda (params.enable_conda ? "conda-forge::python=3.8.3" : null)
|
conda "conda-forge::python=3.8.3"
|
||||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||||
'https://depot.galaxyproject.org/singularity/python:3.8.3' :
|
'https://depot.galaxyproject.org/singularity/python:3.8.3' :
|
||||||
'quay.io/biocontainers/python:3.8.3' }"
|
'quay.io/biocontainers/python:3.8.3' }"
|
||||||
|
|
2
modules/nf-core/adapterremoval/main.nf
generated
2
modules/nf-core/adapterremoval/main.nf
generated
|
@ -2,7 +2,7 @@ process ADAPTERREMOVAL {
|
||||||
tag "$meta.id"
|
tag "$meta.id"
|
||||||
label 'process_medium'
|
label 'process_medium'
|
||||||
|
|
||||||
conda (params.enable_conda ? "bioconda::adapterremoval=2.3.2" : null)
|
conda "bioconda::adapterremoval=2.3.2"
|
||||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||||
'https://depot.galaxyproject.org/singularity/adapterremoval:2.3.2--hb7ba0dd_0' :
|
'https://depot.galaxyproject.org/singularity/adapterremoval:2.3.2--hb7ba0dd_0' :
|
||||||
'quay.io/biocontainers/adapterremoval:2.3.2--hb7ba0dd_0' }"
|
'quay.io/biocontainers/adapterremoval:2.3.2--hb7ba0dd_0' }"
|
||||||
|
|
8
modules/nf-core/bbmap/bbduk/main.nf
generated
8
modules/nf-core/bbmap/bbduk/main.nf
generated
|
@ -2,10 +2,10 @@ process BBMAP_BBDUK {
|
||||||
tag "$meta.id"
|
tag "$meta.id"
|
||||||
label 'process_medium'
|
label 'process_medium'
|
||||||
|
|
||||||
conda (params.enable_conda ? "bioconda::bbmap=38.90" : null)
|
conda "bioconda::bbmap=39.01"
|
||||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||||
'https://depot.galaxyproject.org/singularity/bbmap:38.90--he522d1c_1' :
|
'https://depot.galaxyproject.org/singularity/bbmap:39.01--h5c4e2a8_0':
|
||||||
'quay.io/biocontainers/bbmap:38.90--he522d1c_1' }"
|
'quay.io/biocontainers/bbmap:39.01--h5c4e2a8_0' }"
|
||||||
|
|
||||||
input:
|
input:
|
||||||
tuple val(meta), path(reads)
|
tuple val(meta), path(reads)
|
||||||
|
@ -37,7 +37,7 @@ process BBMAP_BBDUK {
|
||||||
&> ${prefix}.bbduk.log
|
&> ${prefix}.bbduk.log
|
||||||
cat <<-END_VERSIONS > versions.yml
|
cat <<-END_VERSIONS > versions.yml
|
||||||
"${task.process}":
|
"${task.process}":
|
||||||
bbmap: \$(bbversion.sh)
|
bbmap: \$(bbversion.sh | grep -v "Duplicate cpuset")
|
||||||
END_VERSIONS
|
END_VERSIONS
|
||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
|
|
16
modules/nf-core/bowtie2/align/main.nf
generated
16
modules/nf-core/bowtie2/align/main.nf
generated
|
@ -2,14 +2,14 @@ process BOWTIE2_ALIGN {
|
||||||
tag "$meta.id"
|
tag "$meta.id"
|
||||||
label "process_high"
|
label "process_high"
|
||||||
|
|
||||||
conda (params.enable_conda ? "bioconda::bowtie2=2.4.4 bioconda::samtools=1.15.1 conda-forge::pigz=2.6" : null)
|
conda "bioconda::bowtie2=2.4.4 bioconda::samtools=1.16.1 conda-forge::pigz=2.6"
|
||||||
container "${ workflow.containerEngine == "singularity" && !task.ext.singularity_pull_docker_container ?
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||||
"https://depot.galaxyproject.org/singularity/mulled-v2-ac74a7f02cebcfcc07d8e8d1d750af9c83b4d45a:1744f68fe955578c63054b55309e05b41c37a80d-0" :
|
'https://depot.galaxyproject.org/singularity/mulled-v2-ac74a7f02cebcfcc07d8e8d1d750af9c83b4d45a:a0ffedb52808e102887f6ce600d092675bf3528a-0' :
|
||||||
"quay.io/biocontainers/mulled-v2-ac74a7f02cebcfcc07d8e8d1d750af9c83b4d45a:1744f68fe955578c63054b55309e05b41c37a80d-0" }"
|
'quay.io/biocontainers/mulled-v2-ac74a7f02cebcfcc07d8e8d1d750af9c83b4d45a:a0ffedb52808e102887f6ce600d092675bf3528a-0' }"
|
||||||
|
|
||||||
input:
|
input:
|
||||||
tuple val(meta), path(reads)
|
tuple val(meta) , path(reads)
|
||||||
path index
|
tuple val(meta2), path(index)
|
||||||
val save_unaligned
|
val save_unaligned
|
||||||
val sort_bam
|
val sort_bam
|
||||||
|
|
||||||
|
@ -40,8 +40,8 @@ process BOWTIE2_ALIGN {
|
||||||
def samtools_command = sort_bam ? 'sort' : 'view'
|
def samtools_command = sort_bam ? 'sort' : 'view'
|
||||||
|
|
||||||
"""
|
"""
|
||||||
INDEX=`find -L ./ -name "*.rev.1.bt2" | sed "s/.rev.1.bt2//"`
|
INDEX=`find -L ./ -name "*.rev.1.bt2" | sed "s/\\.rev.1.bt2\$//"`
|
||||||
[ -z "\$INDEX" ] && INDEX=`find -L ./ -name "*.rev.1.bt2l" | sed "s/.rev.1.bt2l//"`
|
[ -z "\$INDEX" ] && INDEX=`find -L ./ -name "*.rev.1.bt2l" | sed "s/\\.rev.1.bt2l\$//"`
|
||||||
[ -z "\$INDEX" ] && echo "Bowtie2 index files not found" 1>&2 && exit 1
|
[ -z "\$INDEX" ] && echo "Bowtie2 index files not found" 1>&2 && exit 1
|
||||||
|
|
||||||
bowtie2 \\
|
bowtie2 \\
|
||||||
|
|
5
modules/nf-core/bowtie2/align/meta.yml
generated
5
modules/nf-core/bowtie2/align/meta.yml
generated
|
@ -27,6 +27,11 @@ input:
|
||||||
description: |
|
description: |
|
||||||
List of input FastQ files of size 1 and 2 for single-end and paired-end data,
|
List of input FastQ files of size 1 and 2 for single-end and paired-end data,
|
||||||
respectively.
|
respectively.
|
||||||
|
- meta2:
|
||||||
|
type: map
|
||||||
|
description: |
|
||||||
|
Groovy Map containing reference information
|
||||||
|
e.g. [ id:'test', single_end:false ]
|
||||||
- index:
|
- index:
|
||||||
type: file
|
type: file
|
||||||
description: Bowtie2 genome index files
|
description: Bowtie2 genome index files
|
||||||
|
|
8
modules/nf-core/bowtie2/build/main.nf
generated
8
modules/nf-core/bowtie2/build/main.nf
generated
|
@ -2,17 +2,17 @@ process BOWTIE2_BUILD {
|
||||||
tag "$fasta"
|
tag "$fasta"
|
||||||
label 'process_high'
|
label 'process_high'
|
||||||
|
|
||||||
conda (params.enable_conda ? 'bioconda::bowtie2=2.4.4' : null)
|
conda "bioconda::bowtie2=2.4.4"
|
||||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||||
'https://depot.galaxyproject.org/singularity/bowtie2:2.4.4--py39hbb4e92a_0' :
|
'https://depot.galaxyproject.org/singularity/bowtie2:2.4.4--py39hbb4e92a_0' :
|
||||||
'quay.io/biocontainers/bowtie2:2.4.4--py39hbb4e92a_0' }"
|
'quay.io/biocontainers/bowtie2:2.4.4--py39hbb4e92a_0' }"
|
||||||
|
|
||||||
input:
|
input:
|
||||||
path fasta
|
tuple val(meta), path(fasta)
|
||||||
|
|
||||||
output:
|
output:
|
||||||
path 'bowtie2' , emit: index
|
tuple val(meta), path('bowtie2') , emit: index
|
||||||
path "versions.yml" , emit: versions
|
path "versions.yml" , emit: versions
|
||||||
|
|
||||||
when:
|
when:
|
||||||
task.ext.when == null || task.ext.when
|
task.ext.when == null || task.ext.when
|
||||||
|
|
10
modules/nf-core/bowtie2/build/meta.yml
generated
10
modules/nf-core/bowtie2/build/meta.yml
generated
|
@ -16,10 +16,20 @@ tools:
|
||||||
doi: 10.1038/nmeth.1923
|
doi: 10.1038/nmeth.1923
|
||||||
licence: ["GPL-3.0-or-later"]
|
licence: ["GPL-3.0-or-later"]
|
||||||
input:
|
input:
|
||||||
|
- meta:
|
||||||
|
type: map
|
||||||
|
description: |
|
||||||
|
Groovy Map containing reference information
|
||||||
|
e.g. [ id:'test', single_end:false ]
|
||||||
- fasta:
|
- fasta:
|
||||||
type: file
|
type: file
|
||||||
description: Input genome fasta file
|
description: Input genome fasta file
|
||||||
output:
|
output:
|
||||||
|
- meta:
|
||||||
|
type: map
|
||||||
|
description: |
|
||||||
|
Groovy Map containing reference information
|
||||||
|
e.g. [ id:'test', single_end:false ]
|
||||||
- index:
|
- index:
|
||||||
type: file
|
type: file
|
||||||
description: Bowtie2 genome index files
|
description: Bowtie2 genome index files
|
||||||
|
|
2
modules/nf-core/bracken/bracken/main.nf
generated
2
modules/nf-core/bracken/bracken/main.nf
generated
|
@ -4,7 +4,7 @@ process BRACKEN_BRACKEN {
|
||||||
|
|
||||||
// WARN: Version information not provided by tool on CLI.
|
// WARN: Version information not provided by tool on CLI.
|
||||||
// Please update version string below when bumping container versions.
|
// Please update version string below when bumping container versions.
|
||||||
conda (params.enable_conda ? "bioconda::bracken=2.7" : null)
|
conda "bioconda::bracken=2.7"
|
||||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||||
'https://depot.galaxyproject.org/singularity/bracken:2.7--py39hc16433a_0':
|
'https://depot.galaxyproject.org/singularity/bracken:2.7--py39hc16433a_0':
|
||||||
'quay.io/biocontainers/bracken:2.7--py39hc16433a_0' }"
|
'quay.io/biocontainers/bracken:2.7--py39hc16433a_0' }"
|
||||||
|
|
|
@ -2,7 +2,7 @@ process BRACKEN_COMBINEBRACKENOUTPUTS {
|
||||||
tag "$meta.id"
|
tag "$meta.id"
|
||||||
label 'process_low'
|
label 'process_low'
|
||||||
|
|
||||||
conda (params.enable_conda ? "bioconda::bracken=2.7" : null)
|
conda "bioconda::bracken=2.7"
|
||||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||||
'https://depot.galaxyproject.org/singularity/bracken:2.7--py39hc16433a_0':
|
'https://depot.galaxyproject.org/singularity/bracken:2.7--py39hc16433a_0':
|
||||||
'quay.io/biocontainers/bracken:2.7--py39hc16433a_0' }"
|
'quay.io/biocontainers/bracken:2.7--py39hc16433a_0' }"
|
||||||
|
|
2
modules/nf-core/cat/fastq/main.nf
generated
2
modules/nf-core/cat/fastq/main.nf
generated
|
@ -2,7 +2,7 @@ process CAT_FASTQ {
|
||||||
tag "$meta.id"
|
tag "$meta.id"
|
||||||
label 'process_single'
|
label 'process_single'
|
||||||
|
|
||||||
conda (params.enable_conda ? "conda-forge::sed=4.7" : null)
|
conda "conda-forge::sed=4.7"
|
||||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||||
'https://depot.galaxyproject.org/singularity/ubuntu:20.04' :
|
'https://depot.galaxyproject.org/singularity/ubuntu:20.04' :
|
||||||
'ubuntu:20.04' }"
|
'ubuntu:20.04' }"
|
||||||
|
|
4
modules/nf-core/centrifuge/centrifuge/main.nf
generated
4
modules/nf-core/centrifuge/centrifuge/main.nf
generated
|
@ -2,7 +2,7 @@ process CENTRIFUGE_CENTRIFUGE {
|
||||||
tag "$meta.id"
|
tag "$meta.id"
|
||||||
label 'process_high'
|
label 'process_high'
|
||||||
|
|
||||||
conda (params.enable_conda ? "bioconda::centrifuge=1.0.4_beta" : null)
|
conda "bioconda::centrifuge=1.0.4_beta"
|
||||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||||
'https://depot.galaxyproject.org/singularity/centrifuge:1.0.4_beta--h9a82719_6' :
|
'https://depot.galaxyproject.org/singularity/centrifuge:1.0.4_beta--h9a82719_6' :
|
||||||
'quay.io/biocontainers/centrifuge:1.0.4_beta--h9a82719_6' }"
|
'quay.io/biocontainers/centrifuge:1.0.4_beta--h9a82719_6' }"
|
||||||
|
@ -41,7 +41,7 @@ process CENTRIFUGE_CENTRIFUGE {
|
||||||
def sam_output = sam_format ? "--out-fmt 'sam'" : ''
|
def sam_output = sam_format ? "--out-fmt 'sam'" : ''
|
||||||
"""
|
"""
|
||||||
## we add "-no-name ._" to ensure silly Mac OSX metafiles files aren't included
|
## we add "-no-name ._" to ensure silly Mac OSX metafiles files aren't included
|
||||||
db_name=`find -L ${db} -name "*.1.cf" -not -name "._*" | sed 's/.1.cf//'`
|
db_name=`find -L ${db} -name "*.1.cf" -not -name "._*" | sed 's/\\.1.cf\$//'`
|
||||||
centrifuge \\
|
centrifuge \\
|
||||||
-x \$db_name \\
|
-x \$db_name \\
|
||||||
-p $task.cpus \\
|
-p $task.cpus \\
|
||||||
|
|
4
modules/nf-core/centrifuge/kreport/main.nf
generated
4
modules/nf-core/centrifuge/kreport/main.nf
generated
|
@ -2,7 +2,7 @@ process CENTRIFUGE_KREPORT {
|
||||||
tag "$meta.id"
|
tag "$meta.id"
|
||||||
label 'process_single'
|
label 'process_single'
|
||||||
|
|
||||||
conda (params.enable_conda ? "bioconda::centrifuge=1.0.4_beta" : null)
|
conda "bioconda::centrifuge=1.0.4_beta"
|
||||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||||
'https://depot.galaxyproject.org/singularity/centrifuge:1.0.4_beta--h9a82719_6':
|
'https://depot.galaxyproject.org/singularity/centrifuge:1.0.4_beta--h9a82719_6':
|
||||||
'quay.io/biocontainers/centrifuge:1.0.4_beta--h9a82719_6' }"
|
'quay.io/biocontainers/centrifuge:1.0.4_beta--h9a82719_6' }"
|
||||||
|
@ -22,7 +22,7 @@ process CENTRIFUGE_KREPORT {
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.prefix ?: "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
"""
|
"""
|
||||||
db_name=`find -L ${db} -name "*.1.cf" -not -name "._*" | sed 's/.1.cf//'`
|
db_name=`find -L ${db} -name "*.1.cf" -not -name "._*" | sed 's/\\.1.cf\$//'`
|
||||||
centrifuge-kreport -x \$db_name ${report} > ${prefix}.txt
|
centrifuge-kreport -x \$db_name ${report} > ${prefix}.txt
|
||||||
|
|
||||||
cat <<-END_VERSIONS > versions.yml
|
cat <<-END_VERSIONS > versions.yml
|
||||||
|
|
|
@ -2,7 +2,7 @@ process CUSTOM_DUMPSOFTWAREVERSIONS {
|
||||||
label 'process_single'
|
label 'process_single'
|
||||||
|
|
||||||
// Requires `pyyaml` which does not have a dedicated container but is in the MultiQC container
|
// Requires `pyyaml` which does not have a dedicated container but is in the MultiQC container
|
||||||
conda (params.enable_conda ? 'bioconda::multiqc=1.13' : null)
|
conda "bioconda::multiqc=1.13"
|
||||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||||
'https://depot.galaxyproject.org/singularity/multiqc:1.13--pyhdfd78af_0' :
|
'https://depot.galaxyproject.org/singularity/multiqc:1.13--pyhdfd78af_0' :
|
||||||
'quay.io/biocontainers/multiqc:1.13--pyhdfd78af_0' }"
|
'quay.io/biocontainers/multiqc:1.13--pyhdfd78af_0' }"
|
||||||
|
|
90
modules/nf-core/custom/dumpsoftwareversions/templates/dumpsoftwareversions.py
generated
Normal file → Executable file
90
modules/nf-core/custom/dumpsoftwareversions/templates/dumpsoftwareversions.py
generated
Normal file → Executable file
|
@ -1,11 +1,17 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
import yaml
|
|
||||||
|
"""Provide functions to merge multiple versions.yml files."""
|
||||||
|
|
||||||
|
|
||||||
import platform
|
import platform
|
||||||
from textwrap import dedent
|
from textwrap import dedent
|
||||||
|
|
||||||
|
import yaml
|
||||||
|
|
||||||
|
|
||||||
def _make_versions_html(versions):
|
def _make_versions_html(versions):
|
||||||
|
"""Generate a tabular HTML output of all versions for MultiQC."""
|
||||||
html = [
|
html = [
|
||||||
dedent(
|
dedent(
|
||||||
"""\\
|
"""\\
|
||||||
|
@ -44,47 +50,53 @@ def _make_versions_html(versions):
|
||||||
return "\\n".join(html)
|
return "\\n".join(html)
|
||||||
|
|
||||||
|
|
||||||
versions_this_module = {}
|
def main():
|
||||||
versions_this_module["${task.process}"] = {
|
"""Load all version files and generate merged output."""
|
||||||
"python": platform.python_version(),
|
versions_this_module = {}
|
||||||
"yaml": yaml.__version__,
|
versions_this_module["${task.process}"] = {
|
||||||
}
|
"python": platform.python_version(),
|
||||||
|
"yaml": yaml.__version__,
|
||||||
|
}
|
||||||
|
|
||||||
with open("$versions") as f:
|
with open("$versions") as f:
|
||||||
versions_by_process = yaml.load(f, Loader=yaml.BaseLoader) | versions_this_module
|
versions_by_process = yaml.load(f, Loader=yaml.BaseLoader) | versions_this_module
|
||||||
|
|
||||||
# aggregate versions by the module name (derived from fully-qualified process name)
|
# aggregate versions by the module name (derived from fully-qualified process name)
|
||||||
versions_by_module = {}
|
versions_by_module = {}
|
||||||
for process, process_versions in versions_by_process.items():
|
for process, process_versions in versions_by_process.items():
|
||||||
module = process.split(":")[-1]
|
module = process.split(":")[-1]
|
||||||
try:
|
try:
|
||||||
if versions_by_module[module] != process_versions:
|
if versions_by_module[module] != process_versions:
|
||||||
raise AssertionError(
|
raise AssertionError(
|
||||||
"We assume that software versions are the same between all modules. "
|
"We assume that software versions are the same between all modules. "
|
||||||
"If you see this error-message it means you discovered an edge-case "
|
"If you see this error-message it means you discovered an edge-case "
|
||||||
"and should open an issue in nf-core/tools. "
|
"and should open an issue in nf-core/tools. "
|
||||||
)
|
)
|
||||||
except KeyError:
|
except KeyError:
|
||||||
versions_by_module[module] = process_versions
|
versions_by_module[module] = process_versions
|
||||||
|
|
||||||
versions_by_module["Workflow"] = {
|
versions_by_module["Workflow"] = {
|
||||||
"Nextflow": "$workflow.nextflow.version",
|
"Nextflow": "$workflow.nextflow.version",
|
||||||
"$workflow.manifest.name": "$workflow.manifest.version",
|
"$workflow.manifest.name": "$workflow.manifest.version",
|
||||||
}
|
}
|
||||||
|
|
||||||
versions_mqc = {
|
versions_mqc = {
|
||||||
"id": "software_versions",
|
"id": "software_versions",
|
||||||
"section_name": "${workflow.manifest.name} Software Versions",
|
"section_name": "${workflow.manifest.name} Software Versions",
|
||||||
"section_href": "https://github.com/${workflow.manifest.name}",
|
"section_href": "https://github.com/${workflow.manifest.name}",
|
||||||
"plot_type": "html",
|
"plot_type": "html",
|
||||||
"description": "are collected at run time from the software output.",
|
"description": "are collected at run time from the software output.",
|
||||||
"data": _make_versions_html(versions_by_module),
|
"data": _make_versions_html(versions_by_module),
|
||||||
}
|
}
|
||||||
|
|
||||||
with open("software_versions.yml", "w") as f:
|
with open("software_versions.yml", "w") as f:
|
||||||
yaml.dump(versions_by_module, f, default_flow_style=False)
|
yaml.dump(versions_by_module, f, default_flow_style=False)
|
||||||
with open("software_versions_mqc.yml", "w") as f:
|
with open("software_versions_mqc.yml", "w") as f:
|
||||||
yaml.dump(versions_mqc, f, default_flow_style=False)
|
yaml.dump(versions_mqc, f, default_flow_style=False)
|
||||||
|
|
||||||
with open("versions.yml", "w") as f:
|
with open("versions.yml", "w") as f:
|
||||||
yaml.dump(versions_this_module, f, default_flow_style=False)
|
yaml.dump(versions_this_module, f, default_flow_style=False)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
|
|
4
modules/nf-core/diamond/blastx/main.nf
generated
4
modules/nf-core/diamond/blastx/main.nf
generated
|
@ -2,7 +2,7 @@ process DIAMOND_BLASTX {
|
||||||
tag "$meta.id"
|
tag "$meta.id"
|
||||||
label 'process_medium'
|
label 'process_medium'
|
||||||
|
|
||||||
conda (params.enable_conda ? "bioconda::diamond=2.0.15" : null)
|
conda "bioconda::diamond=2.0.15"
|
||||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||||
'https://depot.galaxyproject.org/singularity/diamond:2.0.15--hb97b32f_0' :
|
'https://depot.galaxyproject.org/singularity/diamond:2.0.15--hb97b32f_0' :
|
||||||
'quay.io/biocontainers/diamond:2.0.15--hb97b32f_0' }"
|
'quay.io/biocontainers/diamond:2.0.15--hb97b32f_0' }"
|
||||||
|
@ -46,7 +46,7 @@ process DIAMOND_BLASTX {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
DB=`find -L ./ -name "*.dmnd" | sed 's/.dmnd//'`
|
DB=`find -L ./ -name "*.dmnd" | sed 's/\\.dmnd\$//'`
|
||||||
|
|
||||||
diamond \\
|
diamond \\
|
||||||
blastx \\
|
blastx \\
|
||||||
|
|
2
modules/nf-core/falco/main.nf
generated
2
modules/nf-core/falco/main.nf
generated
|
@ -3,7 +3,7 @@ process FALCO {
|
||||||
label 'process_single'
|
label 'process_single'
|
||||||
|
|
||||||
|
|
||||||
conda (params.enable_conda ? "bioconda::falco=1.2.1" : null)
|
conda "bioconda::falco=1.2.1"
|
||||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||||
'https://depot.galaxyproject.org/singularity/falco:1.2.1--h867801b_3':
|
'https://depot.galaxyproject.org/singularity/falco:1.2.1--h867801b_3':
|
||||||
'quay.io/biocontainers/falco:1.2.1--h867801b_3' }"
|
'quay.io/biocontainers/falco:1.2.1--h867801b_3' }"
|
||||||
|
|
2
modules/nf-core/fastp/main.nf
generated
2
modules/nf-core/fastp/main.nf
generated
|
@ -2,7 +2,7 @@ process FASTP {
|
||||||
tag "$meta.id"
|
tag "$meta.id"
|
||||||
label 'process_medium'
|
label 'process_medium'
|
||||||
|
|
||||||
conda (params.enable_conda ? 'bioconda::fastp=0.23.2' : null)
|
conda "bioconda::fastp=0.23.2"
|
||||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||||
'https://depot.galaxyproject.org/singularity/fastp:0.23.2--h79da9fb_0' :
|
'https://depot.galaxyproject.org/singularity/fastp:0.23.2--h79da9fb_0' :
|
||||||
'quay.io/biocontainers/fastp:0.23.2--h79da9fb_0' }"
|
'quay.io/biocontainers/fastp:0.23.2--h79da9fb_0' }"
|
||||||
|
|
38
modules/nf-core/fastqc/main.nf
generated
38
modules/nf-core/fastqc/main.nf
generated
|
@ -2,7 +2,7 @@ process FASTQC {
|
||||||
tag "$meta.id"
|
tag "$meta.id"
|
||||||
label 'process_medium'
|
label 'process_medium'
|
||||||
|
|
||||||
conda (params.enable_conda ? "bioconda::fastqc=0.11.9" : null)
|
conda "bioconda::fastqc=0.11.9"
|
||||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||||
'https://depot.galaxyproject.org/singularity/fastqc:0.11.9--0' :
|
'https://depot.galaxyproject.org/singularity/fastqc:0.11.9--0' :
|
||||||
'quay.io/biocontainers/fastqc:0.11.9--0' }"
|
'quay.io/biocontainers/fastqc:0.11.9--0' }"
|
||||||
|
@ -20,30 +20,22 @@ process FASTQC {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
// Add soft-links to original FastQs for consistent naming in pipeline
|
|
||||||
def prefix = task.ext.prefix ?: "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
if (meta.single_end) {
|
// Make list of old name and new name pairs to use for renaming in the bash while loop
|
||||||
"""
|
def old_new_pairs = reads instanceof Path || reads.size() == 1 ? [[ reads, "${prefix}.${reads.extension}" ]] : reads.withIndex().collect { entry, index -> [ entry, "${prefix}_${index + 1}.${entry.extension}" ] }
|
||||||
[ ! -f ${prefix}.fastq.gz ] && ln -s $reads ${prefix}.fastq.gz
|
def rename_to = old_new_pairs*.join(' ').join(' ')
|
||||||
fastqc $args --threads $task.cpus ${prefix}.fastq.gz
|
def renamed_files = old_new_pairs.collect{ old_name, new_name -> new_name }.join(' ')
|
||||||
|
"""
|
||||||
|
printf "%s %s\\n" $rename_to | while read old_name new_name; do
|
||||||
|
[ -f "\${new_name}" ] || ln -s \$old_name \$new_name
|
||||||
|
done
|
||||||
|
fastqc $args --threads $task.cpus $renamed_files
|
||||||
|
|
||||||
cat <<-END_VERSIONS > versions.yml
|
cat <<-END_VERSIONS > versions.yml
|
||||||
"${task.process}":
|
"${task.process}":
|
||||||
fastqc: \$( fastqc --version | sed -e "s/FastQC v//g" )
|
fastqc: \$( fastqc --version | sed -e "s/FastQC v//g" )
|
||||||
END_VERSIONS
|
END_VERSIONS
|
||||||
"""
|
"""
|
||||||
} else {
|
|
||||||
"""
|
|
||||||
[ ! -f ${prefix}_1.fastq.gz ] && ln -s ${reads[0]} ${prefix}_1.fastq.gz
|
|
||||||
[ ! -f ${prefix}_2.fastq.gz ] && ln -s ${reads[1]} ${prefix}_2.fastq.gz
|
|
||||||
fastqc $args --threads $task.cpus ${prefix}_1.fastq.gz ${prefix}_2.fastq.gz
|
|
||||||
|
|
||||||
cat <<-END_VERSIONS > versions.yml
|
|
||||||
"${task.process}":
|
|
||||||
fastqc: \$( fastqc --version | sed -e "s/FastQC v//g" )
|
|
||||||
END_VERSIONS
|
|
||||||
"""
|
|
||||||
}
|
|
||||||
|
|
||||||
stub:
|
stub:
|
||||||
def prefix = task.ext.prefix ?: "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
|
|
2
modules/nf-core/filtlong/main.nf
generated
2
modules/nf-core/filtlong/main.nf
generated
|
@ -2,7 +2,7 @@ process FILTLONG {
|
||||||
tag "$meta.id"
|
tag "$meta.id"
|
||||||
label 'process_low'
|
label 'process_low'
|
||||||
|
|
||||||
conda (params.enable_conda ? "bioconda::filtlong=0.2.1" : null)
|
conda "bioconda::filtlong=0.2.1"
|
||||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||||
'https://depot.galaxyproject.org/singularity/filtlong:0.2.1--h9a82719_0' :
|
'https://depot.galaxyproject.org/singularity/filtlong:0.2.1--h9a82719_0' :
|
||||||
'quay.io/biocontainers/filtlong:0.2.1--h9a82719_0' }"
|
'quay.io/biocontainers/filtlong:0.2.1--h9a82719_0' }"
|
||||||
|
|
2
modules/nf-core/gunzip/main.nf
generated
2
modules/nf-core/gunzip/main.nf
generated
|
@ -2,7 +2,7 @@ process GUNZIP {
|
||||||
tag "$archive"
|
tag "$archive"
|
||||||
label 'process_single'
|
label 'process_single'
|
||||||
|
|
||||||
conda (params.enable_conda ? "conda-forge::sed=4.7" : null)
|
conda "conda-forge::sed=4.7"
|
||||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||||
'https://depot.galaxyproject.org/singularity/ubuntu:20.04' :
|
'https://depot.galaxyproject.org/singularity/ubuntu:20.04' :
|
||||||
'ubuntu:20.04' }"
|
'ubuntu:20.04' }"
|
||||||
|
|
2
modules/nf-core/kaiju/kaiju/main.nf
generated
2
modules/nf-core/kaiju/kaiju/main.nf
generated
|
@ -2,7 +2,7 @@ process KAIJU_KAIJU {
|
||||||
tag "$meta.id"
|
tag "$meta.id"
|
||||||
label 'process_high'
|
label 'process_high'
|
||||||
|
|
||||||
conda (params.enable_conda ? "bioconda::kaiju=1.8.2" : null)
|
conda "bioconda::kaiju=1.8.2"
|
||||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||||
'https://depot.galaxyproject.org/singularity/kaiju:1.8.2--h5b5514e_1':
|
'https://depot.galaxyproject.org/singularity/kaiju:1.8.2--h5b5514e_1':
|
||||||
'quay.io/biocontainers/kaiju:1.8.2--h5b5514e_1' }"
|
'quay.io/biocontainers/kaiju:1.8.2--h5b5514e_1' }"
|
||||||
|
|
2
modules/nf-core/kaiju/kaiju2krona/main.nf
generated
2
modules/nf-core/kaiju/kaiju2krona/main.nf
generated
|
@ -2,7 +2,7 @@ process KAIJU_KAIJU2KRONA {
|
||||||
tag "$meta.id"
|
tag "$meta.id"
|
||||||
label 'process_single'
|
label 'process_single'
|
||||||
|
|
||||||
conda (params.enable_conda ? "bioconda::kaiju=1.8.2" : null)
|
conda "bioconda::kaiju=1.8.2"
|
||||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||||
'https://depot.galaxyproject.org/singularity/kaiju:1.8.2--h5b5514e_1':
|
'https://depot.galaxyproject.org/singularity/kaiju:1.8.2--h5b5514e_1':
|
||||||
'quay.io/biocontainers/kaiju:1.8.2--h5b5514e_1' }"
|
'quay.io/biocontainers/kaiju:1.8.2--h5b5514e_1' }"
|
||||||
|
|
2
modules/nf-core/kaiju/kaiju2table/main.nf
generated
2
modules/nf-core/kaiju/kaiju2table/main.nf
generated
|
@ -2,7 +2,7 @@ process KAIJU_KAIJU2TABLE {
|
||||||
tag "$meta.id"
|
tag "$meta.id"
|
||||||
label 'process_single'
|
label 'process_single'
|
||||||
|
|
||||||
conda (params.enable_conda ? "bioconda::kaiju=1.8.2" : null)
|
conda "bioconda::kaiju=1.8.2"
|
||||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||||
'https://depot.galaxyproject.org/singularity/kaiju:1.8.2--h5b5514e_1':
|
'https://depot.galaxyproject.org/singularity/kaiju:1.8.2--h5b5514e_1':
|
||||||
'quay.io/biocontainers/kaiju:1.8.2--h2e03b76_0' }"
|
'quay.io/biocontainers/kaiju:1.8.2--h2e03b76_0' }"
|
||||||
|
|
2
modules/nf-core/kraken2/kraken2/main.nf
generated
2
modules/nf-core/kraken2/kraken2/main.nf
generated
|
@ -2,7 +2,7 @@ process KRAKEN2_KRAKEN2 {
|
||||||
tag "$meta.id"
|
tag "$meta.id"
|
||||||
label 'process_high'
|
label 'process_high'
|
||||||
|
|
||||||
conda (params.enable_conda ? 'bioconda::kraken2=2.1.2 conda-forge::pigz=2.6' : null)
|
conda "bioconda::kraken2=2.1.2 conda-forge::pigz=2.6"
|
||||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||||
'https://depot.galaxyproject.org/singularity/mulled-v2-5799ab18b5fc681e75923b2450abaa969907ec98:87fc08d11968d081f3e8a37131c1f1f6715b6542-0' :
|
'https://depot.galaxyproject.org/singularity/mulled-v2-5799ab18b5fc681e75923b2450abaa969907ec98:87fc08d11968d081f3e8a37131c1f1f6715b6542-0' :
|
||||||
'quay.io/biocontainers/mulled-v2-5799ab18b5fc681e75923b2450abaa969907ec98:87fc08d11968d081f3e8a37131c1f1f6715b6542-0' }"
|
'quay.io/biocontainers/mulled-v2-5799ab18b5fc681e75923b2450abaa969907ec98:87fc08d11968d081f3e8a37131c1f1f6715b6542-0' }"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
process KRAKENTOOLS_COMBINEKREPORTS {
|
process KRAKENTOOLS_COMBINEKREPORTS {
|
||||||
label 'process_single'
|
label 'process_single'
|
||||||
|
|
||||||
conda (params.enable_conda ? "bioconda::krakentools=1.2" : null)
|
conda "bioconda::krakentools=1.2"
|
||||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||||
'https://depot.galaxyproject.org/singularity/krakentools:1.2--pyh5e36f6f_0':
|
'https://depot.galaxyproject.org/singularity/krakentools:1.2--pyh5e36f6f_0':
|
||||||
'quay.io/biocontainers/krakentools:1.2--pyh5e36f6f_0' }"
|
'quay.io/biocontainers/krakentools:1.2--pyh5e36f6f_0' }"
|
||||||
|
|
|
@ -3,7 +3,7 @@ process KRAKENTOOLS_KREPORT2KRONA {
|
||||||
label 'process_single'
|
label 'process_single'
|
||||||
|
|
||||||
// WARN: Version information not provided by tool on CLI. Please update version string below when bumping container versions.
|
// WARN: Version information not provided by tool on CLI. Please update version string below when bumping container versions.
|
||||||
conda (params.enable_conda ? "bioconda::krakentools=1.2" : null)
|
conda "bioconda::krakentools=1.2"
|
||||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||||
'https://depot.galaxyproject.org/singularity/krakentools:1.2--pyh5e36f6f_0':
|
'https://depot.galaxyproject.org/singularity/krakentools:1.2--pyh5e36f6f_0':
|
||||||
'quay.io/biocontainers/krakentools:1.2--pyh5e36f6f_0' }"
|
'quay.io/biocontainers/krakentools:1.2--pyh5e36f6f_0' }"
|
||||||
|
|
|
@ -2,10 +2,10 @@ process KRAKENUNIQ_PRELOADEDKRAKENUNIQ {
|
||||||
tag "$meta.id"
|
tag "$meta.id"
|
||||||
label 'process_high'
|
label 'process_high'
|
||||||
|
|
||||||
conda (params.enable_conda ? "bioconda::krakenuniq=1.0.0" : null)
|
conda "bioconda::krakenuniq=1.0.2"
|
||||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||||
'https://depot.galaxyproject.org/singularity/krakenuniq:1.0.0--pl5321h19e8d03_0':
|
'https://depot.galaxyproject.org/singularity/krakenuniq:1.0.2--pl5321h19e8d03_0':
|
||||||
'quay.io/biocontainers/krakenuniq:1.0.0--pl5321h19e8d03_0' }"
|
'quay.io/biocontainers/krakenuniq:1.0.2--pl5321h19e8d03_0' }"
|
||||||
|
|
||||||
input:
|
input:
|
||||||
tuple val(meta), path(fastqs)
|
tuple val(meta), path(fastqs)
|
||||||
|
|
2
modules/nf-core/krona/ktimporttaxonomy/main.nf
generated
2
modules/nf-core/krona/ktimporttaxonomy/main.nf
generated
|
@ -3,7 +3,7 @@ process KRONA_KTIMPORTTAXONOMY {
|
||||||
label 'process_single'
|
label 'process_single'
|
||||||
|
|
||||||
// WARN: Version information not provided by tool on CLI. Please update version string below when bumping container versions.
|
// WARN: Version information not provided by tool on CLI. Please update version string below when bumping container versions.
|
||||||
conda (params.enable_conda ? "bioconda::krona=2.8" : null)
|
conda "bioconda::krona=2.8"
|
||||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||||
'https://depot.galaxyproject.org/singularity/krona:2.8--pl5262hdfd78af_2' :
|
'https://depot.galaxyproject.org/singularity/krona:2.8--pl5262hdfd78af_2' :
|
||||||
'quay.io/biocontainers/krona:2.8--pl5262hdfd78af_2' }"
|
'quay.io/biocontainers/krona:2.8--pl5262hdfd78af_2' }"
|
||||||
|
|
2
modules/nf-core/krona/ktimporttext/main.nf
generated
2
modules/nf-core/krona/ktimporttext/main.nf
generated
|
@ -2,7 +2,7 @@ process KRONA_KTIMPORTTEXT {
|
||||||
tag "$meta.id"
|
tag "$meta.id"
|
||||||
label 'process_single'
|
label 'process_single'
|
||||||
|
|
||||||
conda (params.enable_conda ? "bioconda::krona=2.8.1" : null)
|
conda "bioconda::krona=2.8.1"
|
||||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||||
'https://depot.galaxyproject.org/singularity/krona:2.8.1--pl5321hdfd78af_1':
|
'https://depot.galaxyproject.org/singularity/krona:2.8.1--pl5321hdfd78af_1':
|
||||||
'quay.io/biocontainers/krona:2.8.1--pl5321hdfd78af_1' }"
|
'quay.io/biocontainers/krona:2.8.1--pl5321hdfd78af_1' }"
|
||||||
|
|
2
modules/nf-core/malt/run/main.nf
generated
2
modules/nf-core/malt/run/main.nf
generated
|
@ -2,7 +2,7 @@ process MALT_RUN {
|
||||||
tag "$meta.id"
|
tag "$meta.id"
|
||||||
label 'process_high'
|
label 'process_high'
|
||||||
|
|
||||||
conda (params.enable_conda ? "bioconda::malt=0.61" : null)
|
conda "bioconda::malt=0.61"
|
||||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||||
'https://depot.galaxyproject.org/singularity/malt:0.61--hdfd78af_0' :
|
'https://depot.galaxyproject.org/singularity/malt:0.61--hdfd78af_0' :
|
||||||
'quay.io/biocontainers/malt:0.61--hdfd78af_0' }"
|
'quay.io/biocontainers/malt:0.61--hdfd78af_0' }"
|
||||||
|
|
2
modules/nf-core/megan/rma2info/main.nf
generated
2
modules/nf-core/megan/rma2info/main.nf
generated
|
@ -2,7 +2,7 @@ process MEGAN_RMA2INFO {
|
||||||
tag "$meta.id"
|
tag "$meta.id"
|
||||||
label 'process_single'
|
label 'process_single'
|
||||||
|
|
||||||
conda (params.enable_conda ? "bioconda::megan=6.21.7" : null)
|
conda "bioconda::megan=6.21.7"
|
||||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||||
'https://depot.galaxyproject.org/singularity/megan:6.21.7--h9ee0642_0':
|
'https://depot.galaxyproject.org/singularity/megan:6.21.7--h9ee0642_0':
|
||||||
'quay.io/biocontainers/megan:6.21.7--h9ee0642_0' }"
|
'quay.io/biocontainers/megan:6.21.7--h9ee0642_0' }"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
process METAPHLAN3_MERGEMETAPHLANTABLES {
|
process METAPHLAN3_MERGEMETAPHLANTABLES {
|
||||||
label 'process_single'
|
label 'process_single'
|
||||||
|
|
||||||
conda (params.enable_conda ? 'bioconda::metaphlan=3.0.12' : null)
|
conda "bioconda::metaphlan=3.0.12"
|
||||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||||
'https://depot.galaxyproject.org/singularity/metaphlan:3.0.12--pyhb7b1952_0' :
|
'https://depot.galaxyproject.org/singularity/metaphlan:3.0.12--pyhb7b1952_0' :
|
||||||
'quay.io/biocontainers/metaphlan:3.0.12--pyhb7b1952_0' }"
|
'quay.io/biocontainers/metaphlan:3.0.12--pyhb7b1952_0' }"
|
||||||
|
|
2
modules/nf-core/metaphlan3/metaphlan3/main.nf
generated
2
modules/nf-core/metaphlan3/metaphlan3/main.nf
generated
|
@ -2,7 +2,7 @@ process METAPHLAN3_METAPHLAN3 {
|
||||||
tag "$meta.id"
|
tag "$meta.id"
|
||||||
label 'process_high'
|
label 'process_high'
|
||||||
|
|
||||||
conda (params.enable_conda ? 'bioconda::metaphlan=3.0.12' : null)
|
conda "bioconda::metaphlan=3.0.12"
|
||||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||||
'https://depot.galaxyproject.org/singularity/metaphlan:3.0.12--pyhb7b1952_0' :
|
'https://depot.galaxyproject.org/singularity/metaphlan:3.0.12--pyhb7b1952_0' :
|
||||||
'quay.io/biocontainers/metaphlan:3.0.12--pyhb7b1952_0' }"
|
'quay.io/biocontainers/metaphlan:3.0.12--pyhb7b1952_0' }"
|
||||||
|
|
8
modules/nf-core/minimap2/align/main.nf
generated
8
modules/nf-core/minimap2/align/main.nf
generated
|
@ -2,7 +2,8 @@ process MINIMAP2_ALIGN {
|
||||||
tag "$meta.id"
|
tag "$meta.id"
|
||||||
label 'process_medium'
|
label 'process_medium'
|
||||||
|
|
||||||
conda (params.enable_conda ? 'bioconda::minimap2=2.21 bioconda::samtools=1.12' : null)
|
// Note: the versions here need to match the versions used in the mulled container below and minimap2/index
|
||||||
|
conda "bioconda::minimap2=2.24 bioconda::samtools=1.14"
|
||||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||||
'https://depot.galaxyproject.org/singularity/mulled-v2-66534bcbb7031a148b13e2ad42583020b9cd25c4:1679e915ddb9d6b4abda91880c4b48857d471bd8-0' :
|
'https://depot.galaxyproject.org/singularity/mulled-v2-66534bcbb7031a148b13e2ad42583020b9cd25c4:1679e915ddb9d6b4abda91880c4b48857d471bd8-0' :
|
||||||
'quay.io/biocontainers/mulled-v2-66534bcbb7031a148b13e2ad42583020b9cd25c4:1679e915ddb9d6b4abda91880c4b48857d471bd8-0' }"
|
'quay.io/biocontainers/mulled-v2-66534bcbb7031a148b13e2ad42583020b9cd25c4:1679e915ddb9d6b4abda91880c4b48857d471bd8-0' }"
|
||||||
|
@ -25,7 +26,6 @@ process MINIMAP2_ALIGN {
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.prefix ?: "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
def input_reads = meta.single_end ? "$reads" : "${reads[0]} ${reads[1]}"
|
|
||||||
def bam_output = bam_format ? "-a | samtools sort | samtools view -@ ${task.cpus} -b -h -o ${prefix}.bam" : "-o ${prefix}.paf"
|
def bam_output = bam_format ? "-a | samtools sort | samtools view -@ ${task.cpus} -b -h -o ${prefix}.bam" : "-o ${prefix}.paf"
|
||||||
def cigar_paf = cigar_paf_format && !bam_format ? "-c" : ''
|
def cigar_paf = cigar_paf_format && !bam_format ? "-c" : ''
|
||||||
def set_cigar_bam = cigar_bam && bam_format ? "-L" : ''
|
def set_cigar_bam = cigar_bam && bam_format ? "-L" : ''
|
||||||
|
@ -33,8 +33,8 @@ process MINIMAP2_ALIGN {
|
||||||
minimap2 \\
|
minimap2 \\
|
||||||
$args \\
|
$args \\
|
||||||
-t $task.cpus \\
|
-t $task.cpus \\
|
||||||
$reference \\
|
"${reference ?: reads}" \\
|
||||||
$input_reads \\
|
"$reads" \\
|
||||||
$cigar_paf \\
|
$cigar_paf \\
|
||||||
$set_cigar_bam \\
|
$set_cigar_bam \\
|
||||||
$bam_output
|
$bam_output
|
||||||
|
|
7
modules/nf-core/minimap2/index/main.nf
generated
7
modules/nf-core/minimap2/index/main.nf
generated
|
@ -1,10 +1,11 @@
|
||||||
process MINIMAP2_INDEX {
|
process MINIMAP2_INDEX {
|
||||||
label 'process_medium'
|
label 'process_medium'
|
||||||
|
|
||||||
conda (params.enable_conda ? 'bioconda::minimap2=2.21' : null)
|
// Note: the versions here need to match the versions used in minimap2/align
|
||||||
|
conda "bioconda::minimap2=2.24"
|
||||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||||
'https://depot.galaxyproject.org/singularity/minimap2:2.21--h5bf99c6_0' :
|
'https://depot.galaxyproject.org/singularity/minimap2:2.24--h7132678_1' :
|
||||||
'quay.io/biocontainers/minimap2:2.21--h5bf99c6_0' }"
|
'quay.io/biocontainers/minimap2:2.24--h7132678_1' }"
|
||||||
|
|
||||||
input:
|
input:
|
||||||
tuple val(meta), path(fasta)
|
tuple val(meta), path(fasta)
|
||||||
|
|
2
modules/nf-core/minimap2/index/meta.yml
generated
2
modules/nf-core/minimap2/index/meta.yml
generated
|
@ -27,7 +27,7 @@ output:
|
||||||
description: |
|
description: |
|
||||||
Groovy Map containing sample information
|
Groovy Map containing sample information
|
||||||
e.g. [ id:'test', single_end:false ]
|
e.g. [ id:'test', single_end:false ]
|
||||||
- mmi:
|
- index:
|
||||||
type: file
|
type: file
|
||||||
description: Minimap2 fasta index.
|
description: Minimap2 fasta index.
|
||||||
pattern: "*.mmi"
|
pattern: "*.mmi"
|
||||||
|
|
2
modules/nf-core/motus/merge/main.nf
generated
2
modules/nf-core/motus/merge/main.nf
generated
|
@ -2,7 +2,7 @@ process MOTUS_MERGE {
|
||||||
tag "$meta.id"
|
tag "$meta.id"
|
||||||
label 'process_single'
|
label 'process_single'
|
||||||
|
|
||||||
conda (params.enable_conda ? "bioconda::motus=3.0.3" : null)
|
conda "bioconda::motus=3.0.3"
|
||||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||||
'https://depot.galaxyproject.org/singularity/motus:3.0.3--pyhdfd78af_0':
|
'https://depot.galaxyproject.org/singularity/motus:3.0.3--pyhdfd78af_0':
|
||||||
'quay.io/biocontainers/motus:3.0.3--pyhdfd78af_0' }"
|
'quay.io/biocontainers/motus:3.0.3--pyhdfd78af_0' }"
|
||||||
|
|
2
modules/nf-core/motus/profile/main.nf
generated
2
modules/nf-core/motus/profile/main.nf
generated
|
@ -2,7 +2,7 @@ process MOTUS_PROFILE {
|
||||||
tag "$meta.id"
|
tag "$meta.id"
|
||||||
label 'process_medium'
|
label 'process_medium'
|
||||||
|
|
||||||
conda (params.enable_conda ? "bioconda::motus=3.0.3" : null)
|
conda "bioconda::motus=3.0.3"
|
||||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||||
'https://depot.galaxyproject.org/singularity/motus:3.0.3--pyhdfd78af_0':
|
'https://depot.galaxyproject.org/singularity/motus:3.0.3--pyhdfd78af_0':
|
||||||
'quay.io/biocontainers/motus:3.0.3--pyhdfd78af_0' }"
|
'quay.io/biocontainers/motus:3.0.3--pyhdfd78af_0' }"
|
||||||
|
|
2
modules/nf-core/multiqc/main.nf
generated
2
modules/nf-core/multiqc/main.nf
generated
|
@ -1,7 +1,7 @@
|
||||||
process MULTIQC {
|
process MULTIQC {
|
||||||
label 'process_single'
|
label 'process_single'
|
||||||
|
|
||||||
conda (params.enable_conda ? 'bioconda::multiqc=1.13' : null)
|
conda "bioconda::multiqc=1.13"
|
||||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||||
'https://depot.galaxyproject.org/singularity/multiqc:1.13--pyhdfd78af_0' :
|
'https://depot.galaxyproject.org/singularity/multiqc:1.13--pyhdfd78af_0' :
|
||||||
'quay.io/biocontainers/multiqc:1.13--pyhdfd78af_0' }"
|
'quay.io/biocontainers/multiqc:1.13--pyhdfd78af_0' }"
|
||||||
|
|
2
modules/nf-core/porechop/porechop/main.nf
generated
2
modules/nf-core/porechop/porechop/main.nf
generated
|
@ -2,7 +2,7 @@ process PORECHOP_PORECHOP {
|
||||||
tag "$meta.id"
|
tag "$meta.id"
|
||||||
label 'process_medium'
|
label 'process_medium'
|
||||||
|
|
||||||
conda (params.enable_conda ? "bioconda::porechop=0.2.4" : null)
|
conda "bioconda::porechop=0.2.4"
|
||||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||||
'https://depot.galaxyproject.org/singularity/porechop:0.2.4--py39h7cff6ad_2' :
|
'https://depot.galaxyproject.org/singularity/porechop:0.2.4--py39h7cff6ad_2' :
|
||||||
'quay.io/biocontainers/porechop:0.2.4--py39h7cff6ad_2' }"
|
'quay.io/biocontainers/porechop:0.2.4--py39h7cff6ad_2' }"
|
||||||
|
|
2
modules/nf-core/prinseqplusplus/main.nf
generated
2
modules/nf-core/prinseqplusplus/main.nf
generated
|
@ -2,7 +2,7 @@ process PRINSEQPLUSPLUS {
|
||||||
tag "$meta.id"
|
tag "$meta.id"
|
||||||
label 'process_low'
|
label 'process_low'
|
||||||
|
|
||||||
conda (params.enable_conda ? "bioconda::prinseq-plus-plus=1.2.3" : null)
|
conda "bioconda::prinseq-plus-plus=1.2.3"
|
||||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||||
'https://depot.galaxyproject.org/singularity/prinseq-plus-plus:1.2.3--hc90279e_1':
|
'https://depot.galaxyproject.org/singularity/prinseq-plus-plus:1.2.3--hc90279e_1':
|
||||||
'quay.io/biocontainers/prinseq-plus-plus:1.2.3--hc90279e_1' }"
|
'quay.io/biocontainers/prinseq-plus-plus:1.2.3--hc90279e_1' }"
|
||||||
|
|
6
modules/nf-core/samtools/bam2fq/main.nf
generated
6
modules/nf-core/samtools/bam2fq/main.nf
generated
|
@ -2,10 +2,10 @@ process SAMTOOLS_BAM2FQ {
|
||||||
tag "$meta.id"
|
tag "$meta.id"
|
||||||
label 'process_low'
|
label 'process_low'
|
||||||
|
|
||||||
conda (params.enable_conda ? "bioconda::samtools=1.15.1" : null)
|
conda "bioconda::samtools=1.16.1"
|
||||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||||
'https://depot.galaxyproject.org/singularity/samtools:1.15.1--h1170115_0' :
|
'https://depot.galaxyproject.org/singularity/samtools:1.16.1--h6899075_1' :
|
||||||
'quay.io/biocontainers/samtools:1.15.1--h1170115_0' }"
|
'quay.io/biocontainers/samtools:1.16.1--h6899075_1' }"
|
||||||
|
|
||||||
input:
|
input:
|
||||||
tuple val(meta), path(inputbam)
|
tuple val(meta), path(inputbam)
|
||||||
|
|
6
modules/nf-core/samtools/index/main.nf
generated
6
modules/nf-core/samtools/index/main.nf
generated
|
@ -2,10 +2,10 @@ process SAMTOOLS_INDEX {
|
||||||
tag "$meta.id"
|
tag "$meta.id"
|
||||||
label 'process_low'
|
label 'process_low'
|
||||||
|
|
||||||
conda (params.enable_conda ? "bioconda::samtools=1.15.1" : null)
|
conda "bioconda::samtools=1.16.1"
|
||||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||||
'https://depot.galaxyproject.org/singularity/samtools:1.15.1--h1170115_0' :
|
'https://depot.galaxyproject.org/singularity/samtools:1.16.1--h6899075_1' :
|
||||||
'quay.io/biocontainers/samtools:1.15.1--h1170115_0' }"
|
'quay.io/biocontainers/samtools:1.16.1--h6899075_1' }"
|
||||||
|
|
||||||
input:
|
input:
|
||||||
tuple val(meta), path(input)
|
tuple val(meta), path(input)
|
||||||
|
|
6
modules/nf-core/samtools/stats/main.nf
generated
6
modules/nf-core/samtools/stats/main.nf
generated
|
@ -2,10 +2,10 @@ process SAMTOOLS_STATS {
|
||||||
tag "$meta.id"
|
tag "$meta.id"
|
||||||
label 'process_single'
|
label 'process_single'
|
||||||
|
|
||||||
conda (params.enable_conda ? "bioconda::samtools=1.15.1" : null)
|
conda "bioconda::samtools=1.16.1"
|
||||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||||
'https://depot.galaxyproject.org/singularity/samtools:1.15.1--h1170115_0' :
|
'https://depot.galaxyproject.org/singularity/samtools:1.16.1--h6899075_1' :
|
||||||
'quay.io/biocontainers/samtools:1.15.1--h1170115_0' }"
|
'quay.io/biocontainers/samtools:1.16.1--h6899075_1' }"
|
||||||
|
|
||||||
input:
|
input:
|
||||||
tuple val(meta), path(input), path(input_index)
|
tuple val(meta), path(input), path(input_index)
|
||||||
|
|
10
modules/nf-core/samtools/view/main.nf
generated
10
modules/nf-core/samtools/view/main.nf
generated
|
@ -2,10 +2,10 @@ process SAMTOOLS_VIEW {
|
||||||
tag "$meta.id"
|
tag "$meta.id"
|
||||||
label 'process_low'
|
label 'process_low'
|
||||||
|
|
||||||
conda (params.enable_conda ? "bioconda::samtools=1.15.1" : null)
|
conda "bioconda::samtools=1.16.1"
|
||||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||||
'https://depot.galaxyproject.org/singularity/samtools:1.15.1--h1170115_0' :
|
'https://depot.galaxyproject.org/singularity/samtools:1.16.1--h6899075_1' :
|
||||||
'quay.io/biocontainers/samtools:1.15.1--h1170115_0' }"
|
'quay.io/biocontainers/samtools:1.16.1--h6899075_1' }"
|
||||||
|
|
||||||
input:
|
input:
|
||||||
tuple val(meta), path(input), path(index)
|
tuple val(meta), path(input), path(index)
|
||||||
|
@ -26,6 +26,7 @@ process SAMTOOLS_VIEW {
|
||||||
|
|
||||||
script:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
|
def args2 = task.ext.args2 ?: ''
|
||||||
def prefix = task.ext.prefix ?: "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
def reference = fasta ? "--reference ${fasta}" : ""
|
def reference = fasta ? "--reference ${fasta}" : ""
|
||||||
def readnames = qname ? "--qname-file ${qname}": ""
|
def readnames = qname ? "--qname-file ${qname}": ""
|
||||||
|
@ -42,7 +43,8 @@ process SAMTOOLS_VIEW {
|
||||||
${readnames} \\
|
${readnames} \\
|
||||||
$args \\
|
$args \\
|
||||||
-o ${prefix}.${file_type} \\
|
-o ${prefix}.${file_type} \\
|
||||||
$input
|
$input \\
|
||||||
|
$args2
|
||||||
|
|
||||||
cat <<-END_VERSIONS > versions.yml
|
cat <<-END_VERSIONS > versions.yml
|
||||||
"${task.process}":
|
"${task.process}":
|
||||||
|
|
2
modules/nf-core/untar/main.nf
generated
2
modules/nf-core/untar/main.nf
generated
|
@ -2,7 +2,7 @@ process UNTAR {
|
||||||
tag "$archive"
|
tag "$archive"
|
||||||
label 'process_single'
|
label 'process_single'
|
||||||
|
|
||||||
conda (params.enable_conda ? "conda-forge::sed=4.7" : null)
|
conda "conda-forge::sed=4.7"
|
||||||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||||
'https://depot.galaxyproject.org/singularity/ubuntu:20.04' :
|
'https://depot.galaxyproject.org/singularity/ubuntu:20.04' :
|
||||||
'ubuntu:20.04' }"
|
'ubuntu:20.04' }"
|
||||||
|
|
|
@ -39,7 +39,6 @@ params {
|
||||||
validate_params = true
|
validate_params = true
|
||||||
show_hidden_params = false
|
show_hidden_params = false
|
||||||
schema_ignore_params = 'genomes,fasta'
|
schema_ignore_params = 'genomes,fasta'
|
||||||
enable_conda = false
|
|
||||||
|
|
||||||
|
|
||||||
// Config options
|
// Config options
|
||||||
|
@ -182,7 +181,6 @@ try {
|
||||||
profiles {
|
profiles {
|
||||||
debug { process.beforeScript = 'echo $HOSTNAME' }
|
debug { process.beforeScript = 'echo $HOSTNAME' }
|
||||||
conda {
|
conda {
|
||||||
params.enable_conda = true
|
|
||||||
conda.enabled = true
|
conda.enabled = true
|
||||||
docker.enabled = false
|
docker.enabled = false
|
||||||
singularity.enabled = false
|
singularity.enabled = false
|
||||||
|
@ -191,7 +189,6 @@ profiles {
|
||||||
charliecloud.enabled = false
|
charliecloud.enabled = false
|
||||||
}
|
}
|
||||||
mamba {
|
mamba {
|
||||||
params.enable_conda = true
|
|
||||||
conda.enabled = true
|
conda.enabled = true
|
||||||
conda.useMamba = true
|
conda.useMamba = true
|
||||||
docker.enabled = false
|
docker.enabled = false
|
||||||
|
|
|
@ -696,12 +696,6 @@
|
||||||
"description": "Show all params when using `--help`",
|
"description": "Show all params when using `--help`",
|
||||||
"hidden": true,
|
"hidden": true,
|
||||||
"help_text": "By default, parameters set as _hidden_ in the schema are not shown on the command line when a user runs with `--help`. Specifying this option will tell the pipeline to show all parameters."
|
"help_text": "By default, parameters set as _hidden_ in the schema are not shown on the command line when a user runs with `--help`. Specifying this option will tell the pipeline to show all parameters."
|
||||||
},
|
|
||||||
"enable_conda": {
|
|
||||||
"type": "boolean",
|
|
||||||
"description": "Run this workflow with Conda. You can also use '-profile conda' instead of providing this parameter.",
|
|
||||||
"hidden": true,
|
|
||||||
"fa_icon": "fas fa-bacon"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
// Check input samplesheet and get read channels
|
// Check input samplesheet and get read channels
|
||||||
//
|
//
|
||||||
|
|
||||||
include { UNTAR } from '../../modules/nf-core/untar/main'
|
include { UNTAR } from '../../modules/nf-core/untar/main'
|
||||||
|
|
||||||
workflow DB_CHECK {
|
workflow DB_CHECK {
|
||||||
take:
|
take:
|
||||||
|
@ -10,6 +10,8 @@ workflow DB_CHECK {
|
||||||
|
|
||||||
main:
|
main:
|
||||||
ch_versions = Channel.empty()
|
ch_versions = Channel.empty()
|
||||||
|
ch_dbs_for_untar = Channel.empty()
|
||||||
|
ch_final_dbs = Channel.empty()
|
||||||
|
|
||||||
// special check to check _between_ rows, for which we must group rows together
|
// special check to check _between_ rows, for which we must group rows together
|
||||||
// note: this will run in parallel to within-row validity, but we can assume this will run faster thus will fail first
|
// note: this will run in parallel to within-row validity, but we can assume this will run faster thus will fail first
|
||||||
|
@ -37,11 +39,11 @@ workflow DB_CHECK {
|
||||||
skip: true
|
skip: true
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO Filter to only run UNTAR on DBs of tools actually using?
|
//Filter the channel to run untar on DBs of tools actually using
|
||||||
// TODO make optional whether to save
|
ch_input_untar = ch_dbs_for_untar.untar.dump()
|
||||||
UNTAR ( ch_dbs_for_untar.untar )
|
.filter { params.run_kraken2 && it[0]['tool'] == 'kraken2' || params.run_centrifuge && it[0]['tool'] == 'centrifuge' || params.run_bracken && it[0]['tool'] == 'bracken' || params.run_kaiju && it[0]['tool'] == 'kaiju' || params.run_krakenuniq && it [0]['tool'] == 'krakenuniq' || params.run_malt && it[0]['tool'] == 'malt' || params.run_metaphlan3 && it[0]['tool'] == 'metaphlan3' }
|
||||||
|
UNTAR (ch_input_untar)
|
||||||
ch_versions = ch_versions.mix(UNTAR.out.versions.first())
|
ch_versions = ch_versions.mix(UNTAR.out.versions.first())
|
||||||
|
|
||||||
ch_final_dbs = ch_dbs_for_untar.skip.mix( UNTAR.out.untar )
|
ch_final_dbs = ch_dbs_for_untar.skip.mix( UNTAR.out.untar )
|
||||||
|
|
||||||
emit:
|
emit:
|
||||||
|
|
|
@ -19,7 +19,7 @@ workflow SHORTREAD_HOSTREMOVAL {
|
||||||
ch_multiqc_files = Channel.empty()
|
ch_multiqc_files = Channel.empty()
|
||||||
|
|
||||||
if ( !params.shortread_hostremoval_index ) {
|
if ( !params.shortread_hostremoval_index ) {
|
||||||
ch_bowtie2_index = BOWTIE2_BUILD ( reference ).index
|
ch_bowtie2_index = BOWTIE2_BUILD ( [ [], reference ] ).index
|
||||||
ch_versions = ch_versions.mix( BOWTIE2_BUILD.out.versions )
|
ch_versions = ch_versions.mix( BOWTIE2_BUILD.out.versions )
|
||||||
} else {
|
} else {
|
||||||
ch_bowtie2_index = index.first()
|
ch_bowtie2_index = index.first()
|
||||||
|
|
|
@ -11,9 +11,12 @@ WorkflowTaxprofiler.initialise(params, log)
|
||||||
|
|
||||||
// TODO nf-core: Add all file path parameters for the pipeline to the list below
|
// TODO nf-core: Add all file path parameters for the pipeline to the list below
|
||||||
// Check input path parameters to see if they exist
|
// Check input path parameters to see if they exist
|
||||||
def checkPathParamList = [ params.input, params.databases, params.hostremoval_reference,
|
def checkPathParamList = [ params.input, params.genome, params.databases,
|
||||||
params.shortread_hostremoval_index, params.multiqc_config,
|
params.outdir, params.longread_hostremoval_index,
|
||||||
params.shortread_qc_adapterlist
|
params.hostremoval_reference, params.shortread_hostremoval_index,
|
||||||
|
params.multiqc_config, params.shortread_qc_adapterlist,
|
||||||
|
params.krona_taxonomy_directory,
|
||||||
|
params.multiqc_logo, params.multiqc_methods_description
|
||||||
]
|
]
|
||||||
for (param in checkPathParamList) { if (param) { file(param, checkIfExists: true) } }
|
for (param in checkPathParamList) { if (param) { file(param, checkIfExists: true) } }
|
||||||
|
|
||||||
|
@ -250,7 +253,7 @@ workflow TAXPROFILER {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
CUSTOM_DUMPSOFTWAREVERSIONS (
|
CUSTOM_DUMPSOFTWAREVERSIONS (
|
||||||
ch_versions.unique{ it.text }.collectFile(name: 'collated_versions.yml')
|
ch_versions.unique().collectFile(name: 'collated_versions.yml')
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue