Class SingleAlleleNucleotideVariant
- java.lang.Object
-
- de.charite.compbio.jannovar.hgvs.HGVSVariant
-
- de.charite.compbio.jannovar.hgvs.nts.variant.NucleotideVariant
-
- de.charite.compbio.jannovar.hgvs.nts.variant.SingleAlleleNucleotideVariant
-
- All Implemented Interfaces:
ConvertibleToHGVSString
public class SingleAlleleNucleotideVariant extends NucleotideVariant
Nucleotide change with one allele only.- Author:
- Manuel Holtgrewe
-
-
Field Summary
-
Fields inherited from class de.charite.compbio.jannovar.hgvs.nts.variant.NucleotideVariant
NO_TRANSCRIPT_VERSION
-
-
Constructor Summary
Constructors Constructor Description SingleAlleleNucleotideVariant(SequenceType seqType, String seqID, NucleotideChangeAllele allele)
ConstructSingleAlleleNucleotideVariant
SingleAlleleNucleotideVariant(SequenceType seqType, String seqID, VariantConfiguration varConfig, Collection<? extends NucleotideChange> changes)
ConstructSingleAlleleNucleotideVariant
SingleAlleleNucleotideVariant(SequenceType seqType, String refID, String proteinID, int transcriptVersion, NucleotideChangeAllele allele)
ConstructSingleAlleleNucleotideVariant
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SingleAlleleNucleotideVariant
build(SequenceType seqType, String seqID, VariantConfiguration varConfig, NucleotideChange... changes)
boolean
equals(Object obj)
NucleotideChangeAllele
getAllele()
NucleotideChange
getChange()
int
hashCode()
boolean
hasOnlyOneChange()
static SingleAlleleNucleotideVariant
makeSingleChangeVariant(SequenceType seqType, String seqID, NucleotideChange change)
String
toHGVSString()
Return HGVS representation in three-letter amino acid code.-
Methods inherited from class de.charite.compbio.jannovar.hgvs.nts.variant.NucleotideVariant
getProteinID, getRefID, getRefIDWithVersion, getSeqType, getSequenceNamePrefix, getTranscriptVersion, toHGVSString, toString
-
-
-
-
Constructor Detail
-
SingleAlleleNucleotideVariant
public SingleAlleleNucleotideVariant(SequenceType seqType, String seqID, VariantConfiguration varConfig, Collection<? extends NucleotideChange> changes)
ConstructSingleAlleleNucleotideVariant
- Parameters:
seqType
- type of the changed sequenceseqID
- ID of the reference/transcript that the change is onvarConfig
-VariantConfiguration
of theNucleotideChange
s in the allelechanges
-NucleotideChange
s to use for the single allele
-
SingleAlleleNucleotideVariant
public SingleAlleleNucleotideVariant(SequenceType seqType, String refID, String proteinID, int transcriptVersion, NucleotideChangeAllele allele)
ConstructSingleAlleleNucleotideVariant
-
SingleAlleleNucleotideVariant
public SingleAlleleNucleotideVariant(SequenceType seqType, String seqID, NucleotideChangeAllele allele)
ConstructSingleAlleleNucleotideVariant
- Parameters:
seqType
- type of the changed sequenceseqID
- ID of the reference/transcript that the change is onallele
-NucleotideChangeAllele
to use
-
-
Method Detail
-
makeSingleChangeVariant
public static SingleAlleleNucleotideVariant makeSingleChangeVariant(SequenceType seqType, String seqID, NucleotideChange change)
- Returns:
- nucleotide variant for one change only
-
build
public static SingleAlleleNucleotideVariant build(SequenceType seqType, String seqID, VariantConfiguration varConfig, NucleotideChange... changes)
- Returns:
- single-change
SingleAlleleNucleotideVariant
with the givenSequenceType
, reference/transcript ID, andVariantConfiguration
-
hasOnlyOneChange
public boolean hasOnlyOneChange()
- Returns:
true
if the variant has only oneNucleotideChange
.
-
getChange
public NucleotideChange getChange()
- Returns:
- first change, convenience method for single-change variants
-
getAllele
public NucleotideChangeAllele getAllele()
- Returns:
- list of changes
-
toHGVSString
public String toHGVSString()
Description copied from interface:ConvertibleToHGVSString
Return HGVS representation in three-letter amino acid code.- Returns:
- HGVS representation, e.g. "133L" for an
ProteinPointLocation
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classNucleotideVariant
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classNucleotideVariant
-
-