Problem while executing bedtools sort
0
0
Entering edit mode
12 months ago
anasjamshed ▴ 120

I want to execute

bedtools sort -i S2.bed -g sizes.txt

my genome file(sizes.txt) looking like:

genome

But I am getting the following error:

Chromosome "1" undefined in sizes.txt

Can anyone help me to solve this problem? Can anyone provide me proper file with chromosome names?

genome bedtools • 611 views
ADD COMMENT
1
Entering edit mode

In your bed file do the chromosomes have the prefix chrm? The chromosomes names should match in the bed and sizes files exactly.

ADD REPLY
0
Entering edit mode

In my bed file, only chromosome numbers are present, like:

chr

ADD REPLY
1
Entering edit mode

If the chromosome sizes are from the same assembly you can remove the chrm part in the size file and it should work. If you do this make sure the contig names match between them too.

ADD REPLY

Login before adding your answer.

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