@@ -1090,7 +1090,7 @@ process sniffles {
10901090 publishDir " $outdir /$family_id /$outdir2 /$sample_id " , mode: ' copy' , overwrite: true , saveAs: { filename -> " $sample_id . $ref_name . $sv_caller . $filename " }, pattern: ' sv.phased.vcf.gz*'
10911091
10921092 input:
1093- tuple val(sample_id), val(family_id), path(haplotagged_bam), path(haplotagged_bam_index), val(family_position), val(regions_of_interest)
1093+ tuple val(sample_id), val(family_id), path(haplotagged_bam), path(haplotagged_bam_index), val(family_position)
10941094 val ref
10951095 val ref_index
10961096 val tandem_repeat
@@ -1104,8 +1104,6 @@ process sniffles {
11041104 tuple val(sample_id), val(family_id), val(family_position), path(" ${ family_position} .sv.phased.vcf.gz" ), path(" ${ family_position} .sorted.haplotagged.bam" )
11051105
11061106 script:
1107- // define an optional string to pass regions of interest bed file
1108- def regions_of_interest_optional = file(regions_of_interest). name != ' NONE' ? " --regions $regions_of_interest " : ' '
11091107 // define a string to optionally pass tandem repeat bed file
11101108 def tandem_repeat_optional = file(tandem_repeat). name != ' NONE' ? " --tandem-repeats $tandem_repeat " : ' '
11111109 """
@@ -1118,7 +1116,7 @@ process sniffles {
11181116 --vcf sv.phased.vcf.gz \
11191117 --output-rnames \
11201118 --minsvlen 50 \
1121- --phase $tandem_repeat_optional $r egions_of_interest_optional
1119+ --phase $tandem_repeat_optional
11221120 # tag vcf and bam with family_position for downstream jasmine
11231121 ln -s sv.phased.vcf.gz ${ family_position} .sv.phased.vcf.gz
11241122 ln -s sorted.haplotagged.bam ${ family_position} .sorted.haplotagged.bam
@@ -1139,7 +1137,7 @@ process cutesv {
11391137 publishDir " $outdir /$family_id /$outdir2 /$sample_id " , mode: ' copy' , overwrite: true , saveAs: { filename -> " $sample_id . $ref_name . $sv_caller . $filename " }, pattern: ' sv.vcf.gz*'
11401138
11411139 input:
1142- tuple val(sample_id), val(family_id), path(haplotagged_bam), path(haplotagged_bam_index), val(data_type), val(family_position), val(regions_of_interest)
1140+ tuple val(sample_id), val(family_id), path(haplotagged_bam), path(haplotagged_bam_index), val(data_type), val(family_position)
11431141 val ref
11441142 val ref_index
11451143 val tandem_repeat
@@ -1153,8 +1151,6 @@ process cutesv {
11531151 tuple val(sample_id), val(family_id), val(family_position), path(" ${ family_position} .sv.vcf.gz" ), path(" ${ family_position} .sorted.haplotagged.bam" )
11541152
11551153 script:
1156- // define an optional string to pass regions of interest bed file
1157- def regions_of_interest_optional = file(regions_of_interest). name != ' NONE' ? " -include_bed $regions_of_interest " : ' '
11581154 // define platform specific settings
11591155 if ( data_type == ' ont' ) {
11601156 settings = ' --max_cluster_bias_INS 100 --diff_ratio_merging_INS 0.3 --max_cluster_bias_DEL 100 --diff_ratio_merging_DEL 0.3'
@@ -1174,7 +1170,7 @@ process cutesv {
11741170 --genotype \
11751171 --report_readid \
11761172 --min_size 50 \
1177- $settings $r egions_of_interest_optional
1173+ $settings
11781174 # compress and index vcf
11791175 bgzip \
11801176 -@ ${ task.cpus} \
@@ -1933,10 +1929,10 @@ workflow {
19331929 }
19341930 // sv calling
19351931 if ( sv_caller == ' sniffles' | sv_caller == ' both' ) {
1936- (sv_vcf_sniffles, sv_vcf_sniffles_indexed, sv_vcf_haplotagged_bam_fam_sniffles) = sniffles(haplotagged_bam. join(family_position_tuple, by : [0 ,1 ]). join(regions_of_interest_tuple, by : [ 0 , 1 ]) , ref, ref_index, tandem_repeat, outdir, outdir2, ref_name)
1932+ (sv_vcf_sniffles, sv_vcf_sniffles_indexed, sv_vcf_haplotagged_bam_fam_sniffles) = sniffles(haplotagged_bam. join(family_position_tuple, by : [0 ,1 ]), ref, ref_index, tandem_repeat, outdir, outdir2, ref_name)
19371933 }
19381934 if ( sv_caller == ' cutesv' | sv_caller == ' both' ) {
1939- (sv_vcf_cutesv, sv_vcf_cutesv_indexed, sv_vcf_haplotagged_bam_fam_cutesv) = cutesv(haplotagged_bam. join(data_type_tuple, by : [0 ,1 ]). join(family_position_tuple, by : [0 ,1 ]). join(regions_of_interest_tuple, by : [ 0 , 1 ]) , ref, ref_index, tandem_repeat, outdir, outdir2, ref_name)
1935+ (sv_vcf_cutesv, sv_vcf_cutesv_indexed, sv_vcf_haplotagged_bam_fam_cutesv) = cutesv(haplotagged_bam. join(data_type_tuple, by : [0 ,1 ]). join(family_position_tuple, by : [0 ,1 ]), ref, ref_index, tandem_repeat, outdir, outdir2, ref_name)
19401936 }
19411937 }
19421938 if ( in_data_format == ' snv_vcf' ) {
0 commit comments