Interface CompositeSequenceReadService
- All Known Implementing Classes:
CompositeSequenceReadServiceImpl
CompositeSequence.
Phase 3 of the CompositeSequenceService decomposition (strangler fig). This
service houses the pure DAO-delegate read cluster previously implemented directly on the
CompositeSequenceServiceImpl facade: the findByBioSequence* /
findByGene* / findByGenes* / findByName* lookups,
findByNamesInArrayDesigns, the getGenes* variants,
getGenesWithSpecificity, the getRawSummary variants, and thaw.
All methods delegate to CompositeSequenceDao with no orchestration of other
collaborator services.
Methods that compose multiple read collaborators (gene-mapping summaries, VO-enrichment with platform VOs) remain on the facade for now; they may be split into their own slice later.
Callers should generally keep using CompositeSequenceService as the facade —
the facade delegates to this service. Direct injection is appropriate where a class
would otherwise create a Spring construction cycle through the heavier facade.
ACL / @Secured annotations live on CompositeSequenceService (the
caller-facing facade interface); enforcement happens at the facade proxy boundary, so
this interface is intentionally unsecured.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionfindByBioSequence(BioSequence bioSequence) findByBioSequenceName(String name) findByGene(Gene gene, boolean useGene2Cs) findByGene(Gene gene, ArrayDesign arrayDesign, boolean useGene2Cs) findByGenes(Collection<Gene> genes, boolean useGene2Cs) findByGenes(Collection<Gene> genes, ArrayDesign arrayDesign, boolean useGene2Cs) findByName(String name) findByName(ArrayDesign arrayDesign, String name) findByNamesInArrayDesigns(Collection<String> compositeSequenceNames, Collection<ArrayDesign> arrayDesigns) Resolve composite sequence names against a collection of array designs, preserving insertion order and discarding names that don't match any sequence on any of the supplied platforms.findIdsByGeneIds(Collection<Long> geneIds, Long arrayDesignId) getGeneData(Collection<Long> compositeSequenceIds) getGenes(Collection<CompositeSequence> sequences, boolean useGene2Cs) getGenes(CompositeSequence compositeSequence, boolean useGene2Cs) Return all genes mapped to the given composite sequence.getGenes(CompositeSequence compositeSequence, int offset, int limit, boolean useGene2Cs) getGenesByCursor(CompositeSequence compositeSequence, Cursor cursor, int limit, boolean useGene2Cs) getGenesWithSpecificity(Collection<CompositeSequence> compositeSequences) Collection<Object[]> getRawSummary(Collection<CompositeSequence> compositeSequences) Collection<Object[]> getRawSummary(ArrayDesign arrayDesign, int numResults) getSequenceData(Collection<Long> compositeSequenceIds) thaw(Collection<CompositeSequence> compositeSequences) Thaw a collection ofCompositeSequencefor full traversal.thaw(CompositeSequence compositeSequence) Thaw a singleCompositeSequencefor full traversal.
-
Method Details
-
findByBioSequence
- See Also:
-
findByBioSequenceName
- See Also:
-
findByGene
- See Also:
-
findByGene
- See Also:
-
findByGenes
- See Also:
-
findByGenes
Map<Gene, Collection<CompositeSequence>> findByGenes(Collection<Gene> genes, ArrayDesign arrayDesign, boolean useGene2Cs) - See Also:
-
findByName
- See Also:
-
findByName
- See Also:
-
findByNamesInArrayDesigns
@Nullable Collection<CompositeSequence> findByNamesInArrayDesigns(Collection<String> compositeSequenceNames, Collection<ArrayDesign> arrayDesigns) Resolve composite sequence names against a collection of array designs, preserving insertion order and discarding names that don't match any sequence on any of the supplied platforms. -
getGenes
Map<CompositeSequence, Collection<Gene>> getGenes(Collection<CompositeSequence> sequences, boolean useGene2Cs) - See Also:
-
getGenes
Return all genes mapped to the given composite sequence. -
getGenes
Slice<Gene> getGenes(CompositeSequence compositeSequence, int offset, int limit, boolean useGene2Cs) - See Also:
-
getGenesByCursor
CursorPage<Gene> getGenesByCursor(CompositeSequence compositeSequence, @Nullable Cursor cursor, int limit, boolean useGene2Cs) - See Also:
-
getGenesWithSpecificity
Map<CompositeSequence, Collection<BioSequence2GeneProduct>> getGenesWithSpecificity(Collection<CompositeSequence> compositeSequences) - See Also:
-
getRawSummary
- See Also:
-
getRawSummary
- See Also:
-
thaw
@CheckReturnValue Collection<CompositeSequence> thaw(Collection<CompositeSequence> compositeSequences) Thaw a collection ofCompositeSequencefor full traversal. -
thaw
Thaw a singleCompositeSequencefor full traversal. -
getSequenceData
Map<Long, CompositeSequenceDao.BioSequenceLite> getSequenceData(Collection<Long> compositeSequenceIds) - See Also:
-
getGeneData
- See Also:
-
findIdsByGeneIds
- See Also:
-