|
1 | 1 | nextflow.enable.dsl=2 |
2 | 2 |
|
3 | 3 | // tag pipeface version |
4 | | -def pipeface_version = "0.9.3" |
| 4 | +def pipeface_version = "0.9.4" |
5 | 5 |
|
6 | 6 | // create dummy NONE file for optional pipeface inputs |
7 | 7 | new File("NONE").text = "Dummy file for optional pipeface inputs. Don't delete during a pipeline run unless you want a bad time.\n" |
@@ -2110,17 +2110,18 @@ workflow { |
2110 | 2110 | (joint_snp_indel_split_phased_vcf, joint_phased_read_list) = whatshap_phase_duo(joint_snp_indel_split_vcf_bam, ref, ref_index, outdir, outdir2, ref_name, snp_indel_caller) |
2111 | 2111 | } |
2112 | 2112 | if (mode == 'trio') { |
2113 | | - tmp = haplotagged_bam_fam.groupTuple(by: 2).transpose() |
| 2113 | + tmp = haplotagged_bam_fam.groupTuple(by: 1).transpose() |
2114 | 2114 | proband_bam = tmp.filter { tuple -> tuple[2].contains("proband") } |
2115 | 2115 | father_bam = tmp.filter { tuple -> tuple[2].contains("father") } |
2116 | 2116 | mother_bam = tmp.filter { tuple -> tuple[2].contains("mother") } |
2117 | 2117 | dt_commands = deeptrio_dry_run(proband_bam.join(data_type_tuple, by: [0,1]), father_bam.join(data_type_tuple, by: [0,1]), mother_bam.join(data_type_tuple, by: [0,1]), ref, ref_index) |
2118 | 2118 | dt_examples = deeptrio_make_examples(dt_commands, ref, ref_index) |
2119 | 2119 | dt_calls = deeptrio_call_variants(dt_examples.proband.mix(dt_examples.father, dt_examples.mother)) |
2120 | 2120 | snp_indel_gvcf_bam = deeptrio_postprocessing(dt_calls, ref, ref_index) |
2121 | | - proband_gvcf_bam = snp_indel_gvcf_bam.filter { tuple -> tuple[2].contains("proband") } |
2122 | | - father_gvcf_bam = snp_indel_gvcf_bam.filter { tuple -> tuple[2].contains("father") } |
2123 | | - mother_gvcf_bam = snp_indel_gvcf_bam.filter { tuple -> tuple[2].contains("mother") } |
| 2121 | + tmp = snp_indel_gvcf_bam.groupTuple(by: 1).transpose() |
| 2122 | + proband_gvcf_bam = tmp.filter { tuple -> tuple[2].contains("proband") } |
| 2123 | + father_gvcf_bam = tmp.filter { tuple -> tuple[2].contains("father") } |
| 2124 | + mother_gvcf_bam = tmp.filter { tuple -> tuple[2].contains("mother") } |
2124 | 2125 | // check relatedness |
2125 | 2126 | if (check_relatedness == 'yes') { |
2126 | 2127 | somalier_trio(proband_gvcf_bam, father_gvcf_bam, mother_gvcf_bam, ref, ref_index, sites, outdir, outdir2, ref_name) |
|
0 commit comments