Skip to content

Commit

Permalink
Liftoff bed no paf
Browse files Browse the repository at this point in the history
  • Loading branch information
wharvey31 committed May 30, 2024
1 parent 1eb9195 commit a4ddbd2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pipelines/summarize_flagger_output/workflow/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ rule liftover_coords:
shell:
"""
liftOver <(cut -f 1-4 {input.flagger_bed} | tail -n +2 ) {input.chain_file} {output.new_bed} {output.unmapped_bed}
rustybam liftover -b -q {input.paf} > {output.paf}
awk '{{s+=$3-$2;}} END {{print "Total Flagger bases before liftover: " s}}' {input.flagger_bed}
awk '{{s+=$9-$8;}} END {{print "Total bases after liftover: " s}}' {output.new_bed}
awk '{{s+=$9-$8;}} END {{print "Unmapped bases after liftover: " s}}' {output.unmapped_bed}
Expand All @@ -124,7 +123,7 @@ rule liftover_coords:

rule liftover_bed:
input:
paf=rules.liftover_coords.output.paf,
paf=rules.liftover_coords.output.new_bed,
output:
bed="results/converted_bed/{sample}.bed",
threads: 1
Expand Down

0 comments on commit a4ddbd2

Please sign in to comment.