Hi Laurent,

There's no command in samtools for that. You could write a small program to
do that relatively easily with pysam or something similar (or the samtools
C API, if you prefer). Alternatively, a bit of scripting and either
bedtools or bedops would work.

Devon

--
Devon Ryan, Ph.D.
Email: [email protected]
Laboratory for Molecular and Cellular Cognition
German Centre for Neurodegenerative Diseases (DZNE)
Ludwig-Erhard-Allee 2
53175 Bonn
Germany
<[email protected]>


On Wed, Jun 4, 2014 at 4:58 PM, Laurent MANCHON <[email protected]>
wrote:

> -hi,
>
> i want to know how many reads map 2 regions separated by a gap.
> Is there a command to report the count of reads that overlap 2 distincts
> region on the same sequence, i.e: chr1 4913-4963 & chr1 5390    5464
>
> thank you --
>
>
>
>
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and their
> applications. Written by three acclaimed leaders in the field,
> this first edition is now available. Download your free book today!
> http://p.sf.net/sfu/NeoTech
> _______________________________________________
> Samtools-help mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/samtools-help
>
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Samtools-help mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/samtools-help

Reply via email to