Class MultiAlleleProteinVariant
- java.lang.Object
-
- de.charite.compbio.jannovar.hgvs.HGVSVariant
-
- de.charite.compbio.jannovar.hgvs.protein.variant.ProteinVariant
-
- de.charite.compbio.jannovar.hgvs.protein.variant.MultiAlleleProteinVariant
-
- All Implemented Interfaces:
ConvertibleToHGVSString
public class MultiAlleleProteinVariant extends ProteinVariant
Protein variant having multiple alleles.- Author:
- Manuel Holtgrewe
-
-
Field Summary
-
Fields inherited from class de.charite.compbio.jannovar.hgvs.protein.variant.ProteinVariant
NO_PROTEIN_ISOFORM
-
-
Constructor Summary
Constructors Constructor Description MultiAlleleProteinVariant(String proteinID, Collection<ProteinChangeAllele> alleles)
Construct with the given protein ID and collection ofProteinChangeAllele
s.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MultiAlleleProteinVariant
build(String proteinID, ProteinChangeAllele... alleles)
boolean
equals(Object obj)
com.google.common.collect.ImmutableList<ProteinChangeAllele>
getAlleles()
int
hashCode()
String
toHGVSString(AminoAcidCode code)
Return HGVS representation using the given amino acid code.String
toString()
-
Methods inherited from class de.charite.compbio.jannovar.hgvs.protein.variant.ProteinVariant
getProteinID, getSequenceNamePrefix, toHGVSString
-
-
-
-
Constructor Detail
-
MultiAlleleProteinVariant
public MultiAlleleProteinVariant(String proteinID, Collection<ProteinChangeAllele> alleles)
Construct with the given protein ID and collection ofProteinChangeAllele
s.
-
-
Method Detail
-
build
public static MultiAlleleProteinVariant build(String proteinID, ProteinChangeAllele... alleles)
- Returns:
- single-allele protein variant for the given changes
-
getAlleles
public com.google.common.collect.ImmutableList<ProteinChangeAllele> getAlleles()
- Returns:
- the alleles
-
toHGVSString
public String toHGVSString(AminoAcidCode code)
Description copied from interface:ConvertibleToHGVSString
Return HGVS representation using the given amino acid code.- Parameters:
code
-AminoAcidCode
to use- Returns:
- HGVS representation, e.g. "133L" for an
ProteinPointLocation
-
toString
public String toString()
- Overrides:
toString
in classProteinVariant
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classProteinVariant
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classProteinVariant
-
-