Skip to content

Commit

Permalink
Merge pull request #4 from ikmb/devel
Browse files Browse the repository at this point in the history
Fixing various smaller issues
  • Loading branch information
marchoeppner authored Feb 21, 2022
2 parents 6158b2a + 3598db8 commit c09a67e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
10 changes: 5 additions & 5 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ if (params.pacbio) {

Channel.fromPath(params.samples)
.splitCsv(sep: ';', header: true)
.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) ) }
.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) ) }
.set { reads }
}

Expand Down Expand Up @@ -102,10 +102,10 @@ workflow {
vcf = DEEPVARIANT_PACBIO.out.vcf
gvcf = DEEPVARIANT_PACBIO.out.gvcf
} else {
DEEPVARIANT_ILLUMINA(reads,bed,fastaGz,gzFai,gzi,fai)
bam = DEEPVARIANT_ILLUMINA.out.bam
vcf = DEEPVARIANT_ILLUMINA.out.vcf
gvcf = DEEPVARIANT_ILLUMINA.out.gvcf
DEEPVARIANT_SHORT_READS(reads,bed,fastaGz,gzFai,gzi,fai)
bam = DEEPVARIANT_SHORT_READS.out.bam
vcf = DEEPVARIANT_SHORT_READS.out.vcf
gvcf = DEEPVARIANT_SHORT_READS.out.gvcf
}

// effect prediction
Expand Down
4 changes: 2 additions & 2 deletions modules/samtools/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ process merge_and_dedup {
tuple val(indivID), val(sampleID), path(aligned_bam_list)

output:
tuple val(indivID),val(sampleID),path(merged_bam),path(merged_bam_index)
tuple path(merged_bam),path(merged_bam_index)
tuple val(indivID),val(sampleID),path(merged_bam),path(merged_bam_index), emit: bam
tuple path(merged_bam),path(merged_bam_index), emit: bam_simple

script:
merged_bam = indivID + "_" + sampleID + ".merged.md.cram"
Expand Down
1 change: 1 addition & 0 deletions nextflow.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
params {

genome = "GRCh38"
pacbio = false

run_name = false

Expand Down
4 changes: 2 additions & 2 deletions workflows/deepvariant_illumina/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ include { trim } from "./../../modules/fastp/main.nf" params(params)
include { align } from "./../../modules/bwa/main.nf" params(params)
include { merge_and_dedup } from "./../../modules/samtools/main.nf" params(params)
include { deepvariant } from "./../../modules/deepvariant/main.nf" params(params)
include { vcf_index ; vcf_pass } from "./../../modules/vcf/main.nf" params(params)
include { vcf_add_dbsnp; vcf_index ; vcf_pass } from "./../../modules/vcf/main.nf" params(params)
include { manta } from "./../../modules/sv/main.nf" params(params)
include { bed_compress_and_index } from "./../../modules/htslib/main.nf" params(params)

Expand All @@ -29,6 +29,6 @@ workflow DEEPVARIANT_SHORT_READS {
emit:
gvcf = deepvariant.out[0]
vcf = vcf_add_dbsnp.out.mix(manta.out[0],manta.out[1],manta.out[2])
bam = merge_and_dedup.out
bam = merge_and_dedup.out.bam
}

0 comments on commit c09a67e

Please sign in to comment.