import java.util.regex.Pattern;\r
\r
import org.forester.phylogeny.data.Identifier;\r
-import org.forester.ws.uniprot.DatabaseTools;\r
\r
public final class SequenceIdParser {\r
\r
private final static Pattern REFSEQ_PATTERN = Pattern\r
.compile( "(?:\\A|.*[^a-zA-Z0-9])([A-Z]{2}_\\d{6,})(?:[^a-zA-Z0-9]|\\Z)" );\r
\r
- \r
- private final static boolean DEBUG = true;\r
- \r
- \r
-\r
+ \r
\r
/**\r
* Returns null if no match.\r
public final static Identifier parse( final String s ) {\r
String v = parseGenbankAccessor( s );\r
if ( !ForesterUtil.isEmpty( v ) ) {\r
+\r
return new Identifier( v, Identifier.NCBI );\r
}\r
v = parseRefSeqAccessor( s );\r