Bedtools fisher test error
1
0
Entering edit mode
3.5 years ago
brisbio ▴ 30

I want to run the bedtools fisher command. For this I first sort my files using sort -k1,1 -k2,2n.

When I go to run the fisher test:

bedtools fisher -a a_sorted.txt -b b_sorted.txt -g rn6_chrom_sorted.txt

It says

exiting integer conversion of a string “282763074

What am I doing wrong? (The 282763074 is the length of chr 1 in my genome file).

bedtools fisher • 690 views
ADD COMMENT
0
Entering edit mode
3.5 years ago

check you don't have any column with a blank character (space, crlf, ... ) near the word '282763074'.

ADD COMMENT
0
Entering edit mode

Thank you! When I used sed to remove crlf and then performed the fisher test it worked!

ADD REPLY

Login before adding your answer.

Traffic: 2668 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