|
|
|
|
|
|
|
|
if (defined(normal_bams) && size(normal_bams) > 0) { |
|
|
if (defined(normal_bams) && size(normal_bams) > 0) { |
|
|
call cnvkit_multi.cnvkit_multi as cnvkit_multi{ |
|
|
call cnvkit_multi.cnvkit_multi as cnvkit_multi{ |
|
|
input: |
|
|
input: |
|
|
sample_id=sample_id, |
|
|
|
|
|
ref_dir=ref_fasta_cnvkit, |
|
|
|
|
|
fasta=ref_fasta, |
|
|
|
|
|
ref_flat=ref_flat, |
|
|
|
|
|
Ploidy=Ploidy, |
|
|
|
|
|
bed_file=bed_file, |
|
|
|
|
|
tumor_bam=tumor_bam, |
|
|
|
|
|
tumor_bam_index=tumor_bam_bai, |
|
|
|
|
|
normal_bams = inputBams, |
|
|
|
|
|
normal_bam_indexs = inputBamIndexs, |
|
|
|
|
|
docker=docker_cnvkit, |
|
|
|
|
|
cluster_config=cluster_config, |
|
|
|
|
|
disk_size=disk_size |
|
|
|
|
|
} |
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
|
sample_id=sample_id, |
|
|
|
|
|
ref_dir=ref_fasta_cnvkit, |
|
|
|
|
|
fasta=ref_fasta, |
|
|
|
|
|
ref_flat=ref_flat, |
|
|
|
|
|
Ploidy=Ploidy, |
|
|
|
|
|
bed_file=bed_file, |
|
|
|
|
|
tumor_bam=tumor_bam, |
|
|
|
|
|
tumor_bam_index=tumor_bam_bai, |
|
|
|
|
|
normal_bams = inputBams, |
|
|
|
|
|
normal_bam_indexs = inputBamIndexs, |
|
|
|
|
|
docker=docker_cnvkit, |
|
|
|
|
|
cluster_config=cluster_config, |
|
|
|
|
|
disk_size=disk_size |
|
|
|
|
|
} |
|
|
|
|
|
}else{ |
|
|
call cnvkit.cnvkit as cnvkit{ |
|
|
call cnvkit.cnvkit as cnvkit{ |
|
|
input: |
|
|
input: |
|
|
sample_id=sample_id, |
|
|
sample_id=sample_id, |