higlass / higlass/higlass-python

Support (inline) bedlike data

Offen
#111 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Python
Sterne
66
Forks
11
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

```
Bed-like data
-------------

If you have data representing intervals in a Python object, you can load it
directly into higlass using the `bedtiles` helper function:

.. image:: img/beditems.png

.. code-block:: python

from higlass.client import View, Track
from higlass.inline_tiles import bedtiles
import higlass

bed = [['chr1', 1000, 2000, 'item #1', '.', '+'],
['chr2', 3000, 3500, 'item #1', '.', '-']]

chroms = [['chr1', 2100], ['chr2', 4000]]

data = bedtiles(bed, chroms)
track = Track(track_type='bedlike', position='top',
height=50, data=data, options={"minusStrandColor": "red"})

d,s,v = higlass.display([[track]])
d

Note that this function loads all the data into the viewconf and does
not use a server. Do not use this function with more than ~3000 items of
data.

```

We haven't implemented an inline-tiles function, however this API should be easy to support.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.