Entering edit mode
2.4 years ago
Sara
•
0
Hello! I have a very simple question, I think, as I am only now learning and studying NGS. Supposing we have a bam file, how do I know the name of a specific read? For example, which is the name of read 313? Thank you very much!
you can also try:
what if I want to know the name of a fastq read? like 568th read
$ samtools view <in.bam> | awk 'NR== 568 {print $1;exit}'
bash
shellchmod +x read_name.sh
Execute the script in bash shell
./read_name.sh <input.bam> <read_number>
For eg
yes exactly!! Thank you so much!!