Skip to content

Commit

Permalink
fix: references correct
Browse files Browse the repository at this point in the history
  • Loading branch information
dnousome committed Jun 12, 2024
1 parent e0317be commit 79455d5
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 20 deletions.
8 changes: 4 additions & 4 deletions modules/local/variant_calling.nf
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
GENOMEREF=file(params.genomes[params.genome].genome)
GENOMEFAI=file(params.genomes[params.genome].genomefai)
GENOMEDICT=file(params.genomes[params.genome].genomedict)
KGPGERMLINE=params.genomes[params.genome].kgp
DBSNP=file(params.genomes[params.genome].dbsnp)
GERMLINE_RESOURCE=file(params.genomes[params.genome].germline_resource)
GNOMADGERMLINE=params.genomes[params.genome].gnomad
DBSNP=file(params.genomes[params.genome].dbsnp)
PON=file(params.genomes[params.genome].pon)
VEPCACHEDIR=file(params.genomes[params.genome].vepcache)
VEPSPECIES=params.genomes[params.genome].vepspecies
Expand Down Expand Up @@ -75,7 +75,7 @@ process pileup_paired_t {
"""
gatk --java-options -Xmx48g GetPileupSummaries \
-I ${tumor} \
-V $KGPGERMLINE \
-V $GERMLINE_RESOURCE \
-L ${bed} \
-O ${tumorname}_${bed.simpleName}.tpileup.table
Expand Down Expand Up @@ -105,7 +105,7 @@ process pileup_paired_n {
"""
gatk --java-options -Xmx48g GetPileupSummaries \
-I ${normal} \
-V $KGPGERMLINE \
-V $GERMLINE_RESOURCE \
-L ${bed} \
-O ${normalname}_${bed.simpleName}.npileup.table
Expand Down
9 changes: 4 additions & 5 deletions modules/local/variant_calling_tonly.nf
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
GENOMEREF=file(params.genomes[params.genome].genome)
GENOMEFAI=file(params.genomes[params.genome].genomefai)
GENOMEDICT=file(params.genomes[params.genome].genomedict)
KGPGERMLINE=params.genomes[params.genome].kgp
DBSNP=file(params.genomes[params.genome].dbsnp)
GERMLINE_RESOURCE=file(params.genomes[params.genome].germline_resource)
GNOMADGERMLINE=params.genomes[params.genome].gnomad
DBSNP=file(params.genomes[params.genome].dbsnp)
PON=file(params.genomes[params.genome].pon)
VEPCACHEDIR=file(params.genomes[params.genome].vepcache)
VEPSPECIES=params.genomes[params.genome].vepspecies
Expand Down Expand Up @@ -36,7 +36,7 @@ process pileup_paired_tonly {
"""
gatk --java-options -Xmx48g GetPileupSummaries \
-I ${tumor} \
-V $KGPGERMLINE \
-V $GERMLINE_RESOURCE \
-L ${bed} \
-O ${tumorname}_${bed.simpleName}.tpileup.table
Expand Down Expand Up @@ -207,8 +207,7 @@ process mutect2filter_tonly {


"""
gatk GatherVcfs -I ${mut2in} -O ${sample}.tonly.concat.vcf.gz
gatk IndexFeatureFile -I ${sample}.tonly.concat.vcf.gz
gatk SortVcf -I ${mut2in} -O ${sample}.tonly.concat.vcf.gz --CREATE_INDEX
gatk FilterMutectCalls \
-R $GENOMEREF \
-V ${sample}.tonly.concat.vcf.gz \
Expand Down
29 changes: 18 additions & 11 deletions subworkflows/local/workflows.nf
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,9 @@ workflow VC {
somaticcall_input=sage_in
}else if("mutect2" in call_list){
somaticcall_input=mutect2_in
}
}else{
somaticcall_input=Channel.empty()
}


//Implement PCGR Annotator/CivIC Next
Expand All @@ -460,24 +462,29 @@ workflow SV {
bamwithsample

main:
//Svaba
svaba_out=svaba_somatic(bamwithsample)
.map{ tumor,bps,contigs,discord,alignents,gindel,gsv,so_indel,so_sv,unfil_gindel,unfil_gsv,unfil_so_indel,unfil_sv,log ->
tuple(tumor,so_sv,"svaba")}
annotsv_svaba(svaba_out).ifEmpty("Empty SV input--No SV annotated")
svcall_list = params.svcallers.split(',') as List

if ("svaba" in svcall_list){
//Svaba
svaba_out=svaba_somatic(bamwithsample)
.map{ tumor,bps,contigs,discord,alignents,gindel,gsv,so_indel,so_sv,unfil_gindel,unfil_gsv,unfil_so_indel,unfil_sv,log ->
tuple(tumor,so_sv,"svaba")}
annotsv_svaba(svaba_out).ifEmpty("Empty SV input--No SV annotated")
}
if ("manta" in svcall_list){
//Manta
manta_out=manta_somatic(bamwithsample)
.map{tumor,gsv,so_sv,unfil_sv,unfil_indel ->
tuple(tumor,so_sv,"manta")}
annotsv_manta(manta_out).ifEmpty("Empty SV input--No SV annotated")

}
//Delly-WIP

//Survivor
gunzip(manta_out).concat(svaba_out).groupTuple()
| survivor_sv | annotsv_survivor_tn | ifEmpty("Empty SV input--No SV annotated")

if ("manta" in svcall_list & "svaba" in svcall_list){
//Survivor
gunzip(manta_out).concat(svaba_out).groupTuple()
| survivor_sv | annotsv_survivor_tn | ifEmpty("Empty SV input--No SV annotated")
}
}

workflow CNVmouse {
Expand Down
2 changes: 2 additions & 0 deletions subworkflows/local/workflows_tonly.nf
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,8 @@ workflow VC_TONLY {
somaticcall_input=sage_in_tonly
}else if("mutect2" in call_list){
somaticcall_input=mutect2_in_tonly
}else{
somaticcall_input=Channel.empty()
}

emit:
Expand Down

0 comments on commit 79455d5

Please sign in to comment.