Skip to content

Commit

Permalink
fixed typo that caused snvs to be called with indels
Browse files Browse the repository at this point in the history
  • Loading branch information
riasc committed Mar 14, 2024
1 parent c5b8c89 commit 142fb0b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions workflow/rules/common.smk
Original file line number Diff line number Diff line change
Expand Up @@ -641,20 +641,20 @@ def get_shortindels(wildcards):
return indels

def get_snvs(wildcards):
indels=[]
snvs=[]
if config['indel']['mode'] in ['RNA','BOTH']:
indels += expand("results/{sample}/{seqtype}/indel/mutect2/{group}_somatic.snvs.vcf.gz",
snvs += expand("results/{sample}/{seqtype}/indel/mutect2/{group}_somatic.snvs.vcf.gz",
sample=config['data']['name'],
seqtype='rnaseq',
group=list(config['data']['rnaseq'].keys()))

if config['indel']['mode'] in ['DNA','BOTH']:
indels += expand("results/{sample}/{seqtype}/indel/mutect2/{group}_somatic.snvs.vcf.gz",
snvs += expand("results/{sample}/{seqtype}/indel/mutect2/{group}_somatic.snvs.vcf.gz",
sample=config['data']['name'],
seqtype='dnaseq',
group=list(config['data']['dnaseq'].keys()))

return indels
return snvs


########### EXITRON CALLING ##########
Expand Down
2 changes: 1 addition & 1 deletion workflow/rules/indel.smk
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ rule sort_somatic_SNVs_m2:

rule combine_somatic_SNVs_m2:
input:
get_shortindels
get_snvs
output:
"results/{sample}/variants/somatic.snvs.vcf.gz"
message:
Expand Down

0 comments on commit 142fb0b

Please sign in to comment.