Entering edit mode
3.8 years ago
evafinegan
•
0
Hello,
I am using bedops
to convert a vcf
file to a bed
file:
vcf2bed < in.vcf.gz > out.bed
But I get this error:
BED row length exceeds capacity at line 47483 in -.
Check that you have unix newlines (cat -A) or increase TOKENS_MAX_LENGTH in BEDOPS.Constants.hpp and recompile BEDOPS.
Thank you for any help!
I still get the same error.
Another possibility is that your VCF file contains genuinely very long lines, in which case, you'd need to run a version of BEDOPS that supports longer lines.
If this is your case, if you're using the binaries I distribute on our Github site, you should be able to run the following:
This transparently swaps the binaries around so that your host runs a "megarow" build of these tools, which supports longer lines, at the cost of slightly longer runtime for set operations.
If you're using someone else's build (e.g., via Homebrew or a package manager I don't control) then my advice would be to compile the binaries you need.
Instructions for compilation are located at:
https://bedops.readthedocs.io/en/latest/content/installation.html#installation-via-source-code
As the instructions note, you'd run
make megarow
ormake all
to build the set of binaries of the "megarow" variety. Grab some coffee as it may take a few minutes. Install the binaries where you need them, then run the command as described above.