public final static boolean ALLOW_DDBJ_BLAST = false;
public final static String PRG_NAME = "Archaeopteryx";
final static String VERSION = "0.988 SR";
- final static String PRG_DATE = "140418";
+ final static String PRG_DATE = "140415";
final static String DEFAULT_CONFIGURATION_FILE_NAME = "_aptx_configuration_file";
final static String[] DEFAULT_FONT_CHOICES = { "Arial", "Helvetica",
"Verdana", "Tahoma", "Dialog", "Lucida Sans", "SansSerif", "Sans-serif", "Sans" };
final public static Pattern TAXOMONY_SN_PATTERN_STRAIN_1 = Pattern
.compile( "(?:\\b|_)("
+ SN_BN
- + "[_ ](?:str|subsp|var)[a-z]{0,5}\\.?[_ ]\\S{1,60})(?:\\b|_)" );
+ + "[_ ](?:str|subsp|ssp|var)[a-z]{0,5}\\.?[_ ]\\S{1,60})(?:\\b|_)" );
final public static Pattern TAXOMONY_SN_PATTERN_STRAIN_2 = Pattern
.compile( "(?:\\b|_)("
+ SN_BN
- + "[_ ]\\((?:str|subsp|var)[a-z]{0,5}\\.?[_ ]\\S{1,60}\\))" );
+ + "[_ ]\\((?:str|subsp|ssp|var)[a-z]{0,5}\\.?[_ ]\\S{1,60}\\))" );
final public static Pattern TAXOMONY_SN_PATTERN_STRAIN_SUBSTRAIN = Pattern
.compile( "(?:\\b|_)("
+ SN_BN
else if ( s.indexOf( " subsp " ) > 4 ) {
s = s.replaceFirst( " subsp ", " subsp. " );
}
+ else if ( s.indexOf( " ssp " ) > 4 ) {
+ s = s.replaceFirst( " ssp ", " subsp. " );
+ }
+ else if ( s.indexOf( " ssp. " ) > 4 ) {
+ s = s.replaceFirst( " ssp. ", " subsp. " );
+ }
else if ( s.indexOf( " var " ) > 4 ) {
s = s.replaceFirst( " var ", " var. " );
}
else if ( s.indexOf( " (subsp " ) > 4 ) {
s = s.replaceFirst( " \\(subsp ", " (subsp. " );
}
+ else if ( s.indexOf( " (ssp " ) > 4 ) {
+ s = s.replaceFirst( " \\(ssp ", " (subsp. " );
+ }
+ else if ( s.indexOf( " (ssp. " ) > 4 ) {
+ s = s.replaceFirst( " \\(ssp. ", " (subsp. " );
+ }
else if ( s.indexOf( " (var " ) > 4 ) {
s = s.replaceFirst( " \\(var ", " (var. " );
}
.equals( "Escherichia coli str. K-12 substr. MG1655star" ) ) {
return false;
}
- //
if ( !ParserUtils.extractScientificNameFromNodeName( "Macrocera sp." ).equals( "Macrocera sp." ) ) {
return false;
}
if ( !ParserUtils.extractScientificNameFromNodeName( "Macrocera sp" ).equals( "Macrocera sp." ) ) {
return false;
}
+ if ( !ParserUtils.extractScientificNameFromNodeName( "Sesamum rigidum ssp merenskyanum 07 48" )
+ .equals( "Sesamum rigidum subsp. merenskyanum" ) ) {
+ return false;
+ }
+ if ( !ParserUtils.extractScientificNameFromNodeName( "Sesamum rigidum ssp. merenskyanum" )
+ .equals( "Sesamum rigidum subsp. merenskyanum" ) ) {
+ return false;
+ }
+ if ( !ParserUtils.extractScientificNameFromNodeName( "Sesamum rigidum (ssp. merenskyanum)" )
+ .equals( "Sesamum rigidum (subsp. merenskyanum)" ) ) {
+ return false;
+ }
+ if ( !ParserUtils.extractScientificNameFromNodeName( "Sesamum rigidum (ssp merenskyanum)" )
+ .equals( "Sesamum rigidum (subsp. merenskyanum)" ) ) {
+ return false;
+ }
}
catch ( final Exception e ) {
e.printStackTrace( System.out );