[Biojava-l] Error parsing GFF3 file

Philipp Comans philipp.comans at mytum.de
Fri Dec 31 17:07:46 UTC 2010


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



More information about the Biojava-l mailing list