|
TissueInfo API 20091124110011 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.cornell.med.icb.tissueinfo.annotations.AnnotationSet
public class AnnotationSet
Associate sampleIds to annotations. Annotations may describe tissue origin, gender of the specimen, development stage, or other attributes.
| Constructor Summary | |
|---|---|
AnnotationSet()
|
|
| Method Summary | |
|---|---|
void |
associate(MutableString sampleId,
MutableString annotationType,
MutableString annotationValue)
Associate a sampleId with an annotation (type, value). |
void |
associate(String sampleId,
String annotationType,
String annotationValue)
Associate a sampleId with an annotation (type, value) |
IntSet |
getAnnotations(int sampleIndex,
int tissueAnnotationIndex)
|
AnnotationType |
getAnnotationType(int annotationTypeIndex)
Get an annotation type. |
int |
getAnnotationTypeIndex(MutableString annotationType)
|
int |
getAnnotationTypeIndex(String annotationType)
|
int |
getNumberOfSamples()
|
int |
getNumberOfValues(int annotationTypeIndex)
Returns the number of distinct value identifiers for the annotation type. |
int |
getSampleIndex(MutableString sampleId)
|
int |
getSampleIndex(String sampleId)
|
int |
getValueIndex(int tissueAnnotationIndex,
MutableString valueId)
|
int |
getValueIndex(int tissueAnnotationIndex,
String valueId)
|
int |
registerAnnotationType(MutableString annotationType)
Associate a annotationType with an annotation type. |
void |
registerDefaultValue(MutableString annotationType,
MutableString annotationValue)
Register a default value for a type. |
void |
registerDefaultValue(String annotationType,
String annotationValue)
Register a default value for a type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AnnotationSet()
| Method Detail |
|---|
public int registerAnnotationType(MutableString annotationType)
annotationType - the type of annotation to register.
public void associate(String sampleId,
String annotationType,
String annotationValue)
sampleId - annotationType - annotationValue -
public void associate(MutableString sampleId,
MutableString annotationType,
MutableString annotationValue)
sampleId - annotationType - annotationValue - public int getNumberOfSamples()
public int getAnnotationTypeIndex(String annotationType)
public int getAnnotationTypeIndex(MutableString annotationType)
public IntSet getAnnotations(int sampleIndex,
int tissueAnnotationIndex)
public int getSampleIndex(String sampleId)
public int getSampleIndex(MutableString sampleId)
public int getValueIndex(int tissueAnnotationIndex,
MutableString valueId)
public int getValueIndex(int tissueAnnotationIndex,
String valueId)
public int getNumberOfValues(int annotationTypeIndex)
public final AnnotationType getAnnotationType(int annotationTypeIndex)
annotationTypeIndex - Index of the annotation type.
public void registerDefaultValue(MutableString annotationType,
MutableString annotationValue)
annotationType - Type of association (e.g., tissue, devStage, gender, etc.)annotationValue - Default value.
public void registerDefaultValue(String annotationType,
String annotationValue)
annotationType - Type of association (e.g., tissue, devStage, gender, etc.)annotationValue - Default value.
|
TissueInfo API 20091124110011 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||