All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.charite.compbio.jannovar.mendel.ModeOfInheritance Maven / Gradle / Ivy

There is a newer version: 0.41
Show newest version
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