Interface GeneSetValueObjectHelper
- All Known Implementing Classes:
GeneSetValueObjectHelperImpl
public interface GeneSetValueObjectHelper
* @author tvrossum
-
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)
-
Method Details
-
convertToGOValueObject
Method to create a GO group object from an ad hoc entity- Parameters:
gs- gene setgoId- gene ontology idsearchTerm- search term- Returns:
- Go group VO
-
convertToLightValueObject
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.- 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
List<DatabaseBackedGeneSetValueObject> convertToLightValueObjects(Collection<GeneSet> genesets, boolean includeOnesWithoutGenes) results will be sorted by size- Parameters:
genesets- gene setsincludeOnesWithoutGenes- if true, even gene sets that lack genes will be returned.- Returns:
- list of gene set value objects
-
convertToValueObject
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.- Parameters:
gs- an expressionExperimentSet entity to create a value object for- Returns:
- a new DatabaseBackedGeneSetValueObject
-
convertToValueObjects
- Parameters:
sets- gene sets- Returns:
- results will be sorted by size gene sets that lack genes will be excluded
-
convertToValueObjects
List<DatabaseBackedGeneSetValueObject> convertToValueObjects(Collection<GeneSet> geneSets, boolean includeOnesWithoutGenes) - Parameters:
geneSets- gene setsincludeOnesWithoutGenes- if true, even gene sets that lack genes will be returned.- Returns:
- results will be sorted by size
-