Hello all,
I have written a python script that will make a fast and bed file from a genbank file so I can use it for mapping and then viewing in IGV, however for some reason when I load the bed file I get this error:
Error loading /home/sbrimer/genomes/G_anatisUMN179.bed: Error parsing line
at byte position: htsjdk.tribble.readers.LineIteratorImpl@694df5b3, for
input source: /home/sbrimer/genomes/G_anatisUMN179.bed
My bed file looks like this:
Track name="G_anatisUMN179" description="G_anatisUMN179 genes"
G_anatisUMN179_dna 0 2687335 UMN179_RS12665 +
G_anatisUMN179_dna 210 1068 UMN179_RS00010 +
G_anatisUMN179_dna 1167 1980 UMN179_RS00015 -
G_anatisUMN179_dna 1972 2215 UMN179_RS00020 -
G_anatisUMN179_dna 2285 2618 UMN179_RS00025 +
G_anatisUMN179_dna 2671 4069 UMN179_RS00030 +
G_anatisUMN179_dna 4188 5592 UMN179_RS00035 -
G_anatisUMN179_dna 5861 7073 UMN179_RS00040 +
G_anatisUMN179_dna 7241 8294 UMN179_RS00045 -
G_anatisUMN179_dna 8309 9716 UMN179_RS00050 -
G_anatisUMN179_dna 9768 10383 UMN179_RS00055 +
G_anatisUMN179_dna 10460 10676 UMN179_RS00060 -
G_anatisUMN179_dna 10647 11184 UMN179_RS00065 -
G_anatisUMN179_dna 11294 11600 UMN179_RS00070 -
G_anatisUMN179_dna 11885 12902 UMN179_RS00075 -
G_anatisUMN179_dna 13163 13976 UMN179_RS00080 -
G_anatisUMN179_dna 13975 15172 UMN179_RS00085 -
G_anatisUMN179_dna 15181 16606 UMN179_RS00090 -
G_anatisUMN179_dna 16616 17618 UMN179_RS00095 -
I have tried parsing the file in slowly to see where the error is and I does not like the header and will not parse it. I thought I had the header correct is there something I need to add or remove it get this to work. Also I tried to removing the header and then loading the file, which it does but does not display any of the information.
I have attached the genbak ref, my python script (requires biopython), and the output bed file can anyone give me a direction to go in to help solve this problem?