Hi,
I have been trying to use bedtools to extract 200bp flanking sequence around my snps
bedtools slop -i snps.v03.bed -g Aradu.len.v02 -b 200
I get this error return instead
Less than the req'd two fields were encountered in the genome file (Aradu.len.v02) at line 2. Exiting.
What required fields is the code complaining about?
Here's a snippet of my genome file
chrom size
Aradu.A01 107035537
Aradu.A02 93869048
Aradu.A03 135057546
Aradu.A04 123556382
Aradu.A05 110037037
And here's the snp file
Aradu.A02 1992401 AX-147212565
Aradu.A02 67418563 AX-147213997
Aradu.A02 67418823 AX-147213999
Aradu.A02 67418874 AX-147214001
Aradu.A02 67420580 AX-147214004
Aradu.A02 79194257 AX-147214308
Can you help with this?
Kind regards,
Paul
Can you format your file contents as code (highlight and click on the button with 0s and 1s)? Otherwise, it gets auto-formatted poorly.
It looks like your BED file is not really a BED file. It should start with these 3 columns: chromosome, start, end.
Formatting adjusted.
Thanks Igor.
I reformatted the snp file as BED like you suggested and removed headers from the genome file but I still get the same complaint.
Paul