Skip to content

Commit a16bfd2

Browse files
authored
Release 0.9.4 (#86)
1 parent ac8f588 commit a16bfd2

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

pipeface.nf

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
nextflow.enable.dsl=2
22

33
// tag pipeface version
4-
def pipeface_version = "0.9.3"
4+
def pipeface_version = "0.9.4"
55

66
// create dummy NONE file for optional pipeface inputs
77
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 {
21102110
(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)
21112111
}
21122112
if (mode == 'trio') {
2113-
tmp = haplotagged_bam_fam.groupTuple(by: 2).transpose()
2113+
tmp = haplotagged_bam_fam.groupTuple(by: 1).transpose()
21142114
proband_bam = tmp.filter { tuple -> tuple[2].contains("proband") }
21152115
father_bam = tmp.filter { tuple -> tuple[2].contains("father") }
21162116
mother_bam = tmp.filter { tuple -> tuple[2].contains("mother") }
21172117
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)
21182118
dt_examples = deeptrio_make_examples(dt_commands, ref, ref_index)
21192119
dt_calls = deeptrio_call_variants(dt_examples.proband.mix(dt_examples.father, dt_examples.mother))
21202120
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") }
21242125
// check relatedness
21252126
if (check_relatedness == 'yes') {
21262127
somalier_trio(proband_gvcf_bam, father_gvcf_bam, mother_gvcf_bam, ref, ref_index, sites, outdir, outdir2, ref_name)

0 commit comments

Comments
 (0)