Class CompositeSequenceValueObject
- All Implemented Interfaces:
Serializable, Identifiable
- Author:
- anton
- See Also:
-
Field Summary
Fields inherited from class IdentifiableValueObject
id -
Constructor Summary
ConstructorsConstructorDescriptionRequired when using the class as a spring bean.CompositeSequenceValueObject(CompositeSequence cs, ArrayDesignValueObject arrayDesign) Constructor that reuses an existingArrayDesignValueObject. -
Method Summary
Modifier and TypeMethodDescriptionbooleanPer-alignment gene mappings for this element, or null when the caller did not ask for them (onlyGET /platforms/{platform}/elements/{probe}/mappingSummarypopulates this).getGenes()Compact identities of the genes this element maps to, via the denormalizedGENE2CStable.getName()Raw probe sequence from the associatedBioSequence.sequence.Pre-computed length fromBioSequence.length, exposed alongsidesequence.inthashCode()voidsetArrayDesign(ArrayDesignValueObject arrayDesign) voidsetDescription(String description) voidsetGeneMappingSummaries(List<GeneMappingSummaryValueObject> geneMappingSummaries) Per-alignment gene mappings for this element, or null when the caller did not ask for them (onlyGET /platforms/{platform}/elements/{probe}/mappingSummarypopulates this).voidsetGenes(List<GeneReferenceValueObject> genes) Compact identities of the genes this element maps to, via the denormalizedGENE2CStable.voidvoidsetSequence(String sequence) Raw probe sequence from the associatedBioSequence.sequence.voidsetSequenceLength(Long sequenceLength) Pre-computed length fromBioSequence.length, exposed alongsidesequence.Methods inherited from class IdentifiableValueObject
canEqual, getId, setId, toString
-
Constructor Details
-
CompositeSequenceValueObject
public CompositeSequenceValueObject()Required when using the class as a spring bean. -
CompositeSequenceValueObject
-
CompositeSequenceValueObject
-
CompositeSequenceValueObject
Constructor that reuses an existingArrayDesignValueObject.
-
-
Method Details
-
equals
- Overrides:
equalsin classIdentifiableValueObject<CompositeSequence>
-
hashCode
public int hashCode()- Overrides:
hashCodein classIdentifiableValueObject<CompositeSequence>
-
getName
-
getDescription
-
getArrayDesign
-
getGeneMappingSummaries
Per-alignment gene mappings for this element, or null when the caller did not ask for them (onlyGET /platforms/{platform}/elements/{probe}/mappingSummarypopulates this).An EMPTY list means the probe has no gene mappings — a real answer, distinct from the field being absent. Until 2026-08-22 this field was
@JsonIgnored while the endpoint computed it, so the mappingSummary response silently omitted the key altogether and a client could not tell a missing feature from a probe with no alignments. -
getSequence
Raw probe sequence from the associatedBioSequence.sequence. Populated only when the caller opts in via?withSequence=trueon the platform-elements endpoint (otherwise null and elided from the wire by@JsonInclude(NON_NULL)). Kept out of the default response because sequences are 25-300bp per probe and would inflate a 22k-element platform listing by ~1 MB. -
getSequenceLength
Pre-computed length fromBioSequence.length, exposed alongsidesequence. Independent so a caller can request length without paying the full-string cost (future-proofing; for now both come together with?withSequence=true). -
getGenes
Compact identities of the genes this element maps to, via the denormalizedGENE2CStable.Populated only when the caller opts in via
?withGenes=trueon the platform-elements endpoints (otherwise null and elided from the wire by@JsonInclude(NON_NULL)). Off by default for the same reason assequence: the mapping is a second query per page, and most callers paging a 22k-element platform listing never render the column.An empty list means "this element maps to no gene" — distinct from null, which means "not requested". A probe with no gene mapping still gets
[]whenwithGenes=true, so a client can tell a real negative from an unpopulated field. -
setName
-
setDescription
-
setArrayDesign
-
setGeneMappingSummaries
public void setGeneMappingSummaries(@Nullable List<GeneMappingSummaryValueObject> geneMappingSummaries) Per-alignment gene mappings for this element, or null when the caller did not ask for them (onlyGET /platforms/{platform}/elements/{probe}/mappingSummarypopulates this).An EMPTY list means the probe has no gene mappings — a real answer, distinct from the field being absent. Until 2026-08-22 this field was
@JsonIgnored while the endpoint computed it, so the mappingSummary response silently omitted the key altogether and a client could not tell a missing feature from a probe with no alignments. -
setSequence
Raw probe sequence from the associatedBioSequence.sequence. Populated only when the caller opts in via?withSequence=trueon the platform-elements endpoint (otherwise null and elided from the wire by@JsonInclude(NON_NULL)). Kept out of the default response because sequences are 25-300bp per probe and would inflate a 22k-element platform listing by ~1 MB. -
setSequenceLength
Pre-computed length fromBioSequence.length, exposed alongsidesequence. Independent so a caller can request length without paying the full-string cost (future-proofing; for now both come together with?withSequence=true). -
setGenes
Compact identities of the genes this element maps to, via the denormalizedGENE2CStable.Populated only when the caller opts in via
?withGenes=trueon the platform-elements endpoints (otherwise null and elided from the wire by@JsonInclude(NON_NULL)). Off by default for the same reason assequence: the mapping is a second query per page, and most callers paging a 22k-element platform listing never render the column.An empty list means "this element maps to no gene" — distinct from null, which means "not requested". A probe with no gene mapping still gets
[]whenwithGenes=true, so a client can tell a real negative from an unpopulated field.
-