de.charite.compbio.jannovar.mendel.ModeOfInheritance Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jannovar-core Show documentation
Show all versions of jannovar-core Show documentation
jannovar-core is a library for the functional annotation of genomic variants
package de.charite.compbio.jannovar.mendel;
/**
* An enumeration of the four main Mendelian modes of inheritance for prioritizing exome data
*
* @author Peter N Robinson
*/
public enum ModeOfInheritance {
/** autosomal dominant inheritance */
AUTOSOMAL_DOMINANT,
/** autosomal recessive inheritance */
AUTOSOMAL_RECESSIVE,
/** recessive inheritance on X chromosome */
X_RECESSIVE,
/** dominant inheritance on X chromosome */
X_DOMINANT,
/** value for encoding uninitialized values */
ANY;
/** @return two-letter shortcut for the ModeOfInheritance */
public String getAbbreviation() {
switch (this) {
case AUTOSOMAL_DOMINANT:
return "AD";
case AUTOSOMAL_RECESSIVE:
return "AR";
case X_DOMINANT:
return "XD";
case X_RECESSIVE:
return "XR";
case ANY:
default:
return null;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy