All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.maizegenetics.util.GeneralAnnotation Maven / Gradle / Ivy

Go to download

TASSEL 6 is a software package to evaluate traits association. Feature Tables are at the heart of the package where, a feature is a range of positions or a single position. Row in the that table are taxon.

There is a newer version: 6.0.1
Show newest version
package net.maizegenetics.util;

import com.google.common.collect.SetMultimap;

import java.util.Map;
import java.util.Set;

/**
 * Provide generalized annotations (descriptors).
 *
 */
public interface GeneralAnnotation {

    /**
     * Returns all annotation value for a given annotation key
     *
     * @param annoName annotation key
     * @return array of annotation values (if not present new String[0])
     */
    public String[] getTextAnnotation(String annoName);

    public Map getConcatenatedTextAnnotations();

    /**
     * Returns all annotation value for a given annotation key
     *
     * @param annoName annotation key
     * @return array of annotation values (if not present new double[0])
     */
    public double[] getQuantAnnotation(String annoName);

    /**
     * Returns average annotation for a given annotation key
     *
     * @param annoName annotation key
     * @return average value (if not present - return Double.NaN)
     */
    public double getAverageAnnotation(String annoName);

    /**
     * Returns all keys
     *
     * @return
     */
    public Set getAnnotationKeys();

    public SetMultimap getAnnotationAsMap();

    /**
     * Returns whether the entity contains the annotation with the specified
     * value. If either the annotation or the value is missing false is return
     *
     * @param annoName annotation key
     * @param annoValue annotation value;
     * @return
     */
    public boolean isAnnotatedWithValue(String annoName, String annoValue);

    public Map.Entry[] getAllAnnotationEntries();

    /**
     * Returns number of annotations including when counts of multiple values
     * for same key.
     *
     * @return number of annotations
     */
    public int numAnnotations();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy