Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readgroup issue #28

Merged
merged 2 commits into from
Jun 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Prioritization of neoantigens is now done separately for each variant type (speeds up the process)
- NMD information (e.g., escape rule,...) is now also calculated for all variants

## [0.2.6] - 2024-06-20

### Fix

- Added routines to catch errors when rnaseq data is not provided but exitron/alternative splicing calling is activated
- Added reference genome index as input to germline indel calling (necessary when only indel calling is activated)
- removed -C from BWA mem call (on DNAseq data) to avoid error on Illumina identifiers

## [0.2.5] - 2024-06-19

### Fix
Expand Down
7 changes: 3 additions & 4 deletions workflow/rules/align.smk
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,9 @@ if config['data']['dnaseq_filetype'] in ['.fq','.fastq']:
threads: config['threads']
shell:
"""
bwa mem -t{threads} -C resources/refs/bwa/genome {input.reads} \
| samtools addreplacerg -r ID:{wildcards.group} -r SM:{wildcards.sample} \
-r LB:{wildcards.sample} -r PL:ILLUMINA -r PU:{wildcards.group} - - \
| samtools sort -@ 6 -n -m1g - -o {output} > {log} 2>&1
bwa mem -t{threads} resources/refs/bwa/genome \
-R '@RG\\tID:{wildcards.group}\\tSM:{wildcards.sample}\\tLB:{wildcards.sample}\\tPL:ILLUMINA' \
{input.reads} | samtools sort -@ 6 -n -m1g - -o {output} > {log} 2>&1
"""

rule dnaseq_postproc:
Expand Down
16 changes: 10 additions & 6 deletions workflow/rules/common.smk
Original file line number Diff line number Diff line change
Expand Up @@ -734,18 +734,22 @@ def get_prioritization_long_indels(wildcards):
def get_prioritization_exitrons(wildcards):
exitrons = []
if config["exitronsplicing"]["activate"]:
exitrons += expand("results/{sample}/annotation/exitrons.vcf",
sample=config["data"]["name"])

if len(config["data"]["rnaseq"]) != 0:
exitrons += expand("results/{sample}/annotation/exitrons.vcf",
sample=config["data"]["name"])
else:
print('rnaseq data has not been specified in the config file, but exitron calling is activated - skipping...')
return exitrons


def get_prioritization_altsplicing(wildcards):
altsplicing = []
if config["altsplicing"]["activate"]:
altsplicing += expand("results/{sample}/annotation/altsplicing.vcf",
sample=config["data"]["name"])

if len(config["data"]["rnaseq"]) != 0:
altsplicing += expand("results/{sample}/annotation/altsplicing.vcf",
sample=config["data"]["name"])
else:
print('rnaseq data has not been specified in the config file, but alternative splicing calling is activated - skipping...')
return altsplicing

def get_prioritization_custom(wildcards):
Expand Down
3 changes: 2 additions & 1 deletion workflow/rules/germline.smk
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ rule detect_variants_htc_first_round:
input:
bam="results/{sample}/{seqtype}/align/{group}_final_BWA_split/{chr}.bam",
idx="results/{sample}/{seqtype}/align/{group}_final_BWA_split/{chr}.bam.bai",
ref="resources/refs/genome.fasta"
ref="resources/refs/genome.fasta",
ref_idx="resources/refs/genome.fasta.fai"
output:
vcf="results/{sample}/{seqtype}/indel/htcaller/{group}_variants.1rd/{chr}.vcf"
message:
Expand Down
Loading