Skip to content

Commit

Permalink
feat: allow for lowercase platform specification in samples.tsv (#4)
Browse files Browse the repository at this point in the history
* common.smk: allow for lowercase platform specification in samples.tsv

this should allow for easier compatibility with samples.tsv files for the cyrcular-calling workflow

* fix formatting
  • Loading branch information
dlaehnemann authored Jan 11, 2024
1 parent 6f450f0 commit dae2140
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion workflow/rules/common.smk
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ def get_bwa_extra(wildcards):
Set -q option for independent mapping qualities for split reads (Circle-Map uses this).
"""
return r"-q -R '@RG\tID:{sample}\tSM:{sample}\tPL:{platform}'".format(
sample=wildcards.sample, platform=samples.loc[wildcards.sample, "platform"]
sample=wildcards.sample,
platform=samples.loc[wildcards.sample, "platform"].upper(),
)


Expand Down

0 comments on commit dae2140

Please sign in to comment.