get an error "Expecting at least 3 words line 1 of /dev/stdin got 1" making bigBed
2
0
Entering edit mode
9.1 years ago
R ▴ 10

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 • 4.1k views
ADD COMMENT
0
Entering edit mode
9.1 years ago

Try stdin instead of /dev/stdin

ADD COMMENT
0
Entering edit mode

I also tried stdin. I did not work

ADD REPLY
0
Entering edit mode

a dash '-' instead of stdin ?

ADD REPLY
0
Entering edit mode

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

ADD REPLY
0
Entering edit mode

what's your OS ?

ADD REPLY
0
Entering edit mode

linux-3.17.8-gentoo-r1

ADD REPLY
0
Entering edit mode
9.1 years ago

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.

ADD COMMENT

Login before adding your answer.

Traffic: 1545 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6