Class GeoServiceImpl
- java.lang.Object
-
- ubic.gemma.core.loader.expression.geo.service.GeoServiceImpl
-
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
,GeoService
@Component public class GeoServiceImpl extends Object implements GeoService, org.springframework.beans.factory.InitializingBean
Non-interactive fetching, processing and persisting of GEO data.- Author:
- pavlidis
-
-
Constructor Summary
Constructors Constructor Description GeoServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArrayDesign
addElements(ArrayDesign targetPlatform)
For the rare cases (Exon arrays) where we load the platform in two stages.void
afterPropertiesSet()
Collection<?>
fetchAndLoad(String geoAccession, boolean loadPlatformOnly, boolean doSampleMatching, boolean splitByPlatform)
Load data, no restrictions on superseries or subseriesCollection<?>
fetchAndLoad(String geoAccession, boolean loadPlatformOnly, boolean doSampleMatching, boolean splitByPlatform, boolean allowSuperSeriesImport, boolean allowSubSeriesImport)
Given a GEO GSE or GDS (or GPL, but support might not be complete) Check that it doesn't already exist in the system, filter samples Download and parse GDS files and GSE file needed Convert the GDS and GSE into a ExpressionExperiment (or just the ArrayDesigns) Load the resulting ExpressionExperiment and/or ArrayDesigns into GemmaCollection<?>
loadFromSoftFile(String accession, String softFile, boolean loadPlatformOnly, boolean doSampleMatching, boolean splitByPlatform)
Load from a SOFT file.void
setGeoDomainObjectGenerator(GeoDomainObjectGenerator generator)
void
updateFromGEO(String geoAccession)
Refetch and reprocess the GEO series, updating select information.
-
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet() throws Exception
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
addElements
@Transactional public ArrayDesign addElements(ArrayDesign targetPlatform)
Description copied from interface:GeoService
For the rare cases (Exon arrays) where we load the platform in two stages.- Specified by:
addElements
in interfaceGeoService
- Parameters:
targetPlatform
- already persistent array design.- Returns:
- updated (persistent) array design
-
fetchAndLoad
@Transactional public Collection<?> fetchAndLoad(String geoAccession, boolean loadPlatformOnly, boolean doSampleMatching, boolean splitByPlatform)
Description copied from interface:GeoService
Load data, no restrictions on superseries or subseries- Specified by:
fetchAndLoad
in interfaceGeoService
- Parameters:
geoAccession
- accessionloadPlatformOnly
- load platforms onlydoSampleMatching
- do sample matchingsplitByPlatform
- split incompatible platforms- Returns:
- collection
-
fetchAndLoad
@Transactional public Collection<?> fetchAndLoad(String geoAccession, boolean loadPlatformOnly, boolean doSampleMatching, boolean splitByPlatform, boolean allowSuperSeriesImport, boolean allowSubSeriesImport)
Given a GEO GSE or GDS (or GPL, but support might not be complete)- Check that it doesn't already exist in the system, filter samples
- Download and parse GDS files and GSE file needed
- Convert the GDS and GSE into a ExpressionExperiment (or just the ArrayDesigns)
- Load the resulting ExpressionExperiment and/or ArrayDesigns into Gemma
- Specified by:
fetchAndLoad
in interfaceGeoService
- Parameters:
geoAccession
- accessionloadPlatformOnly
- load platforms onlydoSampleMatching
- do sample matchingsplitByPlatform
- split incompatible platformsallowSuperSeriesImport
- Allow loading if the Series is a SuperSeriesallowSubSeriesImport
- Allow loading if the Series is a SubSeries- Returns:
- collection
-
updateFromGEO
@Transactional public void updateFromGEO(String geoAccession)
Description copied from interface:GeoService
Refetch and reprocess the GEO series, updating select information. Currently only implemented for experiments (GSEs)- Specified by:
updateFromGEO
in interfaceGeoService
-
loadFromSoftFile
@Transactional public Collection<?> loadFromSoftFile(String accession, String softFile, boolean loadPlatformOnly, boolean doSampleMatching, boolean splitByPlatform)
Description copied from interface:GeoService
Load from a SOFT file. This can be used for testing but maybe there are other situations it is useful.- Specified by:
loadFromSoftFile
in interfaceGeoService
- Parameters:
accession
- e.g GSE1234softFile
- the full path to the SOFT file. The file name has to be [accession].soft.gz- Returns:
- a single experiment.
-
setGeoDomainObjectGenerator
public void setGeoDomainObjectGenerator(GeoDomainObjectGenerator generator)
- Specified by:
setGeoDomainObjectGenerator
in interfaceGeoService
-
-