+ * Ensures sequence ref names are not less than 3 characters and does not
+ * contain a database name
+ *
+ * @param seqName
+ * @return
+ */
+ public static boolean isValidSeqName(String seqName)
+ {
+ String ignoreList = "pdb,uniprot";
+ if (seqName.length() < 3)
+ {
+ return false;
+ }
+ for (String ignoredEntry : ignoreList.split(","))
+ {
+ if (seqName.equalsIgnoreCase(ignoredEntry))
+ {
+ return false;
+ }
+ }
+ return true;
+ }
+
+ public static String getDBRefId(DBRefEntry dbRef)
+ {
+ String ref = dbRef.getAccessionId().replaceAll("GO:", "");
+ return ref;
+ }
+
+ /**