Skip to content

Commit c09a67e

Browse files
authored
Merge pull request #4 from ikmb/devel
Fixing various smaller issues
2 parents 6158b2a + 3598db8 commit c09a67e

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

main.nf

+5-5
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ if (params.pacbio) {
5454

5555
Channel.fromPath(params.samples)
5656
.splitCsv(sep: ';', header: true)
57-
.map{ row-> tuple( row.IndivID,row.SampleID,row.libraryID,row.rgID,row.platform_unit,row.platform,row.platform_model,row.center,row.run_date,file(row.R1),file(row.R1) ) }
57+
.map{ row-> tuple( row.IndivID,row.SampleID,row.libraryID,row.rgID,row.platform_unit,row.platform,row.platform_model,row.center,row.run_date,file(row.R1),file(row.R2) ) }
5858
.set { reads }
5959
}
6060

@@ -102,10 +102,10 @@ workflow {
102102
vcf = DEEPVARIANT_PACBIO.out.vcf
103103
gvcf = DEEPVARIANT_PACBIO.out.gvcf
104104
} else {
105-
DEEPVARIANT_ILLUMINA(reads,bed,fastaGz,gzFai,gzi,fai)
106-
bam = DEEPVARIANT_ILLUMINA.out.bam
107-
vcf = DEEPVARIANT_ILLUMINA.out.vcf
108-
gvcf = DEEPVARIANT_ILLUMINA.out.gvcf
105+
DEEPVARIANT_SHORT_READS(reads,bed,fastaGz,gzFai,gzi,fai)
106+
bam = DEEPVARIANT_SHORT_READS.out.bam
107+
vcf = DEEPVARIANT_SHORT_READS.out.vcf
108+
gvcf = DEEPVARIANT_SHORT_READS.out.gvcf
109109
}
110110

111111
// effect prediction

modules/samtools/main.nf

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ process merge_and_dedup {
66
tuple val(indivID), val(sampleID), path(aligned_bam_list)
77

88
output:
9-
tuple val(indivID),val(sampleID),path(merged_bam),path(merged_bam_index)
10-
tuple path(merged_bam),path(merged_bam_index)
9+
tuple val(indivID),val(sampleID),path(merged_bam),path(merged_bam_index), emit: bam
10+
tuple path(merged_bam),path(merged_bam_index), emit: bam_simple
1111

1212
script:
1313
merged_bam = indivID + "_" + sampleID + ".merged.md.cram"

nextflow.config

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
params {
22

33
genome = "GRCh38"
4+
pacbio = false
45

56
run_name = false
67

workflows/deepvariant_illumina/main.nf

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ include { trim } from "./../../modules/fastp/main.nf" params(params)
22
include { align } from "./../../modules/bwa/main.nf" params(params)
33
include { merge_and_dedup } from "./../../modules/samtools/main.nf" params(params)
44
include { deepvariant } from "./../../modules/deepvariant/main.nf" params(params)
5-
include { vcf_index ; vcf_pass } from "./../../modules/vcf/main.nf" params(params)
5+
include { vcf_add_dbsnp; vcf_index ; vcf_pass } from "./../../modules/vcf/main.nf" params(params)
66
include { manta } from "./../../modules/sv/main.nf" params(params)
77
include { bed_compress_and_index } from "./../../modules/htslib/main.nf" params(params)
88

@@ -29,6 +29,6 @@ workflow DEEPVARIANT_SHORT_READS {
2929
emit:
3030
gvcf = deepvariant.out[0]
3131
vcf = vcf_add_dbsnp.out.mix(manta.out[0],manta.out[1],manta.out[2])
32-
bam = merge_and_dedup.out
32+
bam = merge_and_dedup.out.bam
3333
}
3434

0 commit comments

Comments
 (0)