gosling-lang / gos

A declarative interactive genomics visualization library for Python.
https://gosling-lang.github.io/gos
MIT License
217 stars 14 forks source link

blank bed graph visualization #154

Open violacimatti opened 5 months ago

violacimatti commented 5 months ago

Hi, this is my code to visualize a bed graph:

import gosling as gos

data= gos.csv(
    url='/violacimatti/Desktop/gosling/finale10.bedgraph',
    headerNames=['chrom','start','end','value'],
    chromosomeField='chrom',
    genomicFields=['start','end'],
    separator='\t'
)

gos.Track(data).mark_line().encode(
    x=gos.X("start:G", axis="top"),
    y=gos.Y("value:Q", axis="none"),
).view()

The problem is that when I visualize it I get a blank visualization, and it's the same also by using different bed graphs files.

manzt commented 5 months ago

Hi there, this is very difficult to debug without a minimal reproducible example. Would you be able to share the bedgraph file? Or at least a representative sample and paste here, e.g.:

cat /violacimatti/Desktop/gosling/finale10.bedgraph | head -n 40 > data.bedgraph