JCVenterInstitute / VIGOR4

VIGOR4
GNU General Public License v3.0
17 stars 11 forks source link

Negative length in GeneModelGenerationService.determineGeneFeatures #22

Closed jchriste-jcvi closed 3 years ago

jchriste-jcvi commented 4 years ago

With master@96585d

java.lang.IllegalArgumentException: length can not be negative at org.jcvi.jillion.core.Range$Builder.assertValidCoordinates(Range.java:2856) ~[vigor-4.1.20200430-192814-96585d9-jar-with-dependencies.jar:?] at org.jcvi.vigor.service.GeneModelGenerationService.determineGeneFeatures(GeneModelGenerationService.java:394) ~[vigor-4.1.20200430-192814-96585d9-jar-with-dependencies.jar:?] at org.jcvi.vigor.service.GeneModelGenerationService.generateGeneModel(GeneModelGenerationService.java:57) ~[vigor-4.1.20200430-192814-96585d9-jar-with-dependencies.jar:?] at org.jcvi.vigor.Vigor.generateGeneModels(Vigor.java:398) ~[vigor-4.1.20200430-192814-96585d9-jar-with-dependencies.jar:?] at org.jcvi.vigor.Vigor.modelsFromNucleotideRecord(Vigor.java:300) ~[vigor-4.1.20200430-192814-96585d9-jar-with-dependencies.jar:?] at org.jcvi.vigor.Vigor.generateAnnotations(Vigor.java:243) ~[vigor-4.1.20200430-192814-96585d9-jar-with-dependencies.jar:?] at org.jcvi.vigor.Vigor.run(Vigor.java:90) [vigor-4.1.20200430-192814-96585d9-jar-with-dependencies.jar:?] at org.jcvi.vigor.Application.main(Application.java:12) [vigor-4.1.20200430-192814-96585d9-jar-with-dependencies.jar:?]

dkatzel-ncats commented 4 years ago

is this a range for a gene that is in the opposite direction? Jillion does have a DirectedRange if you mean the stop is before the start coordinate

jchriste-jcvi commented 4 years ago

Stalker!

jchriste-jcvi commented 4 years ago

I haven't looked into it, but when I encountered it before it was just an error. We tried to make the code work in the forward direction while keeping a note of which strand it was on. It was simpler for adding the reverse strand case which most of the code hadn't been accounting for. I'll let you know.

jchriste-jcvi commented 3 years ago

fixed with 208d48f. It was caused by misordering the exons, followed by assuming an ordered list.