hoffmangroup / genomedata

The Genomedata format for storing large-scale functional genomics data.
https://genomedata.hoffmanlab.org/
GNU General Public License v2.0
2 stars 1 forks source link

Accessing multiple discontiguous genome coords #2

Open EricR86 opened 10 years ago

EricR86 commented 10 years ago

Original report (archived issue) by Eric Roberts (Bitbucket: ericr86, GitHub: ericr86).


From Google Code Issue #17

Imported Labels: enhancement, imported, Priority-Medium

From jay.hesselberth on June 16, 2011 15:10:06

I have multiple discontiguous coords on a chromosome that I want get data for, and I'd like to do it without looping over them.

I can do this with numpy:

temp = numpy.array([1,2,3,4,5]) coords = [1,3] temp[coords] array([2, 4])

but I can't seem to do the same thing with genomedata, e.g.

genome[chrom][coords,trackname] doesn't work.

Am I stuck looping?

Original issue: http://code.google.com/p/genomedata/issues/detail?id=17

EricR86 commented 10 years ago

Original comment by Eric Roberts (Bitbucket: ericr86, GitHub: ericr86).