Skip to content

Commit

Permalink
Merge pull request #5 from projectoriented/master
Browse files Browse the repository at this point in the history
Remove methylink script and plug in package instead
  • Loading branch information
wharvey31 authored Feb 13, 2024
2 parents 2b7fe05 + d5a6536 commit 4dd6a1d
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 245 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ alignments/**
log/**
tmp/**
**.code-workspace
.idea
Clair3
workflow/scripts/longphase
workflow/scripts/longphase
2 changes: 2 additions & 0 deletions workflow/envs/methylink.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ channels:
- defaults
dependencies:
- pysam
- pip:
- methylink==0.4.0
17 changes: 15 additions & 2 deletions workflow/rules/methylink.smk
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,22 @@ rule link_bam:
hrs=24,
disk_free=250,
threads: 16
envmodules:
"modules",
"modules-init",
"modules-gs/prod",
"modules-eichler/prod",
"methylink/0.4.0",
conda:
"../envs/methylink.yaml"
log:
"log/{sample}.{phase}.methlylink.log",
script:
"../scripts/append_mod_tags.py"
shell:
"""
methylink \
--threads {threads} \
--aln {input.aln_bam} \
--sample {wildcards.sample}_{wildcards.phase} \
--methyl_bams "$(echo {input.methyl_bam})" \
--output {output.linked_bam} 2>&1 | tee {log}
"""
3 changes: 1 addition & 2 deletions workflow/rules/variant_calling.smk
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,5 @@ rule bgzip_vcf:
threads: 1
shell:
"""
bcftools sort -o /dev/stdout -O v {input.vcf} | bgzip -c > {output.zipped}
tabix {output.zipped}
bcftools sort -o /dev/stdout -O v {input.vcf} | bgzip -c > {output.zipped} && tabix {output.zipped}
"""
240 changes: 0 additions & 240 deletions workflow/scripts/append_mod_tags.py

This file was deleted.

0 comments on commit 4dd6a1d

Please sign in to comment.