mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-15 06:03:10 +00:00
83b05a8dc0
* add qname feature to samtools_view * update tests * Update modules/samtools/view/meta.yml Co-authored-by: James A. Fellows Yates <jfy133@gmail.com> * Update modules/samtools/view/meta.yml Co-authored-by: James A. Fellows Yates <jfy133@gmail.com> * added filter tests Co-authored-by: James A. Fellows Yates <jfy133@gmail.com>
65 lines
2.3 KiB
Text
65 lines
2.3 KiB
Text
#!/usr/bin/env nextflow
|
|
|
|
nextflow.enable.dsl = 2
|
|
|
|
include { SAMTOOLS_VIEW } from '../../../../modules/samtools/view/main.nf'
|
|
|
|
workflow test_samtools_view {
|
|
input = [ [ id:'test', single_end:false ], // meta map
|
|
file(params.test_data['sarscov2']['illumina']['test_paired_end_bam'], checkIfExists: true),
|
|
[]
|
|
]
|
|
|
|
SAMTOOLS_VIEW ( input, [], [] )
|
|
}
|
|
|
|
workflow test_samtools_view_cram {
|
|
input = [ [ id: 'test' ], // meta map
|
|
file(params.test_data['homo_sapiens']['illumina']['test_paired_end_sorted_cram'], checkIfExists: true),
|
|
file(params.test_data['homo_sapiens']['illumina']['test_paired_end_sorted_cram_crai'], checkIfExists: true)
|
|
]
|
|
fasta = file(params.test_data['homo_sapiens']['genome']['genome_fasta'], checkIfExists: true)
|
|
|
|
SAMTOOLS_VIEW ( input, fasta, [] )
|
|
}
|
|
|
|
workflow test_samtools_view_convert {
|
|
input = [ [ id: 'test' ], // meta map
|
|
file(params.test_data['homo_sapiens']['illumina']['test_paired_end_sorted_cram'], checkIfExists: true),
|
|
[]
|
|
]
|
|
fasta = file(params.test_data['homo_sapiens']['genome']['genome_fasta'], checkIfExists: true)
|
|
|
|
SAMTOOLS_VIEW ( input, fasta, [] )
|
|
}
|
|
|
|
workflow test_samtools_view_index {
|
|
input = [ [ id: 'test' ], // meta map
|
|
file(params.test_data['homo_sapiens']['illumina']['test_paired_end_sorted_cram'], checkIfExists: true),
|
|
[]
|
|
]
|
|
fasta = file(params.test_data['homo_sapiens']['genome']['genome_fasta'], checkIfExists: true)
|
|
|
|
SAMTOOLS_VIEW ( input, fasta, [] )
|
|
}
|
|
|
|
workflow test_samtools_view_filter {
|
|
input = [ [ id: 'test' ], // meta map
|
|
file(params.test_data['homo_sapiens']['illumina']['test_paired_end_sorted_cram'], checkIfExists: true),
|
|
[]
|
|
]
|
|
fasta = file(params.test_data['homo_sapiens']['genome']['genome_fasta'], checkIfExists: true)
|
|
|
|
qname = Channel.of("testN:2817", "testN:2814").collectFile(name: "readnames.list", newLine: true)
|
|
|
|
SAMTOOLS_VIEW ( input, fasta, qname )
|
|
}
|
|
|
|
workflow test_samtools_view_stubs {
|
|
input = [ [ id:'test', single_end:false ], // meta map
|
|
file(params.test_data['sarscov2']['illumina']['test_paired_end_bam'], checkIfExists: true),
|
|
[]
|
|
]
|
|
|
|
SAMTOOLS_VIEW ( input, [], [] )
|
|
}
|