package org.forester.ws.seqdb;
import java.util.ArrayList;
-import java.util.HashMap;
import java.util.List;
-import java.util.Map;
import org.forester.util.ForesterUtil;
public final static String CELLULAR_ORGANISMS = "cellular organisms";
public final static String VIRUSES = "Viruses";
public static final String X = "x";
-
-
-
+
public UniProtTaxonomy( final String line ) {
final String[] items = line.split( "\t" );
if ( items.length < 5 ) {
/**
* Creates deep copy for all fields, except lineage.
- *
+ *
* @return
*/
public UniProtTaxonomy copy() {
return new UniProtTaxonomy( getLineage(),
getCode() != null ? new String( getCode() ) : null,
- getCommonName() != null ? new String( getCommonName() ) : null,
- getScientificName() != null ? new String( getScientificName() ) : null,
- getSynonym() != null ? new String( getSynonym() ) : null,
- getRank() != null ? new String( getRank() ) : null,
- getId() != null ? new String( getId() ) : null );
+ getCommonName() != null ? new String( getCommonName() ) : null,
+ getScientificName() != null ? new String( getScientificName() ) : null,
+ getSynonym() != null ? new String( getSynonym() ) : null,
+ getRank() != null ? new String( getRank() ) : null,
+ getId() != null ? new String( getId() ) : null );
}
public String getCode() {
return _synonym;
}
-
-
-
-
-
public final static UniProtTaxonomy createSpecialFromScientificName( final String sn ) {
final List<String> lineage = new ArrayList<String>();
final String code = "";