mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 02:58:17 +00:00
Patch fix artic/minion and ivar/variants modules (#1326)
This commit is contained in:
parent
d0a1cbb703
commit
cab399507b
6 changed files with 27 additions and 14 deletions
|
@ -13,7 +13,8 @@ process ARTIC_MINION {
|
||||||
path sequencing_summary
|
path sequencing_summary
|
||||||
path ("primer-schemes/${scheme}/V${scheme_version}/${scheme}.reference.fasta")
|
path ("primer-schemes/${scheme}/V${scheme_version}/${scheme}.reference.fasta")
|
||||||
path ("primer-schemes/${scheme}/V${scheme_version}/${scheme}.scheme.bed")
|
path ("primer-schemes/${scheme}/V${scheme_version}/${scheme}.scheme.bed")
|
||||||
path medaka_model
|
path medaka_model_file
|
||||||
|
val medaka_model_string
|
||||||
val scheme
|
val scheme
|
||||||
val scheme_version
|
val scheme_version
|
||||||
|
|
||||||
|
@ -44,7 +45,7 @@ process ARTIC_MINION {
|
||||||
if (args.tokenize().contains('--medaka')) {
|
if (args.tokenize().contains('--medaka')) {
|
||||||
fast5 = ""
|
fast5 = ""
|
||||||
summary = ""
|
summary = ""
|
||||||
model = file(medaka_model).exists() ? "--medaka-model ./$medaka_model" : "--medaka-model $medaka_model"
|
model = medaka_model_file ? "--medaka-model ./$medaka_model_file" : "--medaka-model $medaka_model_string"
|
||||||
}
|
}
|
||||||
def hd5_plugin_path = task.ext.hd5_plugin_path ? "export HDF5_PLUGIN_PATH=" + task.ext.hd5_plugin_path : "export HDF5_PLUGIN_PATH=/usr/local/lib/python3.6/site-packages/ont_fast5_api/vbz_plugin"
|
def hd5_plugin_path = task.ext.hd5_plugin_path ? "export HDF5_PLUGIN_PATH=" + task.ext.hd5_plugin_path : "export HDF5_PLUGIN_PATH=/usr/local/lib/python3.6/site-packages/ont_fast5_api/vbz_plugin"
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -42,11 +42,16 @@ input:
|
||||||
bed files containing coordinates of each primer in the scheme,
|
bed files containing coordinates of each primer in the scheme,
|
||||||
relative to the reference genome
|
relative to the reference genome
|
||||||
pattern: "*.{scheme.bed}"
|
pattern: "*.{scheme.bed}"
|
||||||
- medaka_model:
|
- medaka_model_file:
|
||||||
type: file
|
type: file
|
||||||
description: |
|
description: |
|
||||||
Medaka model to use (if option --medaka is set)
|
Medaka model file to use (if option --medaka is set)
|
||||||
pattern: "*.*"
|
pattern: "*.hdf5"
|
||||||
|
- medaka_model_string:
|
||||||
|
type: value
|
||||||
|
description: |
|
||||||
|
Medaka model string to use (if option --medaka is set)
|
||||||
|
pattern: "*"
|
||||||
- scheme:
|
- scheme:
|
||||||
type: value
|
type: value
|
||||||
description: Name of the primer scheme
|
description: Name of the primer scheme
|
||||||
|
|
|
@ -10,6 +10,7 @@ process IVAR_VARIANTS {
|
||||||
input:
|
input:
|
||||||
tuple val(meta), path(bam)
|
tuple val(meta), path(bam)
|
||||||
path fasta
|
path fasta
|
||||||
|
path fai
|
||||||
path gff
|
path gff
|
||||||
val save_mpileup
|
val save_mpileup
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,10 @@ input:
|
||||||
type: file
|
type: file
|
||||||
description: The reference sequence used for mapping and generating the BAM file
|
description: The reference sequence used for mapping and generating the BAM file
|
||||||
pattern: "*.fa"
|
pattern: "*.fa"
|
||||||
|
- fai:
|
||||||
|
type: file
|
||||||
|
description: The index for the reference sequence used for mapping and generating the BAM file
|
||||||
|
pattern: "*.fai"
|
||||||
- gff:
|
- gff:
|
||||||
type: file
|
type: file
|
||||||
description: A GFF file in the GFF3 format can be supplied to specify coordinates of open reading frames (ORFs). In absence of GFF file, amino acid translation will not be done.
|
description: A GFF file in the GFF3 format can be supplied to specify coordinates of open reading frames (ORFs). In absence of GFF file, amino acid translation will not be done.
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
nextflow.enable.dsl = 2
|
nextflow.enable.dsl = 2
|
||||||
|
|
||||||
include { UNTAR } from '../../../../modules/untar/main.nf'
|
include { UNTAR } from '../../../../modules/untar/main.nf'
|
||||||
include { ARTIC_MINION } from '../../../../modules/artic/minion/main.nf'
|
include { ARTIC_MINION } from '../../../../modules/artic/minion/main.nf'
|
||||||
|
|
||||||
workflow test_artic_minion {
|
workflow test_artic_minion {
|
||||||
|
@ -15,9 +15,8 @@ workflow test_artic_minion {
|
||||||
sequencing_summary = file(params.test_data['sarscov2']['nanopore']['test_sequencing_summary'], checkIfExists: true)
|
sequencing_summary = file(params.test_data['sarscov2']['nanopore']['test_sequencing_summary'], checkIfExists: true)
|
||||||
fasta = file('https://github.com/artic-network/primer-schemes/raw/master/nCoV-2019/V3/nCoV-2019.reference.fasta', checkIfExists: true)
|
fasta = file('https://github.com/artic-network/primer-schemes/raw/master/nCoV-2019/V3/nCoV-2019.reference.fasta', checkIfExists: true)
|
||||||
bed = file('https://github.com/artic-network/primer-schemes/raw/master/nCoV-2019/V3/nCoV-2019.primer.bed', checkIfExists: true)
|
bed = file('https://github.com/artic-network/primer-schemes/raw/master/nCoV-2019/V3/nCoV-2019.primer.bed', checkIfExists: true)
|
||||||
dummy_file = []
|
|
||||||
|
|
||||||
fast5_dir = UNTAR ( fast5_tar ).untar
|
fast5_dir = UNTAR ( fast5_tar ).untar
|
||||||
|
|
||||||
ARTIC_MINION ( input, fast5_dir, sequencing_summary, fasta, bed, dummy_file, 'nCoV-2019', '3')
|
ARTIC_MINION ( input, fast5_dir, sequencing_summary, fasta, bed, [], '', 'nCoV-2019', '3')
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,10 +11,11 @@ workflow test_ivar_variants_no_gff_no_mpileup {
|
||||||
file(params.test_data['sarscov2']['illumina']['test_paired_end_sorted_bam'], checkIfExists: true)
|
file(params.test_data['sarscov2']['illumina']['test_paired_end_sorted_bam'], checkIfExists: true)
|
||||||
]
|
]
|
||||||
fasta = file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true)
|
fasta = file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true)
|
||||||
gff = []
|
fai = file(params.test_data['sarscov2']['genome']['genome_fasta_fai'], checkIfExists: true)
|
||||||
|
gff = []
|
||||||
save_mpileup = false
|
save_mpileup = false
|
||||||
|
|
||||||
IVAR_VARIANTS ( input, fasta, gff, save_mpileup )
|
IVAR_VARIANTS ( input, fasta, fai, gff, save_mpileup )
|
||||||
}
|
}
|
||||||
|
|
||||||
workflow test_ivar_variants_no_gff_with_mpileup {
|
workflow test_ivar_variants_no_gff_with_mpileup {
|
||||||
|
@ -24,10 +25,11 @@ workflow test_ivar_variants_no_gff_with_mpileup {
|
||||||
file(params.test_data['sarscov2']['illumina']['test_paired_end_sorted_bam'], checkIfExists: true)
|
file(params.test_data['sarscov2']['illumina']['test_paired_end_sorted_bam'], checkIfExists: true)
|
||||||
]
|
]
|
||||||
fasta = file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true)
|
fasta = file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true)
|
||||||
gff = []
|
fai = file(params.test_data['sarscov2']['genome']['genome_fasta_fai'], checkIfExists: true)
|
||||||
|
gff = []
|
||||||
save_mpileup = true
|
save_mpileup = true
|
||||||
|
|
||||||
IVAR_VARIANTS ( input, fasta, gff, save_mpileup )
|
IVAR_VARIANTS ( input, fasta, fai, gff, save_mpileup )
|
||||||
}
|
}
|
||||||
|
|
||||||
workflow test_ivar_variants_with_gff_with_mpileup {
|
workflow test_ivar_variants_with_gff_with_mpileup {
|
||||||
|
@ -37,8 +39,9 @@ workflow test_ivar_variants_with_gff_with_mpileup {
|
||||||
file(params.test_data['sarscov2']['illumina']['test_paired_end_sorted_bam'], checkIfExists: true)
|
file(params.test_data['sarscov2']['illumina']['test_paired_end_sorted_bam'], checkIfExists: true)
|
||||||
]
|
]
|
||||||
fasta = file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true)
|
fasta = file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true)
|
||||||
gff = file(params.test_data['sarscov2']['genome']['genome_gff3'], checkIfExists: true)
|
fai = file(params.test_data['sarscov2']['genome']['genome_fasta_fai'], checkIfExists: true)
|
||||||
|
gff = file(params.test_data['sarscov2']['genome']['genome_gff3'], checkIfExists: true)
|
||||||
save_mpileup = true
|
save_mpileup = true
|
||||||
|
|
||||||
IVAR_VARIANTS ( input, fasta, gff, save_mpileup )
|
IVAR_VARIANTS ( input, fasta, fai, gff, save_mpileup )
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue