Entering edit mode
20 months ago
anasjamshed
▴
140
I want to execute
bedtools sort -i S2.bed -g sizes.txt
my genome file(sizes.txt) looking like:
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?
In your bed file do the chromosomes have the prefix
chrm
? The chromosomes names should match in the bed and sizes files exactly.In my bed file, only chromosome numbers are present, like:
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.