Class GeoVariable


  • public class GeoVariable
    extends Object
    A GeoVariable represents variables which were investigated.

    According to the GEO web site, the valid values for the "name" are: dose, time, tissue, strain, gender, cell line, development stage, age, agent, cell type, infection, isolate, metabolism, shock, stress, temperature, specimen, disease state, protocol, growth protocol, genotype/genetic variation, species, individual, or other.

    These map to ExperimentalFactors in Gemma.

    Author:
    pavlidis
    • Constructor Detail

      • GeoVariable

        public GeoVariable()
    • Method Detail

      • convertStringToType

        public static GeoVariable.VariableType convertStringToType​(String string)
        Convert a string found in the GEO sample descriptions e.g., "age" to the corresponding category, represented here by VariableType. TODO: this list has gotten unwieldy and should be replaced with a config file that is read in, and it should be more directly related the list in EFO.factor.categories.txt
        Parameters:
        string - string
        Returns:
        variable type
      • addToVariableSampleList

        public void addToVariableSampleList​(GeoSample sample)
      • getDescription

        public String getDescription()
        Returns:
        Returns the description.
      • setDescription

        public void setDescription​(String description)
        Parameters:
        description - The description to set.
      • getSamples

        public Collection<GeoSample> getSamples()
        Returns:
        Returns the variableSampleList.
      • setSamples

        public void setSamples​(Collection<GeoSample> variableSampleList)
        Parameters:
        variableSampleList - The variableSampleList to set.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object