[MOBY-guts] biomoby commit
Paul Gordon
gordonp at dev.open-bio.org
Thu Oct 26 00:35:20 UTC 2006
gordonp
Wed Oct 25 20:35:19 EDT 2006
Update of /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/util
In directory dev.open-bio.org:/tmp/cvs-serv15020/src/main/ca/ucalgary/seahawk/util
Modified Files:
MobyUtils.java
Log Message:
Made single words into keywords by default
moby-live/Java/src/main/ca/ucalgary/seahawk/util MobyUtils.java,1.1,1.2
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/util/MobyUtils.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/util/MobyUtils.java 2006/10/25 02:33:22 1.1
+++ /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/util/MobyUtils.java 2006/10/26 00:35:19 1.2
@@ -31,7 +31,13 @@
// Can always use the data as a string
objects.add(new MobyDataString(objectName, data));
-
+ // If it's a single word, give keyword options
+ if(data.trim().matches("^[A-Za-z0-9_-]{3,}$")){
+ objects.add(new MobyDataComposite("Global_Keyword",
+ "dummy_name",
+ "seahawk_namespace",
+ data.trim()));
+ }
// See if it's sequence
MobyDataComposite mdc = createMobySequence(data, "user-selection");
More information about the MOBY-guts
mailing list