public class DomainArchitecture extends Object implements PhylogenyData
| Modifier and Type | Field and Description |
|---|---|
static String |
NHX_SEPARATOR |
| Constructor and Description |
|---|
DomainArchitecture() |
DomainArchitecture(List<PhylogenyData> domains,
int total_length) |
DomainArchitecture(String da_str) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDomain(ProteinDomain pd) |
StringBuffer |
asSimpleText() |
StringBuffer |
asText() |
PhylogenyData |
copy()
Creates a new PhylogenyData object with identical values as this
PhylogenyData.
|
ProteinDomain |
getDomain(int i) |
SortedMap<BigDecimal,ProteinDomain> |
getDomains() |
int |
getNumberOfDomains() |
int |
getTotalLength() |
boolean |
isEqual(PhylogenyData domain_architecture)
Returns true if the names and the order of the domains match (domain and
linker lengths are ignored).
|
void |
setTotalLength(int total_length) |
StringBuffer |
toNHX() |
void |
toPhyloXML(Writer writer,
int level,
String indentation)
Writes a phyloXML representation of this phylogeny data.
|
String |
toString() |
public static final String NHX_SEPARATOR
public DomainArchitecture()
public DomainArchitecture(List<PhylogenyData> domains, int total_length)
public DomainArchitecture(String da_str)
public void addDomain(ProteinDomain pd)
public StringBuffer asSimpleText()
asSimpleText in interface PhylogenyDatapublic StringBuffer asText()
asText in interface PhylogenyDatapublic PhylogenyData copy()
PhylogenyDatacopy in interface PhylogenyDatapublic ProteinDomain getDomain(int i)
public SortedMap<BigDecimal,ProteinDomain> getDomains()
public int getNumberOfDomains()
public int getTotalLength()
public boolean isEqual(PhylogenyData domain_architecture)
isEqual in interface PhylogenyDatapublic void setTotalLength(int total_length)
public StringBuffer toNHX()
toNHX in interface PhylogenyDatapublic void toPhyloXML(Writer writer, int level, String indentation) throws IOException
PhylogenyDatatoPhyloXML in interface PhylogenyDataIOExceptionCopyright © 2016. All rights reserved.