Skip to content
Snippets Groups Projects
Commit 68cb311d authored by tcarver's avatar tcarver
Browse files

fix for getSegmentID()

parent 847d4b24
No related branches found
No related tags found
No related merge requests found
...@@ -429,7 +429,9 @@ public class GFFStreamFeature extends SimpleDocumentFeature implements ...@@ -429,7 +429,9 @@ public class GFFStreamFeature extends SimpleDocumentFeature implements
* @return * @return
*/ */
public String getSegmentID(final Range r) { public String getSegmentID(final Range r) {
if (id_range_store != null && !getKey().getKeyString().equals("gene")) { if ( id_range_store != null &&
getKey().getKeyString().indexOf("gene") == -1 &&
getKey().getKeyString().indexOf("RNA") == -1 ) {
int offset = 0; int offset = 0;
if (getGffSeqName() != null && contig_ranges != null if (getGffSeqName() != null && contig_ranges != null
&& contig_ranges.containsKey(getGffSeqName())) { && contig_ranges.containsKey(getGffSeqName())) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment