Skip to content

Commit

Permalink
Sort final bed
Browse files Browse the repository at this point in the history
  • Loading branch information
wharvey31 committed Feb 28, 2024
1 parent 27e3512 commit f20e30b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pipelines/summarize_flagger_output/workflow/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ rule liftover_bed:
hrs=2,
shell:
"""
cut -f 1,3,4,13 {input.paf} | sed 's/id:Z://' | sed 's/_TO.*//' | awk '{{if (NF == 4) print}}' > {output.bed}
cut -f 1,3,4,13 {input.paf} | sed 's/id:Z://' | sed 's/_TO.*//' | awk '{{if (NF == 4) print}}' | sort -k1,1 -k2,2n > {output.bed}
"""


Expand Down

0 comments on commit f20e30b

Please sign in to comment.