Class GeneSetValueObjectHelperImpl
- java.lang.Object
-
- ubic.gemma.persistence.service.genome.gene.GeneSetValueObjectHelperImpl
-
- All Implemented Interfaces:
GeneSetValueObjectHelper
@Component public class GeneSetValueObjectHelperImpl extends Object implements GeneSetValueObjectHelper
This class will handle population of GeneSetValueObjects. Services need to be accessed in order to define values for size, geneIds, and public/private fields.- Author:
- tvrossum
-
-
Constructor Summary
Constructors Constructor Description GeneSetValueObjectHelperImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GOGroupValueObject
convertToGOValueObject(GeneSet gs, String goId, String searchTerm)
Method to create a GO group object from an ad hoc entityDatabaseBackedGeneSetValueObject
convertToLightValueObject(GeneSet gs)
Constructor to build value object from GeneSet.List<DatabaseBackedGeneSetValueObject>
convertToLightValueObjects(Collection<GeneSet> geneSets, boolean includeOnesWithoutGenes)
results will be sorted by sizeDatabaseBackedGeneSetValueObject
convertToValueObject(GeneSet gs)
Constructor to build value object from GeneSet.List<DatabaseBackedGeneSetValueObject>
convertToValueObjects(Collection<GeneSet> sets)
List<DatabaseBackedGeneSetValueObject>
convertToValueObjects(Collection<GeneSet> genesets, boolean includeOnesWithoutGenes)
-
-
-
Method Detail
-
convertToGOValueObject
public GOGroupValueObject convertToGOValueObject(GeneSet gs, String goId, String searchTerm)
Description copied from interface:GeneSetValueObjectHelper
Method to create a GO group object from an ad hoc entity- Specified by:
convertToGOValueObject
in interfaceGeneSetValueObjectHelper
- Parameters:
gs
- gene setgoId
- gene ontology idsearchTerm
- search term- Returns:
- Go group VO
-
convertToLightValueObject
public DatabaseBackedGeneSetValueObject convertToLightValueObject(GeneSet gs)
Description copied from interface:GeneSetValueObjectHelper
Constructor to build value object from GeneSet. This is a light version and *does not include member ids*! (But the size is set.) No security filtering is done here, assuming that if the user could load the experimentSet entity, they have access to it.- Specified by:
convertToLightValueObject
in interfaceGeneSetValueObjectHelper
- Parameters:
gs
- the expressionExperimentSet entity to create a value object for- Returns:
- a gene set value object with all fields filled except for gene members
-
convertToLightValueObjects
public List<DatabaseBackedGeneSetValueObject> convertToLightValueObjects(Collection<GeneSet> geneSets, boolean includeOnesWithoutGenes)
Description copied from interface:GeneSetValueObjectHelper
results will be sorted by size- Specified by:
convertToLightValueObjects
in interfaceGeneSetValueObjectHelper
- Parameters:
geneSets
- gene setsincludeOnesWithoutGenes
- if true, even gene sets that lack genes will be returned.- Returns:
- list of gene set value objects
-
convertToValueObject
public DatabaseBackedGeneSetValueObject convertToValueObject(GeneSet gs)
Description copied from interface:GeneSetValueObjectHelper
Constructor to build value object from GeneSet. No security filtering is done here, assuming that if the user could load the experimentSet entity, they have access to it.- Specified by:
convertToValueObject
in interfaceGeneSetValueObjectHelper
- Parameters:
gs
- an expressionExperimentSet entity to create a value object for- Returns:
- a new DatabaseBackedGeneSetValueObject
-
convertToValueObjects
public List<DatabaseBackedGeneSetValueObject> convertToValueObjects(Collection<GeneSet> sets)
- Specified by:
convertToValueObjects
in interfaceGeneSetValueObjectHelper
- Parameters:
sets
- gene sets- Returns:
- results will be sorted by size gene sets that lack genes will be excluded
-
convertToValueObjects
public List<DatabaseBackedGeneSetValueObject> convertToValueObjects(Collection<GeneSet> genesets, boolean includeOnesWithoutGenes)
- Specified by:
convertToValueObjects
in interfaceGeneSetValueObjectHelper
- Parameters:
genesets
- gene setsincludeOnesWithoutGenes
- if true, even gene sets that lack genes will be returned.- Returns:
- results will be sorted by size
-
-