Skip to content

Commit

Permalink
Merge pull request sanger-pathogens#205 from satta/gff3export_fixes
Browse files Browse the repository at this point in the history
do not always strip 'term=' from product
  • Loading branch information
satta committed Jul 9, 2014
2 parents 82c78ac + aed0b31 commit 4a9303b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
4 changes: 2 additions & 2 deletions etc/versions
@@ -1,4 +1,4 @@
Artemis Release 16.0.12
ACT Release 13.0.12
Artemis Release 16.0.13
ACT Release 13.0.13
DNAPlotter Release 1.11
BamView 1.2.13
10 changes: 1 addition & 9 deletions uk/ac/sanger/artemis/io/GFFStreamFeature.java
Expand Up @@ -776,15 +776,7 @@ public String process(StringVector values) {
StringBuilder buffer = new StringBuilder();
if (values != null && values.size() > 0) {
for (int value_index = 0; value_index < values.size(); ++value_index) {
final String this_value;
int index = values.elementAt(value_index).indexOf("term=");
// strip off the 'term=' etc
if (index > -1)
this_value = GFF3Encoder.encode(values.elementAt(value_index)
.substring(index + 5,
values.elementAt(value_index).length() - 1));
else
this_value = GFF3Encoder.encode(values.elementAt(value_index));
String this_value = GFF3Encoder.encode(values.elementAt(value_index));
if (value_index > 0 && value_index < (values.size())) {
buffer.append(",");
}
Expand Down

0 comments on commit 4a9303b

Please sign in to comment.