Skip to content

Commit 021bf4e

Browse files
committed
GenbankWriter increments the start position of each location. For some
reason there is an increment added in GenericInsdcHeaderFormat which is responsible for this effect. Changing the increment to 0 patches the writer.
1 parent 6721c1c commit 021bf4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

biojava-core/src/main/java/org/biojava/nbio/core/sequence/io/GenericInsdcHeaderFormat.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ private String _insdc_location_string_ignoring_strand_and_subfeatures(
281281
}
282282
} else {
283283
//Typical case, e.g. 12..15 gets mapped to 11:15
284-
return ref + _insdc_feature_position_string(sequenceLocation.getStart(), 1) + ".." + _insdc_feature_position_string(sequenceLocation.getEnd());
284+
return ref + _insdc_feature_position_string(sequenceLocation.getStart(), 0) + ".." + _insdc_feature_position_string(sequenceLocation.getEnd());
285285
}
286286
}
287287
private String _insdc_feature_position_string(Point location) {

0 commit comments

Comments
 (0)