Use when deriving interpolated per-base coverage counts from a sorted SAM file, especially across paired-end inserts.
interpolate_sam.pl sorted.sam > interpolated.txt/home/vimalinx/miniforge3/envs/bio/bin/interpolate_sam.pl# 1) Generate interpolated per-base counts from a sorted SAM file
interpolate_sam.pl \
alignments.sorted.sam > interpolated.txt
# 2) Save per-contig coverage blocks for downstream plotting
interpolate_sam.pl \
alignments.sorted.sam > coverage.blocks.txt
# 3) Inspect the first region header and counts
interpolate_sam.pl \
alignments.sorted.sam | head -n 40
#RNAME block headers and early counts for sanity.--help and --version are treated as missing-file names and error out.M, I, and D) and a colon-delimited RNAME format such as chromosome:NCBI36:18:1:76117153:1.0x0010 marks the second read in paired-end data, so validate behavior before using it on arbitrary modern SAM files.