-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bambu 3.2.4 & bam inputs for DNA variant calling
- Loading branch information
Showing
6 changed files
with
123 additions
and
31 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
* ------------------------------------------------- | ||
* Nextflow config file for running tests | ||
* ------------------------------------------------- | ||
* Defines bundled input files and everything required | ||
* to run a fast and simple test. Use as follows: | ||
* nextflow run nf-core/nanoseq -profile test_nobc_nodx_vc,<docker/singularity> | ||
*/ | ||
|
||
params { | ||
config_profile_name = 'Test profile' | ||
config_profile_description = 'Minimal test dataset to check variant calling functions' | ||
|
||
// Limit resources so that this can run on Travis | ||
max_cpus = 2 | ||
max_memory = 6.GB | ||
max_time = 12.h | ||
|
||
// Input data to skip demultiplexing and variant call | ||
input = 'https://raw.githubusercontent.com/nf-core/test-datasets/refs/heads/nanoseq/3.2/samplesheet/samplesheet_nobc_nodx_noaln_vc.csv' | ||
fasta = 'https://raw.githubusercontent.com/nf-core/test-datasets/nanoseq/reference/hg19_KCMF1.fa' | ||
skip_basecalling = true | ||
protocol = 'DNA' | ||
skip_alignment = true | ||
skip_quantification = true | ||
skip_demultiplexing = true | ||
call_variants = true | ||
variant_caller = 'clair3' | ||
structural_variant_caller = 'sniffles' | ||
} |
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,29 @@ | ||
process BLUE_CRAB { | ||
tag "$meta.id" | ||
label 'process_medium' | ||
|
||
conda "bioconda::slow5tools==1.2.0" | ||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? | ||
'https://depot.galaxyproject.org/singularity/slow5tools:1.2.0--h56e2c18_1' : | ||
'quay.io/biocontainers/slow5tools:1.2.0--h56e2c18_1' }" | ||
|
||
input: | ||
tuple val(meta), path(genome), path(gtf), path(fastq), path(bam), path(bai), path(pod5) | ||
|
||
output: | ||
tuple val(meta), path(genome), path(gtf), path(fastq), path(bam), path(bai), path(blow5), emit: nanopolish_outputs | ||
path "versions.yml" , emit: versions | ||
|
||
when: | ||
task.ext.when == null || task.ext.when | ||
|
||
script: | ||
""" | ||
blue-crab p2s $pod5 -o $blow5 | ||
cat <<-END_VERSIONS > versions.yml | ||
"${task.process}": | ||
blue-crab: \$( blue-crab -V | tail -c 6 ) | ||
END_VERSIONS | ||
""" | ||
} |
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,27 @@ | ||
process DORADO { | ||
tag "$meta.id" | ||
label 'process_medium' | ||
|
||
container "modkit" | ||
|
||
input: | ||
tuple val(meta), path(mod_bam) | ||
|
||
output: | ||
tuple val(meta), path("*.bed") , emit: bedmethyl | ||
path "versions.yml" , emit: versions | ||
|
||
script: | ||
bedmethyl = "$meta.id" +".bed" | ||
""" | ||
modkit pileup $mod_bam $bedmethyl | ||
cat <<-END_VERSIONS > versions.yml | ||
"${task.process}": | ||
dorado: \$(echo \$(dorado --version 2>&1) | sed -r 's/.{81}//') | ||
END_VERSIONS | ||
gzip basecall.fastq | ||
""" | ||
} | ||
|
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