If a chromosome region is given, which command can get the sequence alignment without overlapping?
Thanks.
If a chromosome region is given, which command can get the sequence alignment without overlapping?
Thanks.
did you look on samtools FAQ? http://sourceforge.net/apps/mediawiki/samtools/index.php?title=SAM_FAQ
From the samtools help or the samtools website:
samtools view BAMFILE chr2:1,000,000-2,000,000
If this does not do what you want, perhaps you can clarify your question a bit.
zhshqzyc: why don't you extract a smaller data set and experiment a bit with samtools? If you have illumina reads, you could use 'head -40000 data.fq > small_data.fq' to extract the first 10K reads. That should be a bit more manageable than your 200G file and help you work out what you want to do, and how to achieve it.
Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
I looked at it but there are many samtools command options. I still don't understand it. For ex, IF position is chr21:38781803-38782933, then what is the command?