I got the same error message from intersectBed using a gtf file.
I uploaded it to UCSC genome browser as a custom track as suggested (https://genome.ucsc.edu/cgi-bin/hgCustom) and it told me what my issue was:
chromStart after chromEnd (1462431 > 1462417)
Thanks
Note: I had to change my chromosome name to get this to work as E. coli isn't one of their species options.
Have you ensured that you're always using tabs to separate the columns? I've seen a couple files with spaces randomly thrown in and that tends to break things.
Try:
perl -p -i -e 's/ /\t/g' bed_file.txtfor converting white spaces to tabs and rerun bedtools.As others have suggested, this is most likely caused by the file having spaces in place of tabs. I note you mention this table was written in R, where the default separator for write.table is indeed a space. I have this function in my
.Rprofileto make writing bioinformatic-sy table easier:Error: unable to open file or unable to determine types for file
Hi i am trying to run this commands bedtools intersect -a Ec_k12.gff -b target_genes.txt -f 0.5 -wa -wb > genes_with_coordinates.bed and i am getting this error even after following given steps regarding this error on biostars/google. please help me if anyone know how to solve it? and the error is -
thank you !