8000 `intersect` with multiple `-b` arguments · Issue #156 · daler/pybedtools · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

intersect with multiple -b arguments #156

8000
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
daler opened this issue Jan 24, 2016 · 0 comments
Closed

intersect with multiple -b arguments #156

daler opened this issue Jan 24, 2016 · 0 comments

Comments

@daler
Copy link
Owner
daler commented Jan 24, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0