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 -
Method Summary
Modifier and TypeMethodDescriptionconvertToGOValueObject(GeneSet gs, String goId, String searchTerm) Method to create a GO group object from an ad hoc entityConstructor to build value object from GeneSet.convertToLightValueObjects(Collection<GeneSet> geneSets, boolean includeOnesWithoutGenes) results will be sorted by sizeConstructor to build value object from GeneSet.convertToValueObjects(Collection<GeneSet> genesets, boolean includeOnesWithoutGenes)
-
Constructor Details
-
GeneSetValueObjectHelperImpl
public GeneSetValueObjectHelperImpl()
-
-
Method Details
-
convertToGOValueObject
Description copied from interface:GeneSetValueObjectHelperMethod to create a GO group object from an ad hoc entity- Specified by:
convertToGOValueObjectin interfaceGeneSetValueObjectHelper- Parameters:
gs- gene setgoId- gene ontology idsearchTerm- search term- Returns:
- Go group VO
-
convertToLightValueObject
Description copied from interface:GeneSetValueObjectHelperConstructor 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:
convertToLightValueObjectin 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:GeneSetValueObjectHelperresults will be sorted by size- Specified by:
convertToLightValueObjectsin interfaceGeneSetValueObjectHelper- Parameters:
geneSets- gene setsincludeOnesWithoutGenes- if true, even gene sets that lack genes will be returned.- Returns:
- list of gene set value objects
-
convertToValueObject
Description copied from interface:GeneSetValueObjectHelperConstructor 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:
convertToValueObjectin interfaceGeneSetValueObjectHelper- Parameters:
gs- an expressionExperimentSet entity to create a value object for- Returns:
- a new DatabaseBackedGeneSetValueObject
-
convertToValueObjects
- Specified by:
convertToValueObjectsin 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:
convertToValueObjectsin interfaceGeneSetValueObjectHelper- Parameters:
genesets- gene setsincludeOnesWithoutGenes- if true, even gene sets that lack genes will be returned.- Returns:
- results will be sorted by size
-