![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Is there a tool that converts TXT, BED, GFF format to VCF? | LauraSmith | Bioinformatics | 4 | 03-22-2017 02:41 AM |
Updated How to convert .txt file to .bed .GFF or .BAR file format, | forevermark4 | Bioinformatics | 2 | 06-30-2014 06:02 AM |
htseq--SAM line does not contain at least 11 tab-delimited fields | FLYINGDOLPHIN | Bioinformatics | 0 | 06-03-2013 12:04 PM |
creating tab-delimited output from unix | tonybert | Bioinformatics | 2 | 01-27-2013 07:37 AM |
Tab Delimited File Editors? (GFF to GTF) | DrD2009 | Bioinformatics | 16 | 11-30-2012 05:52 AM |
![]() |
|
Thread Tools |
![]() |
#1 |
Senior Member
Location: USA Join Date: Sep 2012
Posts: 130
|
![]()
I am using BEDTools and getting the following error:
Code:
Unexpected file format. Please use tab-delimited BED, GFF, or VCF. Perhaps you have non-integer starts or ends at line 1? I searched around for this error and it's usually caused by non-unix newlines or non-tab separators. My file does not have either of those issues. Here are the first few lines of the BED file: Code:
chr1 3214482 3216968 chr1 3421702 3421901 chr1 3670552 3671498 chr1 4290846 4293012 chr1 4343507 4350091 |
![]() |
![]() |
![]() |
#2 |
Senior Member
Location: East Coast USA Join Date: Feb 2008
Posts: 7,080
|
![]()
Check the bed file using the following command to make sure there are no unexpected characters.
Code:
$ cat -e filename.bed | more Code:
$ cat -A filename.bed | more Last edited by GenoMax; 08-19-2013 at 07:52 AM. |
![]() |
![]() |
![]() |
#3 |
Senior Member
Location: USA Join Date: Sep 2012
Posts: 130
|
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
Location: East Coast USA Join Date: Feb 2008
Posts: 7,080
|
![]()
Are you getting the error even with a small subset like the one you pasted above?
|
![]() |
![]() |
![]() |
#5 |
Senior Member
Location: USA Join Date: Sep 2012
Posts: 130
|
![]()
Used different files and small subsets and still getting the same problem.
Supposedly, the problem is at line 1, but there is really nothing wrong with it as far as I can tell. |
![]() |
![]() |
![]() |
#6 |
Senior Member
Location: East Coast USA Join Date: Feb 2008
Posts: 7,080
|
![]()
Not sure which exact bedtools program you need but perhaps bedops (http://code.google.com/p/bedops/) could provide an alternative.
|
![]() |
![]() |
![]() |
#7 |
Senior Member
Location: USA Join Date: Sep 2012
Posts: 130
|
![]()
I am using coverageBed. I just wanted to quickly get coverage at specific regions.
I have a valid BED file. Why is BEDTools disagreeing? |
![]() |
![]() |
![]() |
#8 |
Senior Member
Location: East Coast USA Join Date: Feb 2008
Posts: 7,080
|
![]()
Have you used this copy of bedtools successfully before?
|
![]() |
![]() |
![]() |
#9 |
Senior Member
Location: USA Join Date: Sep 2012
Posts: 130
|
![]()
No. Unfortunately I just got BEDTools.
It compiled and it seems to be running okay for the most part. I assume if there was a problem with BEDTools, it wouldn't launch in the first place or produce some other lower-level error first. |
![]() |
![]() |
![]() |
#10 |
Senior Member
Location: St. Louis Join Date: Dec 2010
Posts: 535
|
![]()
Create a file with vim and then type the following (with tabs):
chr1 500 1000 chr1 700 1200 and try to use "mergeBed" on it and see if that works. |
![]() |
![]() |
![]() |
#11 | |
Senior Member
Location: USA Join Date: Sep 2012
Posts: 130
|
![]() Quote:
coverageBed does not work on any of the files. This is very confusing. |
|
![]() |
![]() |
![]() |
#12 |
Junior Member
Location: japan Join Date: Jan 2014
Posts: 1
|
![]()
How about checking "new line characters"?
if you make your .bed files on Windows, new line characters should be set \r\n. whereas Unix/Linux uses only \r, so the excess \n may make BEDTools confused. to justify this, choose line end character of Unix/Linux in the selection pulldown in your text editor's "save as ..." dialogue. (in my case, gedit in Ubuntu). hope this works! |
![]() |
![]() |
![]() |
#13 |
Member
Location: LONDON, UNITED KINGDOM Join Date: Jan 2009
Posts: 44
|
![]()
You could also use GenomeIntervals2BED.py script available within the SeqGI framework.
Have a look: http://seqgi.sourceforge.net/Genomeintervals2bed.html |
![]() |
![]() |
![]() |
#14 |
Junior Member
Location: st. louis Join Date: Jun 2011
Posts: 6
|
![]()
use dos2unix command in linux to convert your bed file to a file that is acceptable by bedtools. This happens as the windows and linux have different new line characters
|
![]() |
![]() |
![]() |
#15 |
Junior Member
Location: Austria Join Date: Sep 2014
Posts: 4
|
![]()
I was facing the same problem. One of my files was a bam file and the other gff3/bed (I do not know if you have a bam file). Anyways, I used 'bedtools coverage' with the -abam option instead of -a and provided my bam file there. -b was then the gff3 or .bed (I tried both) and it worked!
|
![]() |
![]() |
![]() |
#16 |
Senior Member
Location: San Diego Join Date: May 2008
Posts: 912
|
![]()
In the future, you really need to include the exact command line you are using.
I'm pretty sure the problem is this: BED format is valid with only three columns of data, but I think coverageBed needs four columns of data; I think it wants a column for direction. Try adding a fourth column of all pluses. |
![]() |
![]() |
![]() |
#17 |
Member
Location: Ann Arbor Join Date: Aug 2015
Posts: 12
|
![]()
@swbarnes2, does the 4th column need to be the direction or can it be gene names as well ? I have a .BED file that has some annotation information in the 4th column. Would that still be okay ?
|
![]() |
![]() |
![]() |
Thread Tools | |
|
|