Skip to content

Commit

Permalink
fix: update mark_duplicates to newest wrapper syntax (#217)
Browse files Browse the repository at this point in the history
* Update mapping.smk

* fix mark_duplicates according to the new wrapper

* amend the Formatting failure according to: https://github.com/github/super-linter/issues/1397#issuecomment-805249812

---------

Co-authored-by: David Laehnemann <david.laehnemann@hhu.de>
  • Loading branch information
user-tq and dlaehnemann committed Mar 14, 2023
1 parent fae1b0c commit 9d3dd30
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
# Full git history is needed to get a proper
# list of changed files within `super-linter`
fetch-depth: 0
- name: Formatting
uses: github/super-linter@v4
env:
Expand Down
2 changes: 1 addition & 1 deletion workflow/rules/mapping.smk
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ rule annotate_umis:

rule mark_duplicates:
input:
lambda wc: "results/mapped/{sample}.bam"
bams=lambda wc: "results/mapped/{sample}.bam"
if units.loc[wc.sample, "umis"].isnull().any()
else "results/mapped/{sample}.annotated.bam",
output:
Expand Down

0 comments on commit 9d3dd30

Please sign in to comment.