Class GeneMappingSummaryValueObject
- All Implemented Interfaces:
Serializable
The wire counterpart of GeneMappingSummary, which cannot be serialized as-is. That class
predates the REST API and was shaped for a DWR/javascript client: it carries the same genes three
times over (geneProductMap keyed by object, plus geneProductIdMap and
geneProductIdGeneMap, two string-keyed mirrors that exist because "javascript clients
cannot marshal maps unless the keys are strings"), and it holds a compositeSequence
back-reference to the very value object that would contain it. Serializing it would emit each
gene three times, key one of those maps by Object.toString(), and nest the parent inside
its own child.
Alignment scores and the biological-sequence metadata both live on blatResult — its
identity / score and its querySequence respectively — rather than being
repeated at this level as GeneMappingSummary does.
- Author:
- paul
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGeneMappingSummaryValueObject(BlatResultValueObject blatResult, List<GeneReferenceValueObject> genes) -
Method Summary
Modifier and TypeMethodDescriptionThe alignment this mapping rests on, carrying the scores (identity,score), the genomic coordinates, and the probe's biological sequence underquerySequence.getGenes()Genes this alignment supports, deduplicated — a gene reached through several of its gene products appears once.voidsetBlatResult(BlatResultValueObject blatResult) The alignment this mapping rests on, carrying the scores (identity,score), the genomic coordinates, and the probe's biological sequence underquerySequence.voidsetGenes(List<GeneReferenceValueObject> genes) Genes this alignment supports, deduplicated — a gene reached through several of its gene products appears once.
-
Constructor Details
-
GeneMappingSummaryValueObject
public GeneMappingSummaryValueObject(@Nullable BlatResultValueObject blatResult, List<GeneReferenceValueObject> genes) -
GeneMappingSummaryValueObject
public GeneMappingSummaryValueObject()
-
-
Method Details
-
getBlatResult
The alignment this mapping rests on, carrying the scores (identity,score), the genomic coordinates, and the probe's biological sequence underquerySequence.Null only for mappings that come from an annotation association rather than a real alignment.
-
getGenes
Genes this alignment supports, deduplicated — a gene reached through several of its gene products appears once. Empty for an alignment that maps to no gene, which is a real and reportable outcome rather than a missing value. -
setBlatResult
The alignment this mapping rests on, carrying the scores (identity,score), the genomic coordinates, and the probe's biological sequence underquerySequence.Null only for mappings that come from an annotation association rather than a real alignment.
-
setGenes
Genes this alignment supports, deduplicated — a gene reached through several of its gene products appears once. Empty for an alignment that maps to no gene, which is a real and reportable outcome rather than a missing value.
-