Skip to content

Commit

Permalink
Fix bug caused by compressing softmasked genomes.
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-plessy committed Oct 3, 2024
1 parent 9217db1 commit 61f5adc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/local/seqtk.nf
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ process SEQTK_CUTN {

"""
# Produces a compressed BED-3 file with the coordinates of soft-masked regions.
awk '/^>/ {print; next} {gsub(/[acgt]/, "N"); print}' $fasta |
zcat -f $fasta | awk '/^>/ {print; next} {gsub(/[acgt]/, "N"); print}' |
seqtk cutN -gn 1 - |
sort -k1,1 -k2,2n | gzip --best > ${prefix}.mask.bed.gz
Expand Down

0 comments on commit 61f5adc

Please sign in to comment.