Class GeoDomainObjectGenerator

    • Field Detail

      • log

        protected static org.apache.commons.logging.Log log
      • datasetFetcher

        protected Fetcher datasetFetcher
      • seriesFetcher

        protected Fetcher seriesFetcher
      • platformFetcher

        protected Fetcher platformFetcher
    • Constructor Detail

      • GeoDomainObjectGenerator

        public GeoDomainObjectGenerator()
    • Method Detail

      • generate

        public Collection<? extends GeoData> generate​(String geoAccession)
        Description copied from interface: SourceDomainObjectGenerator
        Combines the necessary data fetching and parsing steps to get a collection of source domain objects.
        Specified by:
        generate in interface SourceDomainObjectGenerator
        Parameters:
        geoAccession - , either a GPL, GDS or GSE value.
        Returns:
        If processPlatformsOnly is true, a collection of GeoPlatforms. Otherwise a Collection of series (just one). If the accession is a GPL then processPlatformsOnly is set to true and any sample data is ignored.
      • getProjectedAccessions

        public Collection<DatabaseEntry> getProjectedAccessions​(String geoAccession)
        Determine the set of external accession values that will be generated during parsing. This can be used to pre-empty time-consuming fetch and download of data we already have.
        Parameters:
        geoAccession - geo accession
        Returns:
        database entries
      • initialize

        public void initialize()
        Initialize fetchers, clear out any data that was already generated by this Generator.
      • processDataSet

        public void processDataSet​(GeoSeries series,
                                   String dataSetAccession)
        Process a data set and add it to the series
        Parameters:
        series - series
        dataSetAccession - dataset accession
      • setDatasetFetcher

        public void setDatasetFetcher​(Fetcher df)
      • setDoSampleMatching

        public void setDoSampleMatching​(boolean doSampleMatching)
      • setPlatformFetcher

        public void setPlatformFetcher​(Fetcher platformFetcher)
        Parameters:
        platformFetcher - The platformFetcher to set.
      • setProcessPlatformsOnly

        public void setProcessPlatformsOnly​(boolean b)
      • setSeriesFetcher

        public void setSeriesFetcher​(Fetcher seriesFetcher)
        Parameters:
        seriesFetcher - The seriesFetcher to set.