| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 5f4ab81 commit f014aef
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -24,9 +24,11 @@ | |||
| 24 | 24 | import org.biojava.nbio.core.sequence.DNASequence; | |
| 25 | 25 | import org.biojava.nbio.core.sequence.ProteinSequence; | |
| 26 | 26 | import org.biojava.nbio.core.sequence.RNASequence; | |
| 27 | + import org.biojava.nbio.core.sequence.Strand; | ||
| 27 | 28 | import org.biojava.nbio.core.sequence.compound.*; | |
| 28 | 29 | import org.biojava.nbio.core.sequence.features.FeatureInterface; | |
| 29 | 30 | import org.biojava.nbio.core.sequence.features.Qualifier; | |
| 31 | + import org.biojava.nbio.core.sequence.location.template.AbstractLocation; | ||
| 30 | 32 | import org.biojava.nbio.core.sequence.template.AbstractSequence; | |
| 31 | 33 | import org.junit.*; | |
| 32 | 34 | import org.slf4j.Logger; | |
@@ -339,6 +341,14 @@ public void readSequenceWithZeroSpanFeature() throws IOException, CompoundNotFou | |||
| 339 | 341 | final DNASequence seq = readGenbankResource("/feature-spans-zero-point-circular-sequence.gb"); | |
| 340 | 342 | ||
| 341 | 343 | assertNotNull(seq); | |
| 344 | + | ||
| 345 | + final FeatureInterface<AbstractSequence<NucleotideCompound>, NucleotideCompound> f = seq.getFeatures().get(33); | ||
| 346 | + final AbstractLocation fLocation = f.getLocations(); | ||
| 347 | + | ||
| 348 | + assertEquals(true, fLocation.isCircular()); | ||
| 349 | + assertEquals(7028, (int)fLocation.getStart().getPosition()); | ||
| 350 | + assertEquals(286, (int)fLocation.getEnd().getPosition()); | ||
| 351 | + assertEquals(Strand.NEGATIVE, fLocation.getStrand()); | ||
| 342 | 352 | } | |
| 343 | 353 | ||
| 344 | 354 | /** | |
| Back | FazBrowse Home | New Git URL |
0 commit comments