Skip to content

Commit

Permalink
add sort and formatting to compress_and_index_tsv
Browse files Browse the repository at this point in the history
  • Loading branch information
nkwang24 committed Oct 18, 2024
1 parent e600366 commit 6c4f2fb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions module/utils.nf
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,14 @@ process compress_and_index_tsv {

script:
"""
bgzip ${input_tsv} --output output.tsv.gz
tabix -s 1 -b 2 -e 2 output.tsv.gz
sort ${input_tsv} > sorted_input.tsv
bgzip sorted_input.tsv --output output.tsv.gz
tabix --sequence 1 --begin 2 --end 2 output.tsv.gz
"""

stub:
"""
touch output.tsv.gz
touch output.tsv.gz.tbi
"""
}
}

0 comments on commit 6c4f2fb

Please sign in to comment.