No I haven't, because I didn't want to read the entire file, which is several hundred Gb. Is there a way for grep to just give its first hit? I'll check that...
How Do I Pull Out One Read (Given Its Id) From A Bam?
Hi there
Does anyone know how I can pull just one read from a BAM file, when I know the read-id (and sequence) of that read? I'm doing this because I've just got an error saying that one of the reads has no quality information. Since the original BAM is huge, I don't want to convert the whole thing to SAM or fastq and find that read-id. Any suggestions (also on BAM validation) welcome!
cheers Zam
• 7,082 views
•
link
1 answer
Log in to answer this question.
exact duplicate of
Extracting subsets of reads from a BAM file
quickest way to pull a list of reads out of a BAM file?
Sorry, should have spotted that