-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into Conditional-tidk-flags
- Loading branch information
Showing
37 changed files
with
2,537 additions
and
48 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
species,refseq,fasta,gff | ||
Vespula_vulgaris,GCF_905475345.1,, | ||
Vespa_velutina,GCF_912470025.1,, | ||
Apis_mellifera,GCF_003254395.2,, | ||
Osmia_bicornis,GCF_907164935.1,, | ||
species,refseq,fasta,gff,fastq | ||
Vespula_vulgaris,GCF_905475345.1,,, | ||
Vespa_velutina,GCF_912470025.1,,, | ||
Apis_mellifera,GCF_003254395.2,,, | ||
Osmia_bicornis,GCF_907164935.1,,, |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#!/usr/bin/python3 | ||
import pandas as pd | ||
import argparse | ||
|
||
|
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#!/usr/bin/python3 | ||
import pandas as pd | ||
import argparse | ||
import os | ||
|
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
Nextflow config file for running minimal tests | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
Defines input files and everything required to run a fast and simple pipeline test. | ||
|
||
Use as follows: | ||
nextflow run ecoflow/genomeqc -profile test,<docker/singularity> --outdir <OUTDIR> | ||
|
||
---------------------------------------------------------------------------------------- | ||
*/ | ||
|
||
params { | ||
config_profile_name = 'Test profile' | ||
config_profile_description = 'Minimal test dataset to check pipeline function' | ||
|
||
// Limit resources so that this can run on GitHub Actions | ||
max_cpus = 2 | ||
max_memory = '6.GB' | ||
max_time = '6.h' | ||
|
||
// Input data | ||
// TODO nf-core: Specify the paths to your test data on nf-core/test-datasets | ||
// TODO nf-core: Give any required params for the test so that command line flags are not needed | ||
input = params.pipelines_testdata_base_path + 'genomeqc/samplesheet/input_bacteria_nofastq.csv' | ||
|
||
// Don't try to skip merqury, but since you don't have reads, it shouldn't get run anyway | ||
merqury_skip = false | ||
|
||
} |
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
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
channels: | ||
- conda-forge | ||
- bioconda | ||
dependencies: | ||
- bioconda::merqury=1.3 |
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 |
---|---|---|
@@ -0,0 +1,87 @@ | ||
process MERQURY_MERQURY { | ||
tag "$meta.id" | ||
label 'process_low' | ||
|
||
// WARN: Version information not provided by tool on CLI. Please update this string when bumping container versions. | ||
conda "${moduleDir}/environment.yml" | ||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? | ||
'https://depot.galaxyproject.org/singularity/merqury:1.3--hdfd78af_1': | ||
'biocontainers/merqury:1.3--hdfd78af_1' }" | ||
|
||
input: | ||
tuple val(meta), path(meryl_db), path(assembly) | ||
|
||
output: | ||
tuple val(meta), path("*_only.bed") , emit: assembly_only_kmers_bed | ||
tuple val(meta), path("*_only.wig") , emit: assembly_only_kmers_wig | ||
tuple val(meta), path("*.completeness.stats"), emit: stats | ||
tuple val(meta), path("*.dist_only.hist") , emit: dist_hist | ||
tuple val(meta), path("*.spectra-cn.fl.png") , emit: spectra_cn_fl_png | ||
tuple val(meta), path("*.spectra-cn.hist") , emit: spectra_cn_hist | ||
tuple val(meta), path("*.spectra-cn.ln.png") , emit: spectra_cn_ln_png | ||
tuple val(meta), path("*.spectra-cn.st.png") , emit: spectra_cn_st_png | ||
tuple val(meta), path("*.spectra-asm.fl.png"), emit: spectra_asm_fl_png | ||
tuple val(meta), path("*.spectra-asm.hist") , emit: spectra_asm_hist | ||
tuple val(meta), path("*.spectra-asm.ln.png"), emit: spectra_asm_ln_png | ||
tuple val(meta), path("*.spectra-asm.st.png"), emit: spectra_asm_st_png | ||
tuple val(meta), path("${prefix}.qv") , emit: assembly_qv | ||
tuple val(meta), path("${prefix}.*.qv") , emit: scaffold_qv | ||
tuple val(meta), path("*.hist.ploidy") , emit: read_ploidy | ||
tuple val(meta), path("*.hapmers.blob.png") , emit: hapmers_blob_png , optional: true | ||
path "versions.yml" , emit: versions | ||
|
||
when: | ||
task.ext.when == null || task.ext.when | ||
|
||
script: | ||
// def args = task.ext.args ?: '' | ||
prefix = task.ext.prefix ?: "${meta.id}" | ||
def VERSION = 1.3 // WARN: Version information not provided by tool on CLI. Please update this string when bumping container versions. | ||
""" | ||
# Nextflow changes the container --entrypoint to /bin/bash (container default entrypoint: /usr/local/env-execute) | ||
# Check for container variable initialisation script and source it. | ||
if [ -f "/usr/local/env-activate.sh" ]; then | ||
set +u # Otherwise, errors out because of various unbound variables | ||
. "/usr/local/env-activate.sh" | ||
set -u | ||
fi | ||
# limit meryl to use the assigned number of cores. | ||
export OMP_NUM_THREADS=$task.cpus | ||
merqury.sh \\ | ||
$meryl_db \\ | ||
$assembly \\ | ||
$prefix | ||
cat <<-END_VERSIONS > versions.yml | ||
"${task.process}": | ||
merqury: $VERSION | ||
END_VERSIONS | ||
""" | ||
|
||
stub: | ||
prefix = task.ext.prefix ?: "${meta.id}" | ||
def VERSION = 1.3 // WARN: Version information not provided by tool on CLI. Please update this string when bumping container versions. | ||
""" | ||
touch ${prefix}_only.bed | ||
touch ${prefix}_only.wig | ||
touch ${prefix}.completeness.stats | ||
touch ${prefix}.dist_only.hist | ||
touch ${prefix}.spectra-cn.fl.png | ||
touch ${prefix}.spectra-cn.hist | ||
touch ${prefix}.spectra-cn.ln.png | ||
touch ${prefix}.spectra-cn.st.png | ||
touch ${prefix}.spectra-asm.fl.png | ||
touch ${prefix}.spectra-asm.hist | ||
touch ${prefix}.spectra-asm.ln.png | ||
touch ${prefix}.spectra-asm.st.png | ||
touch ${prefix}.qv | ||
touch ${prefix}.${prefix}.qv | ||
touch ${prefix}.hist.ploidy | ||
cat <<-END_VERSIONS > versions.yml | ||
"${task.process}": | ||
merqury: $VERSION | ||
END_VERSIONS | ||
""" | ||
} |
Oops, something went wrong.