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>
 
 @Service public class GeneArgService extends AbstractEntityArgService<Gene,GeneService> 
- 
- 
Field Summary- 
Fields inherited from class ubic.gemma.rest.util.args.AbstractEntityArgServiceservice
 
- 
 - 
Constructor SummaryConstructors Constructor Description GeneArgService(GeneService service, PhenotypeAssociationManagerService phenotypeAssociationManagerService, GeneOntologyService geneOntologyService, CompositeSequenceService compositeSequenceService)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description List<Gene>getEntitiesWithTaxon(GeneArg<?> genes, Taxon taxon)Obtain genes from a specific taxon.List<Gene>getEntitiesWithTaxon(GeneArrayArg genes, Taxon taxon)Obtain genes from a specific taxon.GenegetEntity(AbstractEntityArg<?,Gene,GeneService> entityArg)Retrieve the entity represented by this argument.GenegetEntityWithTaxon(GeneArg<?> entityArg, Taxon taxon)Obtain a gene from a specific taxon.List<GeneEvidenceValueObject>getGeneEvidence(GeneArg<?> arg, Taxon taxon)Deprecated.List<GeneOntologyTermValueObject>getGeneGoTerms(GeneArg<?> arg)Returns GO terms for the gene that this GeneArg represents.List<GeneOntologyTermValueObject>getGeneGoTermsInTaxon(GeneArg<?> geneArg, Taxon taxon)Obtain GO terms for the gene in the given taxon.List<PhysicalLocationValueObject>getGeneLocation(GeneArg<?> geneArg)Returns all known locations of the gene(s) that this GeneArg represents.List<PhysicalLocationValueObject>getGeneLocationInTaxon(GeneArg<?> arg, Taxon taxon)Returns all known locations of the gene that this GeneArg represents.Slice<CompositeSequenceValueObject>getGeneProbes(GeneArg<?> geneArg, int offset, int limit)Obtain probes for the gene across all platforms.Slice<CompositeSequenceValueObject>getGeneProbesInTaxon(GeneArg<?> geneArg, Taxon taxon, int offset, int limit)Obtain probes for the gene in the given taxon across all platforms.Slice<GeneValueObject>getGenes(int offset, int limit)Slice<GeneValueObject>getGenesInTaxon(Taxon taxon, int offset, int limit)List<GeneValueObject>getGenesInTaxon(GeneArrayArg arg, Taxon taxon)- 
Methods inherited from class ubic.gemma.rest.util.args.AbstractEntityArgServicecheckEntity, entityArgValueOf, getArgsByPropertyName, getElementClass, getEntities, getEntities, getFilterableProperties, getFilterablePropertyAllowedValues, getFilterablePropertyConfigAttributes, getFilterablePropertyDescription, getFilterablePropertyIsUsingSubquery, getFilterablePropertyResolvableAllowedValuesLabels, getFilterablePropertyType, getFilters, getFilters, getFilters, getSort
 
- 
 
- 
- 
- 
Constructor Detail- 
GeneArgService@Autowired public GeneArgService(GeneService service, PhenotypeAssociationManagerService phenotypeAssociationManagerService, GeneOntologyService geneOntologyService, CompositeSequenceService compositeSequenceService) 
 
- 
 - 
Method Detail- 
getEntity@Nonnull public Gene getEntity(AbstractEntityArg<?,Gene,GeneService> entityArg) throws javax.ws.rs.NotFoundException, javax.ws.rs.BadRequestException Retrieve the entity represented by this argument.- Specified by:
- getEntityin interface- EntityArgService<Gene,GeneService>
- Overrides:
- getEntityin class- AbstractEntityArgService<Gene,GeneService>
- Throws:
- javax.ws.rs.BadRequestException- if more than one gene match the supplied gene argument
- javax.ws.rs.NotFoundException- if the entity does not exist
 
 - 
getEntityWithTaxon@Nonnull public Gene getEntityWithTaxon(GeneArg<?> entityArg, Taxon taxon) 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
 
 - 
getEntitiesWithTaxonpublic List<Gene> getEntitiesWithTaxon(GeneArg<?> genes, Taxon taxon) Obtain genes from a specific taxon.
 - 
getEntitiesWithTaxonpublic List<Gene> getEntitiesWithTaxon(GeneArrayArg genes, Taxon taxon) Obtain genes from a specific taxon.
 - 
getGenespublic Slice<GeneValueObject> getGenes(int offset, int limit) 
 - 
getGenesInTaxonpublic Slice<GeneValueObject> getGenesInTaxon(Taxon taxon, int offset, int limit) 
 - 
getGenesInTaxonpublic List<GeneValueObject> getGenesInTaxon(GeneArrayArg arg, Taxon taxon) - Returns:
- a collection of Gene value objects..
 
 - 
getGeneLocationpublic List<PhysicalLocationValueObject> getGeneLocation(GeneArg<?> geneArg) Returns all known locations of the gene(s) that this GeneArg represents.- Returns:
- collection of physical location objects.
 
 - 
getGeneLocationInTaxonpublic List<PhysicalLocationValueObject> getGeneLocationInTaxon(GeneArg<?> arg, Taxon taxon) 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.
 
 - 
getGeneEvidence@Deprecated public List<GeneEvidenceValueObject> getGeneEvidence(GeneArg<?> arg, @Nullable Taxon taxon) throws SearchException Deprecated.Searches for gene evidence of the gene that this GeneArg represents, on the given taxon.- Parameters:
- taxon- the taxon to limit the search to. Can be null.
- Returns:
- collection of gene evidence VOs matching the criteria, or an error response, if there is an error.
- Throws:
- SearchException
 
 - 
getGeneGoTermspublic List<GeneOntologyTermValueObject> getGeneGoTerms(GeneArg<?> arg) Returns GO terms for the gene that this GeneArg represents.
 - 
getGeneGoTermsInTaxonpublic List<GeneOntologyTermValueObject> getGeneGoTermsInTaxon(GeneArg<?> geneArg, Taxon taxon) Obtain GO terms for the gene in the given taxon.
 - 
getGeneProbespublic Slice<CompositeSequenceValueObject> getGeneProbes(GeneArg<?> geneArg, int offset, int limit) Obtain probes for the gene across all platforms.
 - 
getGeneProbesInTaxonpublic Slice<CompositeSequenceValueObject> getGeneProbesInTaxon(GeneArg<?> geneArg, Taxon taxon, int offset, int limit) Obtain probes for the gene in the given taxon across all platforms.
 
- 
 
-