I need to remove from bam file number in the end of name transcripts.
ENST00000451407.4 to ENST00000451407
How can i do it?
Untested but should work.
samtools view -h file.bam | sed -E 's/(ENST[0-9]+)\.[0-9]+/\1/g' | samtools view -bo cleaned_file.bam
Login before adding your answer.
Use of this site constitutes acceptance of our User Agreement and Privacy