-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #339 from sanger-tol/dp24_module_update_3
Dp24 module update 3
- Loading branch information
Showing
40 changed files
with
1,630 additions
and
374 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -316,7 +316,7 @@ process { | |
} | ||
|
||
withName: "BUSCO_BUSCO" { | ||
ext.args = "--offline" | ||
ext.args = "--offline --metaeuk" | ||
} | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 10 additions & 15 deletions
25
modules/local/chunkfasta.nf → modules/local/seqkit/split/main.nf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,43 @@ | ||
process CHUNKFASTA { | ||
process SEQKIT_SPLIT { | ||
tag "${meta.id}" | ||
label 'process_low' | ||
|
||
conda "conda-forge::pyfasta=0.5.2-1" | ||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? | ||
'https://depot.galaxyproject.org/singularity/pyfasta:0.5.2--py_1' : | ||
'biocontainers/pyfasta:0.5.2--py_1' }" | ||
'https://depot.galaxyproject.org/singularity/seqkit:2.9.0--h9ee0642_0' : | ||
'biocontainers/seqkit:2.9.0--h9ee0642_0' }" | ||
|
||
input: | ||
tuple val(meta), path('input.fasta') | ||
val(number_of_chunks) | ||
|
||
output: | ||
tuple val(meta), path('*.fasta'), emit: fasta | ||
path "versions.yml" , emit: versions | ||
tuple val(meta), path('*.fa'), emit: fasta | ||
path "versions.yml", emit: versions | ||
|
||
script: | ||
def VERSION = '0.5.2' // Tool does not report version | ||
// This should be abstracted outside of the container to | ||
// stop it spinning up in the first place, | ||
// however dsl2 can't do comparisons with channels which makes it harder | ||
""" | ||
if [ $number_of_chunks -le 1 ]; then | ||
mv input.fasta ${meta.id}_whole.fasta | ||
mv input.fasta ${meta.id}_whole.fa | ||
else | ||
pyfasta split -n $number_of_chunks input.fasta | ||
seqkit split input.fasta -p $number_of_chunks -O ./ | ||
fi | ||
cat <<-END_VERSIONS > versions.yml | ||
"${task.process}": | ||
python: \$(python --version | sed 's/Python //g') | ||
pyfasta: $VERSION | ||
seqkit: \$(seqkit version | sed -e "s/seqkit v//g") | ||
END_VERSIONS | ||
""" | ||
|
||
stub: | ||
def VERSION = '0.5.2' // Tool does not report version | ||
""" | ||
touch ${meta.id}.fa | ||
touch ${prefix}.fa | ||
cat <<-END_VERSIONS > versions.yml | ||
"${task.process}": | ||
python: \$(python --version | sed 's/Python //g') | ||
pyfasta: $VERSION | ||
seqkit: \$(seqkit version | sed -e "s/seqkit v//g") | ||
END_VERSIONS | ||
""" | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.