gos icon indicating copy to clipboard operation
gos copied to clipboard

blank bed graph visualization

Open violacimatti opened this issue 1 year ago • 1 comments

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.

violacimatti avatar May 22 '24 09:05 violacimatti

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

manzt avatar Jun 04 '24 14:06 manzt