I also tried stdin. I did not work
• 0 views
•
link
I tried to pipe into bedToBigBed but I got an error:
cat test.bed | cut -f1-3 | sort -k1,1 -k2,2n | bedToBigBed /dev/stdin chrom.sizes test.bb
Expecting at least 3 words line 1 of /dev/stdin got 1
When I do each step separately everything goes fine!
Does anybody know what is the problem?
Try stdin instead of /dev/stdin
Some conversion tools in UCSC don't support reading from stdin as they need to pass through the input file multiple times. I'm pretty sure this the case for bedGraphToBigWig and I suspect it is the same for bedToBigBed. I don't have a reference at hand but google around to see if this is the case.
Log in to answer this question.