Skip to content
Snippets Groups Projects
Unverified Commit d8a29f60 authored by Laurent Modolo's avatar Laurent Modolo
Browse files

SNP_calling.nf: fix Mutect2 variables

parent 7619538a
No related branches found
No related tags found
No related merge requests found
...@@ -256,32 +256,32 @@ indexed_bam_files_norm = index_bam_files_norm ...@@ -256,32 +256,32 @@ indexed_bam_files_norm = index_bam_files_norm
indexed_bam_files_tumor = index_bam_files_tumor indexed_bam_files_tumor = index_bam_files_tumor
.filter{ "tumor_sample" == it[0] } .filter{ "tumor_sample" == it[0] }
/*
process HaplotypeCaller { process HaplotypeCaller {
tag "$file_id" tag "$file_id_norm"
cpus 4 cpus 10
publishDir "results/SNP/vcf/", mode: 'copy' publishDir "results/SNP/vcf/", mode: 'copy'
input: input:
set file_id_norm, file(bam_norm) from haplotypecaller_bam_files_norm.collect() set file_id_norm, file(bam_norm) from haplotypecaller_bam_files_norm
set file_ididx_norm, file(bamidx_norm) from indexed_bam_files_norm.collect() set file_ididx_norm, file(bamidx_norm) from indexed_bam_files_norm
set file_id_tumor, file(bam_tumor) from haplotypecaller_bam_files_tumor.collect() set file_id_tumor, file(bam_tumor) from haplotypecaller_bam_files_tumor
set file_ididx_tumor, file(bamidx_tumor) from indexed_bam_files_tumor.collect() set file_ididx_tumor, file(bamidx_tumor) from indexed_bam_files_tumor
set genome_id, file(fasta) from haplo_fasta_file.collect() set genome_id, file(fasta) from haplo_fasta_file
set genome2_idx, file(fasta2idx) from indexed2_fasta_file.collect() set genome2_idx, file(fasta2idx) from indexed2_fasta_file
set genome3_idx, file(fasta3idx) from indexed3_fasta_file.collect() set genome3_idx, file(fasta3idx) from indexed3_fasta_file
output: output:
set file_id, "*.vcf" into vcf_files set file_id_norm, "*.vcf" into vcf_files
set file_id, "*.bam" into realigned_bams_files set file_id_norm, "*.bam" into realigned_bams_files
set "*_mutect2_report.txt" into mutect2_report
script: script:
""" """
gatk Mutect2 --native-pair-hmm-threads ${task.cpus} -R ${fasta} \ gatk Mutect2 --native-pair-hmm-threads ${task.cpus} -R ${fasta} \
-I ${bam_tumor} -tumor ${file_id_tumor} \ -I ${bam_tumor} -tumor ${file_id_tumor} \
-I ${bam_norm} -normal ${file_id_norm} \ -I ${bam_norm} -normal ${file_id_norm} \
-O ${file_id}_raw_calls.g.vcf \ -O ${file_id_norm}_raw_calls.g.vcf \
-bamout ${file_id}_realigned.bam -bamout ${file_id_norm}_realigned.bam 2> ${file_id_norm}_mutect2_report.txt
""" """
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment