Commit fdae2712 authored by Ben Taylor's avatar Ben Taylor
Browse files

Merge pull request #213 from satta/eupathdb_uc

add support for eupathdb_uc user comment attributes
parents 7153c6ed 32b921e4
Artemis Release 16.0.14 Artemis Release 16.0.15
ACT Release 13.0.14 ACT Release 13.0.15
DNAPlotter Release 1.11 DNAPlotter Release 1.11
BamView 1.2.13 BamView 1.2.13
...@@ -906,7 +906,7 @@ public class GFFStreamFeature extends SimpleDocumentFeature implements ...@@ -906,7 +906,7 @@ public class GFFStreamFeature extends SimpleDocumentFeature implements
Set<String> set = new HashSet<String>(); Set<String> set = new HashSet<String>();
if (values != null && values.size() > 0) { if (values != null && values.size() > 0) {
for (int value_index = 0; value_index < values.size(); ++value_index) { for (int value_index = 0; value_index < values.size(); ++value_index) {
String regex = "tritryp_uc[:=]\"?([a-zA-Z0-9]+)"; String regex = "eupathdb_uc[:=]\"?([a-zA-Z0-9]+)";
Pattern pattern = Pattern.compile(regex, Pattern.CASE_INSENSITIVE); Pattern pattern = Pattern.compile(regex, Pattern.CASE_INSENSITIVE);
Matcher matcher = pattern.matcher(values.elementAt(value_index)); Matcher matcher = pattern.matcher(values.elementAt(value_index));
while (matcher.find()) { while (matcher.find()) {
...@@ -949,8 +949,8 @@ public class GFFStreamFeature extends SimpleDocumentFeature implements ...@@ -949,8 +949,8 @@ public class GFFStreamFeature extends SimpleDocumentFeature implements
// also put TriTryp UC numbers into separate attribute // also put TriTryp UC numbers into separate attribute
abuf.setClone("history", "tritryp_uc"); abuf.setClone("history", "tritryp_uc");
abuf.setAggregator("tritryp_uc", ucProc); abuf.setAggregator("eupathdb_uc", ucProc);
abuf.setGlue("tritryp_uc", ","); abuf.setGlue("eupathdb_uc", ",");
// class // class
abuf.setAggregator("class", classProc); abuf.setAggregator("class", classProc);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment