Hello
I am trying to create a histogram using pybedttols and coverage wrapper but when I look at the result (the header) it looks fine except the option hist cause the MalformedBedLineError since it is a not a valid bed file
here is the error message
>>> for position in coverage:
... if(position[0]=="all"):
... print position
...
...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "cbedtools.pyx", line 680, in pybedtools.cbedtools.IntervalFile.__next__ (pybedtools/cbedtools.cpp:8685)
pybedtools.cbedtools.MalformedBedLineError: malformed line: ['all', '0', '981', '30513', '0.0321502']
my command to get the coverage was :
coverage = alignment.coverage(regions, hist=True)
Any idea on how to get only the all lines ?
Thanks
Hello
I am trying to create a histogram using pybedttols and coverage wrapper but when I look at the result (the header) it looks fine except the option
histcause the MalformedBedLineError since it is a not a valid bed filehere is the error message
my command to get the coverage was :
Any idea on how to get only the
alllines ?Thanks