This is a test version of Biostars. For the public version, visit https://www.biostars.org.
get an error "Expecting at least 3 words line 1 of /dev/stdin got 1" making bigBed

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?

software-error next-gen chip-seq

2 answers

Try stdin instead of /dev/stdin

I also tried stdin. I did not work

I've tried that BUT Couldn't open - , No such file or directory :(

linux-3.17.8-gentoo-r1

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.