Skip to content

Commit d7f76fe

Browse files
committed
Test was failing if the location was at 1 and negative strand because internally stored as 0 and you can't have negative 0
git-svn-id: http://code.open-bio.org/repos/biojava/biojava-live/trunk@8653 7c6358e6-4a41-0410-a743-a5b2a554c398
1 parent 783fcef commit d7f76fe

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

biojava3-genome/src/test/java/org/biojava3/genome/GeneFeatureHelperTest.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
import org.biojava3.core.sequence.GeneSequence;
1515
import org.biojava3.core.sequence.ProteinSequence;
1616
import org.biojava3.core.sequence.io.FastaWriterHelper;
17+
import org.biojava3.genome.parsers.gff.FeatureI;
18+
import org.biojava3.genome.parsers.gff.FeatureList;
19+
import org.biojava3.genome.parsers.gff.GFF3Reader;
1720
import org.biojava3.genome.parsers.gff.GFF3Writer;
1821

1922
/**
@@ -36,6 +39,15 @@ protected void tearDown() throws Exception {
3639
super.tearDown();
3740
}
3841

42+
public void testZeroLocation() throws Exception{
43+
44+
FeatureList listGenes = GFF3Reader.read("src/test/resources/amphimedon.gff3");
45+
// System.out.println("Features");
46+
// for(FeatureI feature : listGenes){
47+
// System.out.println(feature);
48+
// }
49+
}
50+
3951
/**
4052
* Test of loadFastaAddGeneFeaturesFromUpperCaseExonFastaFile method, of class GeneFeatureHelper.
4153
* @throws Exception
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
##gff-version 3
2+
Contig13175 JGI gene 1 1864985 . - . ID=Aqu1;Name=Aqu1
3+
Contig100 JGI mRNA 27 746 . - . ID=PAC:15698561;Name=Aqu1.200033;PACid=15698561;Parent=Aqu1

0 commit comments

Comments
 (0)