This is a test version of Biostars. For the public version, visit https://www.biostars.org.
extract region from the bam file

i have sorted *.bam file and i want to extract particular regions mapping

i have .bed file

chr2 179390716 179695529
chr3 89825161 90460254
chr8 144939497 144952632



samtools view -b -L .bed *.bam > output

the output file have only NNNNNNNN, there's no reads. what is the problem? i already check if there position have reads or not.

assembly sequencing genome

.bed *.bam

These are your actual filenames?

Yes. the output just enumerate All NNNNNNNNNNNNNNNNNNNNNNN

I have asked for the command you used for checking the content and not how the content looks like :)

Also, please answer the question by Wouter.

And another question: how did you get this bam file?

You'll need to share more information, we cannot guess what happened and cannot see your screen.

0 answers

No answers yet.

Log in to answer this question.