Class TaxonArgService
java.lang.Object
ubic.gemma.rest.util.args.AbstractEntityArgService<Taxon, TaxonService>
ubic.gemma.rest.util.args.TaxonArgService
- All Implemented Interfaces:
EntityArgService<Taxon, TaxonService>
-
Field Summary
Fields inherited from class AbstractEntityArgService
service -
Constructor Summary
ConstructorsConstructorDescriptionTaxonArgService(TaxonService service, ChromosomeService chromosomeService, GeneService geneService) -
Method Summary
Modifier and TypeMethodDescriptiongetArgsByPropertyName(AbstractEntityArrayArg<Taxon, TaxonService> entitiesArg) Given aAbstractEntityArrayArg, construct a mapping of properties it refers to values those properties are allowed to take in a filter.<A> FiltersgetFilters(AbstractEntityArg<A, Taxon, TaxonService> entityArg) Translate the provided entity argument into aFilters.getGenesOnChromosome(TaxonArg<?> arg, String chromosomeName, String strand, long start, int size) Lists Genes overlapping a location on a specific chromosome on a taxon that this TaxonArg represents.Methods inherited from class AbstractEntityArgService
checkEntity, entityArgValueOf, getElementClass, getEntities, getEntities, getEntity, getFilterableProperties, getFilterablePropertyAllowedValues, getFilterablePropertyConfigAttributes, getFilterablePropertyDescription, getFilterablePropertyResolvableAllowedValuesLabels, getFilterablePropertyType, getFilters, getFilters, getSort, isFilterablePropertyDeprecated, isFilterablePropertyUsingSubquery
-
Constructor Details
-
TaxonArgService
@Autowired public TaxonArgService(TaxonService service, ChromosomeService chromosomeService, GeneService geneService)
-
-
Method Details
-
getFilters
public <A> Filters getFilters(AbstractEntityArg<A, Taxon, TaxonService> entityArg) throws jakarta.ws.rs.BadRequestException Description copied from interface:EntityArgServiceTranslate the provided entity argument into aFilters.This will generate clause in the form of
property = value.- Specified by:
getFiltersin interfaceEntityArgService<Taxon, TaxonService>- Overrides:
getFiltersin classAbstractEntityArgService<Taxon, TaxonService>- Throws:
jakarta.ws.rs.BadRequestException- if the argument is malformed
-
getArgsByPropertyName
protected Map<String, List<String>> getArgsByPropertyName(AbstractEntityArrayArg<Taxon, TaxonService> entitiesArg) Description copied from class:AbstractEntityArgServiceGiven aAbstractEntityArrayArg, construct a mapping of properties it refers to values those properties are allowed to take in a filter.- Overrides:
getArgsByPropertyNamein classAbstractEntityArgService<Taxon, TaxonService>
-
getGenesOnChromosome
public List<GeneValueObject> getGenesOnChromosome(TaxonArg<?> arg, String chromosomeName, @Nullable String strand, long start, int size) throws jakarta.ws.rs.NotFoundException Lists Genes overlapping a location on a specific chromosome on a taxon that this TaxonArg represents.- Parameters:
chromosomeName- name of the chromosome to look onstrand- the strand that the gene has to have which is either '+' or '-', or null to ignorestart- the start nucleotide denoting the location to look for genes at.size- the size (in nucleotides) of the location from the 'start' nucleotide.- Returns:
- collection of Gene VOs overlapping the location defined by the 'start' and 'size' parameters.
- Throws:
jakarta.ws.rs.NotFoundException- if the taxon cannot retrieved
-