Skip to content

coverage histogram causes malformedBedLineError #110

Description

@radaniba

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions