Package ubic.gemma.rest.util.args
Class GeneArgService
java.lang.Object
ubic.gemma.rest.util.args.AbstractEntityArgService<Gene,GeneService>
ubic.gemma.rest.util.args.GeneArgService
- All Implemented Interfaces:
EntityArgService<Gene,
GeneService>
-
Field Summary
Fields inherited from class ubic.gemma.rest.util.args.AbstractEntityArgService
service
-
Constructor Summary
ConstructorsConstructorDescriptionGeneArgService
(GeneService service, GeneOntologyService geneOntologyService, CompositeSequenceService compositeSequenceService) -
Method Summary
Modifier and TypeMethodDescriptiongetEntitiesWithTaxon
(GeneArg<?> genes, Taxon taxon) Obtain genes from a specific taxon.getEntitiesWithTaxon
(GeneArrayArg genes, Taxon taxon) Obtain genes from a specific taxon.getEntity
(AbstractEntityArg<?, Gene, GeneService> entityArg) Retrieve the entity represented by this argument.getEntityWithTaxon
(GeneArg<?> entityArg, Taxon taxon) Obtain a gene from a specific taxon.getGeneGoTerms
(GeneArg<?> arg) Returns GO terms for the gene that this GeneArg represents.getGeneGoTermsInTaxon
(GeneArg<?> geneArg, Taxon taxon) Obtain GO terms for the gene in the given taxon.getGeneLocation
(GeneArg<?> geneArg) Returns all known locations of the gene(s) that this GeneArg represents.getGeneLocationInTaxon
(GeneArg<?> arg, Taxon taxon) Returns all known locations of the gene that this GeneArg represents.getGeneProbes
(GeneArg<?> geneArg, int offset, int limit) Obtain probes for the gene across all platforms.getGeneProbesInTaxon
(GeneArg<?> geneArg, Taxon taxon, int offset, int limit) Obtain probes for the gene in the given taxon across all platforms.getGenes
(int offset, int limit) getGenesInTaxon
(Taxon taxon, int offset, int limit) getGenesInTaxon
(GeneArrayArg arg, Taxon taxon) Methods inherited from class ubic.gemma.rest.util.args.AbstractEntityArgService
checkEntity, entityArgValueOf, getArgsByPropertyName, getElementClass, getEntities, getEntities, getFilterableProperties, getFilterablePropertyAllowedValues, getFilterablePropertyConfigAttributes, getFilterablePropertyDescription, getFilterablePropertyIsUsingSubquery, getFilterablePropertyResolvableAllowedValuesLabels, getFilterablePropertyType, getFilters, getFilters, getFilters, getSort
-
Constructor Details
-
GeneArgService
@Autowired public GeneArgService(GeneService service, GeneOntologyService geneOntologyService, CompositeSequenceService compositeSequenceService)
-
-
Method Details
-
getEntity
@Nonnull public Gene getEntity(AbstractEntityArg<?, Gene, throws javax.ws.rs.NotFoundException, javax.ws.rs.BadRequestExceptionGeneService> entityArg) Retrieve the entity represented by this argument.- Specified by:
getEntity
in interfaceEntityArgService<Gene,
GeneService> - Overrides:
getEntity
in classAbstractEntityArgService<Gene,
GeneService> - Throws:
javax.ws.rs.BadRequestException
- if more than one gene match the supplied gene argumentjavax.ws.rs.NotFoundException
- if the entity does not exist
-
getEntityWithTaxon
Obtain a gene from a specific taxon.- Throws:
javax.ws.rs.BadRequestException
- if more than one gene match the supplied gene argumen in the given taxon
-
getEntitiesWithTaxon
Obtain genes from a specific taxon. -
getEntitiesWithTaxon
Obtain genes from a specific taxon. -
getGenes
-
getGenesInTaxon
-
getGenesInTaxon
- Returns:
- a collection of Gene value objects..
-
getGeneLocation
Returns all known locations of the gene(s) that this GeneArg represents.- Returns:
- collection of physical location objects.
-
getGeneLocationInTaxon
Returns all known locations of the gene that this GeneArg represents.- Parameters:
taxon
- the taxon to limit the search to. Can be null.- Returns:
- collection of physical location objects.
-
getGeneGoTerms
Returns GO terms for the gene that this GeneArg represents. -
getGeneGoTermsInTaxon
Obtain GO terms for the gene in the given taxon. -
getGeneProbes
Obtain probes for the gene across all platforms. -
getGeneProbesInTaxon
public Slice<CompositeSequenceValueObject> getGeneProbesInTaxon(GeneArg<?> geneArg, Taxon taxon, int offset, int limit) Obtain probes for the gene in the given taxon across all platforms.
-