Types
DiploidBiallelic = enum db0, db1, db2, dbGap, dbUnk
- Source Edit
HaploidBiallelic = enum hb0, hb1, hbGap, hbUnk
- Source Edit
Consts
diploidBiallelicChar: array[DiploidBiallelic, char] = ['0', '1', '2', '-', '?']
- Source Edit
haploidBiallelicChar: array[HaploidBiallelic, char] = ['0', '1', '-', '?']
- Source Edit
Procs
func parseChar(c: char; typ: typedesc[DiploidBiallelic]): DiploidBiallelic
- Parse character to DiploidBiallelic enum type. Source Edit
func parseChar(c: char; typ: typedesc[HaploidBiallelic]): HaploidBiallelic
- Parse character to DiploidBiallelic enum type. Source Edit
proc toChar(n: DiploidBiallelic): char {....raises: [], tags: [].}
- Source Edit
proc toChar(n: HaploidBiallelic): char {....raises: [], tags: [].}
- Source Edit
proc toDiploidBiallelic(a: Alignment[DNA]; seed: int64 = 1): Alignment[ DiploidBiallelic] {....raises: [ValueError], tags: [].}
- Convert DNA alignment to biallelic alignment. Filters out sites with more than two character states. N treated as missing data. Source Edit