Error parsing GFF3 file

Philipp Comans <[email protected]>
Newsgroups gmane.comp.java.bio.general
Message-ID <[email protected]>
Hello everyone,

I am trying to parse the file available here: ftp://ftp.jgi-psf.org/pub/JGI_data/Amphimedon_queenslandica/annotation/Aqu1.gff3.gz
with the following commands:

import java.util.Iterator;

import org.biojava3.genome.parsers.gff.FeatureI;
import org.biojava3.genome.parsers.gff.FeatureList;
import org.biojava3.genome.parsers.gff.GFF3Reader;

public class GFFReader3 {

	public static void main(String[] args) throws Exception {
		
		FeatureList features = (FeatureList) GFF3Reader.read("/Users/philipp/Dropbox/IDP/JGI_data/annotation/Smiles.gff3");
		Iterator<FeatureI> featureIterator = features.iterator();
		
		FeatureI currentFeature = null;
		
		while (featureIterator.hasNext()) {
			currentFeature = featureIterator.next();
			System.out.println(currentFeature);
		}

	}

}

The error I get is:
31.12.2010 18:05:10 org.biojava3.genome.parsers.gff.GFF3Reader read
INFO: Gff.read(): Reading /Users/philipp/Dropbox/IDP/JGI_data/annotation/Aqu1.gff3
Exception in thread "main" java.lang.IllegalArgumentException: Improper location parameters: (-1864985,746)
	at org.biojava3.genome.parsers.gff.Location.<init>(Location.java:75)
	at org.biojava3.genome.parsers.gff.Location.union(Location.java:258)
	at org.biojava3.genome.parsers.gff.FeatureList.add(FeatureList.java:49)
	at org.biojava3.genome.parsers.gff.GFF3Reader.read(GFF3Reader.java:59)
	at GFFReader3.main(GFFReader3.java:11)

I find this very strange because the file is a valid GFF document according to
http://modencode.oicr.on.ca/cgi-bin/validate_gff3_online

Is this a bug or am I doing something wrong?
Thanks for your help, I wish you a happy New Year!

Philipp
_______________________________________________
Biojava-l mailing list  -  [email protected]
http://lists.open-bio.org/mailman/listinfo/biojava-l
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.