You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In recent BEDTools versions, intersect can accept a list of filenames as the -b argument. pybedtools has long supported flexible input types for b, for example:
filename
pybedtools.BedTool object
list of (chrom, start, stop) tuples
list of pybedtools.Interval objects
list of strings (passed directly to stdin)
It's this last one that causes a problem. There's currently no heuristic to determine whether a list of strings should be considered filenames or intervals.
I think this can be solved by checking to see if the first item in the list can be converted to an Interval object. Consuming an input iterator would be avoided if this check is only done if the input is a list. That means filenames can't be provided as iterators, but hopefully that shouldn't be a problem.
The text was updated successfully, but these errors were encountered:
In recent BEDTools versions,
intersect
can accept a list of filenames as the-b
argument.pybedtools
has long supported flexible input types forb
, for example:It's this last one that causes a problem. There's currently no heuristic to determine whether a list of strings should be considered filenames or intervals.
I think this can be solved by checking to see if the first item in the list can be converted to an Interval object. Consuming an input iterator would be avoided if this check is only done if the input is a list. That means filenames can't be provided as iterators, but hopefully that shouldn't be a problem.
The text was updated successfully, but these errors were encountered: