Skip to content

Commit

Permalink
adding versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
tanyasarkjain committed Nov 26, 2024
1 parent 01d82ef commit b0ce95b
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 1 deletion.
6 changes: 6 additions & 0 deletions subworkflows/local/bam_snp_variant_calling/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ workflow BAM_SNP_VARIANT_CALLING {
intervals

main:
ch_versions = Channel.empty()

//deepvariant
if (params.snv_caller === 'deepvariant') {
deepvar_input_ch = sorted_bam.join(sorted_bai)
Expand All @@ -26,6 +28,7 @@ workflow BAM_SNP_VARIANT_CALLING {
[[], []]
)
vcf_ch = DEEPVARIANT_RUNDEEPVARIANT.out.vcf.join(DEEPVARIANT_RUNDEEPVARIANT.out.vcf_tbi)
ch_versions = ch_versions.mix(DEEPVARIANT_RUNDEEPVARIANT.out.versions)
}

//gatk4_haplotypecaller
Expand All @@ -44,8 +47,11 @@ workflow BAM_SNP_VARIANT_CALLING {
)

vcf_ch = GATK4_HAPLOTYPECALLER.out.vcf.join(GATK4_HAPLOTYPECALLER.out.tbi)
ch_versions = ch_versions.mix(GATK4_HAPLOTYPECALLER.out.versions)

}

emit:
vcf_ch
versions = ch_versions
}
9 changes: 9 additions & 0 deletions subworkflows/local/bam_sv_variant_calling/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ workflow BAM_SV_VARIANT_CALLING {
fasta_fai

main:
ch_versions = Channel.empty()

//call the structural variants
PBSV_DISCOVER(sorted_bam, fasta)
PBSV_CALL(PBSV_DISCOVER.out.svsig, fasta)
Expand All @@ -21,6 +23,13 @@ workflow BAM_SV_VARIANT_CALLING {

vcf_ch = TABIX_BGZIP.out.output.join(BCFTOOLS_INDEX.out.csi)

ch_versions = ch_versions.mix(PBSV_DISCOVER.out.versions)
ch_versions = ch_versions.mix(PBSV_CALL.out.versions)
ch_versions = ch_versions.mix(TABIX_BGZIP.out.versions)
ch_versions = ch_versions.mix(BCFTOOLS_INDEX.out.versions)

emit:
vcf_ch
versions = ch_versions

}
12 changes: 12 additions & 0 deletions subworkflows/local/repeat_characterization/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ workflow REPEAT_CHARACTERIZATION{
repeat_id

main:
ch_versions = Channel.empty()

bam_bai_ch = sorted_bam.join(sorted_bai)
//genotype the repeat region
TRGT_GENOTYPE(bam_bai_ch,
Expand All @@ -41,4 +43,14 @@ workflow REPEAT_CHARACTERIZATION{
fasta_fai,
bed,
repeat_id)


ch_versions = ch_versions.mix(TRGT_GENOTYPE.out.versions)
ch_versions = ch_versions.mix(SAMTOOLS_SORT.out.versions)
ch_versions = ch_versions.mix(SAMTOOLS_INDEX.out.versions)
ch_versions = ch_versions.mix(BCFTOOLS_SORT.out.versions)
ch_versions = ch_versions.mix(TRGT_PLOT.out.versions)

emit:
versions = ch_versions
}
1 change: 0 additions & 1 deletion subworkflows/local/utils_nfcore_pacvar_pipeline/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ workflow PIPELINE_INITIALISATION {


main:

ch_versions = Channel.empty()

//
Expand Down

0 comments on commit b0ce95b

Please sign in to comment.