public class GenomeFeature
Created by Jason Wallace on 7/2/14. This class stores a generic "feature" on a genome, such as a gene, transcript, exon, miRNA, etc. The intent is for this information to be read in from an external file (such as an Ensembl GFF/GTF file) and collated into a GenomeFeatureMap, but it could be used in other ways.
public java.lang.String id()
public java.lang.String type()
public java.lang.String parentId()
public java.lang.String chromosome()
public int start()
public java.lang.String startAsString()
public int stop()
public java.lang.String stopAsString()
public java.lang.String getAnnotation(java.lang.String key)
Get any annotation based on its key. If this feature lacks that annotation, it returns 'NA'
key - The name of the annotation to look forpublic java.util.HashMap<java.lang.String,java.lang.String> annotations()
Returns a (shallow) copy of the Hashmap that keeps all annotations for this feature. Since the hashmap just stores Strings, a shallow copy is still safe to modify b/c it won't be reflected in the original.
public java.lang.String toString()