Interface CompositeSequenceService
- All Superinterfaces:
BaseImmutableService<CompositeSequence>
,BaseReadOnlyService<CompositeSequence>
,BaseService<CompositeSequence>
,BaseVoEnabledService<CompositeSequence,
,CompositeSequenceValueObject> FilteringService<CompositeSequence>
,FilteringVoEnabledService<CompositeSequence,
CompositeSequenceValueObject>
- All Known Implementing Classes:
CompositeSequenceServiceImpl
public interface CompositeSequenceService
extends BaseService<CompositeSequence>, FilteringVoEnabledService<CompositeSequence,CompositeSequenceValueObject>
- Author:
- paul
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(CompositeSequence compositeSequence) Creates the given entity in the persistent storage.find
(CompositeSequence compositeSequence) Does a search for the entity in the persistent storagefindByBioSequence
(BioSequence bioSequence) findByBioSequenceName
(String name) findByGene
(Gene gene) findByGene
(Gene gene, ArrayDesign arrayDesign) findByName
(String name) findByName
(ArrayDesign arrayDesign, String name) findByNamesInArrayDesigns
(Collection<String> compositeSequenceNames, Collection<ArrayDesign> arrayDesigns) findOrCreate
(CompositeSequence compositeSequence) Does a search for the entity in the persistent storage, and if not found, creates it.getGeneMappingSummary
(BioSequence biologicalCharacteristic, CompositeSequenceValueObject cs) getGenes
(Collection<CompositeSequence> sequences) Given a Collection of composite sequences returns of map of a composite sequence to a collection of genesgetGenes
(CompositeSequence compositeSequence) getGenes
(CompositeSequence compositeSequence, int offset, int limit) getGenesWithSpecificity
(Collection<CompositeSequence> compositeSequences) Collection
<Object[]> getRawSummary
(Collection<CompositeSequence> compositeSequences) Collection
<Object[]> getRawSummary
(ArrayDesign arrayDesign, int numResults) load
(Collection<Long> ids) Loads objects with given ids.loadValueObjectsForGene
(Gene gene, int start, int limit) Include gene mapping summary in theCompositeSequenceValueObject
.void
remove
(CompositeSequence compositeSequence) Removes the given entity from the persistent storage.thaw
(Collection<CompositeSequence> compositeSequences) thaw
(CompositeSequence compositeSequence) void
update
(CompositeSequence compositeSequence) Updates the given entity in the persistent storage.Methods inherited from interface ubic.gemma.persistence.service.BaseImmutableService
create, remove, remove
Methods inherited from interface ubic.gemma.persistence.service.BaseReadOnlyService
countAll, findOrFail, getElementClass, load, loadAll, loadOrFail, loadOrFail, loadOrFail, loadOrFail, streamAll, streamAll
Methods inherited from interface ubic.gemma.persistence.service.BaseService
save, save, update
Methods inherited from interface ubic.gemma.persistence.service.BaseVoEnabledService
loadAllValueObjects, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjectsByIds
Methods inherited from interface ubic.gemma.persistence.service.FilteringService
count, getFilter, getFilter, getFilter, getFilter, getFilter, getFilter, getFilterableProperties, getFilterablePropertyAllowedValues, getFilterablePropertyConfigAttributes, getFilterablePropertyDescription, getFilterablePropertyIsUsingSubquery, getFilterablePropertyResolvableAllowedValuesLabels, getFilterablePropertyType, getIdentifierPropertyName, getSort, load, load, loadIds
Methods inherited from interface ubic.gemma.persistence.service.FilteringVoEnabledService
loadValueObjects, loadValueObjects
-
Method Details
-
find
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_COMPOSITE_SEQUENCE_COLLECTION_READ"}) CompositeSequence find(CompositeSequence compositeSequence) Description copied from interface:BaseReadOnlyService
Does a search for the entity in the persistent storage- Specified by:
find
in interfaceBaseReadOnlyService<CompositeSequence>
- Parameters:
compositeSequence
- the entity to be searched for- Returns:
- the version of entity retrieved from the persistent storage, if found, otherwise null.
-
findOrCreate
Description copied from interface:BaseImmutableService
Does a search for the entity in the persistent storage, and if not found, creates it.- Specified by:
findOrCreate
in interfaceBaseImmutableService<CompositeSequence>
- Parameters:
compositeSequence
- the entity to look for, and create if not found.- Returns:
- the entity retrieved from the persistent storage, either found or created.
-
create
Description copied from interface:BaseImmutableService
Creates the given entity in the persistent storage.- Specified by:
create
in interfaceBaseImmutableService<CompositeSequence>
- Parameters:
compositeSequence
- the entity to be created.- Returns:
- object referencing the persistent instance of the given entity.
-
load
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_COMPOSITE_SEQUENCE_COLLECTION_READ"}) Collection<CompositeSequence> load(Collection<Long> ids) Description copied from interface:BaseReadOnlyService
Loads objects with given ids.- Specified by:
load
in interfaceBaseReadOnlyService<CompositeSequence>
- Parameters:
ids
- the ids of objects to be loaded.- Returns:
- collection containing object with given IDs.
-
remove
Description copied from interface:BaseImmutableService
Removes the given entity from the persistent storage.- Specified by:
remove
in interfaceBaseImmutableService<CompositeSequence>
- Parameters:
compositeSequence
- the entity to be removed.
-
update
Description copied from interface:BaseService
Updates the given entity in the persistent storage.- Specified by:
update
in interfaceBaseService<CompositeSequence>
- Parameters:
compositeSequence
- the entity to be updated.
-
findByBioSequence
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_COMPOSITE_SEQUENCE_COLLECTION_READ"}) Collection<CompositeSequence> findByBioSequence(BioSequence bioSequence) -
findByBioSequenceName
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_COMPOSITE_SEQUENCE_COLLECTION_READ"}) Collection<CompositeSequence> findByBioSequenceName(String name) -
findByGene
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_COMPOSITE_SEQUENCE_COLLECTION_READ"}) Collection<CompositeSequence> findByGene(Gene gene) -
loadValueObjectWithGeneMappingSummary
@Nullable @Transactional(readOnly=true) CompositeSequenceValueObject loadValueObjectWithGeneMappingSummary(CompositeSequence cs) Include gene mapping summary in theCompositeSequenceValueObject
. -
loadValueObjectsForGene
-
findByGene
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_COMPOSITE_SEQUENCE_COLLECTION_READ"}) Collection<CompositeSequence> findByGene(Gene gene, ArrayDesign arrayDesign) -
findByName
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_COMPOSITE_SEQUENCE_COLLECTION_READ"}) Collection<CompositeSequence> findByName(String name) -
findByName
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_COMPOSITE_SEQUENCE_READ"}) CompositeSequence findByName(ArrayDesign arrayDesign, String name) -
findByNamesInArrayDesigns
@Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_COMPOSITE_SEQUENCE_COLLECTION_READ"}) Collection<CompositeSequence> findByNamesInArrayDesigns(Collection<String> compositeSequenceNames, Collection<ArrayDesign> arrayDesigns) -
getGenes
Given a Collection of composite sequences returns of map of a composite sequence to a collection of genes- Parameters:
sequences
- sequences- Returns:
- map
-
getGenes
-
getGenes
-
getGenesWithSpecificity
Map<CompositeSequence,Collection<BioSequence2GeneProduct>> getGenesWithSpecificity(Collection<CompositeSequence> compositeSequences) - Parameters:
compositeSequences
- sequences- Returns:
- a map of CompositeSequences to collection of BioSequence2GeneProducts at each location.
-
getRawSummary
-
getRawSummary
-
getGeneMappingSummary
Collection<GeneMappingSummary> getGeneMappingSummary(BioSequence biologicalCharacteristic, @Nullable CompositeSequenceValueObject cs) -
thaw
@CheckReturnValue Collection<CompositeSequence> thaw(Collection<CompositeSequence> compositeSequences) -
thaw
-