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
terminate called after throwing an instance of 'std::invalid_argument' #917
Comments
could you share the first few lines of the input file? |
Thanks Aaron, Here is top10 lines
|
The error is being raised by the "False" and "True" in the file because it has exactly 12 columns and bedtools is interpreting it to be a BED12 format where False and True would be invalid for some of the columns where a number is strictly expected. I would recommend replacing True with 1 and False with 0.
|
Thanks Aaron! the solution works perfect. |
- workflow ran into this error arq5x/bedtools2#917
I'm running into this same issue, though I'm using the output of a bedtools intersect with
And the series of commands are (in a snakemake rule):
It's the |
Well, it looks like if I append a 13th column, it works...
Still, I'm not sure what the issue is, because I just tried running my test data and then manually executing this series of commands (that doesn't produce the error - and without me adding the 13th column) and the output of intersect looks exactly the same to me. I mean, there clearly is different data, but the types of the data is the same. I just would like it to make sense. Is there a way to know what row/value is causing the error? Could it have to do with the size of the data? |
Oh wait. The chromosome names are different. The test data is just "19" (smallest chromosome) and the full data is "chr", e.g. "chr19". I bet that's it. |
Any idea to this issue?
terminate called after throwing an instance of 'std::invalid_argument'
(base) [sguo2@login02 regulomedb]$ bedtools
bedtools is a powerful toolset for genome arithmetic.
Version: v2.30.0
About: developed in the quinlanlab.org and by many contributors worldwide.
Docs: http://bedtools.readthedocs.io/
Code: https://github.com/arq5x/bedtools2
Mail: https://groups.google.com/forum/#!forum/bedtools-discuss
Usage: bedtools [options]
The bedtools sub-commands include:
The text was updated successfully, but these errors were encountered: