Skip to content

Commit f15f7dd

Browse files
committed
Recognize gff version directives with major/minor numbers (e.g. ##gffVersion 3.2.1)
1 parent 2e256bd commit f15f7dd

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/org/broad/igv/feature/tribble/GFFCodec.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,11 @@ public void readHeaderLine(String line) {
128128
trackProperties = new TrackProperties();
129129
ParsingUtils.parseTrackLine(line, trackProperties);
130130
header.setTrackProperties(trackProperties);
131-
} else if (line.startsWith("##gff-version") && line.endsWith("3")) {
132-
helper = new GFF3Helper();
131+
} else if (line.startsWith("##gff-version") && line.contains("3")) {
132+
String[] tokens = Globals.whitespacePattern.split(line);
133+
if (tokens.length > 1 && tokens[1].startsWith("3")) {
134+
helper = new GFF3Helper();
135+
}
133136
} else if (line.startsWith("#nodecode") || line.startsWith("##nodecode")) {
134137
helper.setUrlDecoding(false);
135138
} else if (line.startsWith("#hide") || line.startsWith("##hide")) {

0 commit comments

Comments
 (0)