Re: Line segments, overlap, and bits

2008-03-27 Thread Istvan Albert
On Mar 26, 5:28 pm, Sean Davis <[EMAIL PROTECTED]> wrote: > I am working with genomic data. Basically, it consists of many tuples > of (start,end) on a line. I would like to convert these tuples of > (start,end) to a string of bits where a bit is 1 if it is covered by > any of the regions describ

Re: Line segments, overlap, and bits

2008-03-26 Thread castironpi
On Mar 26, 9:16 pm, Paul Rubin wrote: > Sean Davis <[EMAIL PROTECTED]> writes: > > OR, NOT, etc.).  Any suggestions on how to (1) set up the bit string > > and (2) operate on 1 or more of them?  Java has a BitSet class that > > keeps this kind of thing pretty clean and hi

Re: Line segments, overlap, and bits

2008-03-26 Thread Paul Rubin
Sean Davis <[EMAIL PROTECTED]> writes: > OR, NOT, etc.). Any suggestions on how to (1) set up the bit string > and (2) operate on 1 or more of them? Java has a BitSet class that > keeps this kind of thing pretty clean and high-level, but I haven't > seen anything like it for python. You could wr

Re: Line segments, overlap, and bits

2008-03-26 Thread George Sakkis
On Mar 26, 5:28 pm, Sean Davis <[EMAIL PROTECTED]> wrote: > I am working with genomic data. Basically, it consists of many tuples > of (start,end) on a line. I would like to convert these tuples of > (start,end) to a string of bits where a bit is 1 if it is covered by > any of the regions describ

Re: Line segments, overlap, and bits

2008-03-26 Thread castironpi
On Mar 26, 5:10 pm, [EMAIL PROTECTED] wrote: > Sean Davis>Java has a BitSet class that keeps this kind of thing > pretty clean and high-level, but I haven't seen anything like it for > python.< > > If you look around you can usually find Python code able to do most of > the things you want, like (y

Re: Line segments, overlap, and bits

2008-03-26 Thread bearophileHUGS
Sean Davis>Java has a BitSet class that keeps this kind of thing pretty clean and high-level, but I haven't seen anything like it for python.< If you look around you can usually find Python code able to do most of the things you want, like (you can modify this code to add the boolean operations):

Line segments, overlap, and bits

2008-03-26 Thread Sean Davis
I am working with genomic data. Basically, it consists of many tuples of (start,end) on a line. I would like to convert these tuples of (start,end) to a string of bits where a bit is 1 if it is covered by any of the regions described by the (start,end) tuples and 0 if it is not. I then want to d