Genotypes¶
-
skallel.genotypes_locate_hom(gt)¶ Locate homozygous genotype calls.
- Parameters
- gtarray_like, int
- Returns
- outarray_like, bool
-
skallel.genotypes_locate_het(gt)¶ Locate heterozygous genotype calls.
- Parameters
- gtarray_like, int
- Returns
- outarray_like, bool
-
skallel.genotypes_locate_call(gt, *, call)¶ Locate genotypes with the given call.
- Parameters
- gtarray_like, int
- callarray_like, int
- Returns
- outarray_like, bool
-
skallel.genotypes_count_alleles(gt, *, max_allele)¶ Count the number of calls for each allele.
- Parameters
- gtarray_like, int
- max_alleleint8
- Returns
- acarray_like, int
-
skallel.genotypes_to_called_allele_counts(gt)¶ Count non-missing alleles within genotype calls.
- Parameters
- gtarray_like, int
- Returns
- outarray_like, int
-
skallel.genotypes_to_missing_allele_counts(gt)¶ Count missing alleles within genotype calls.
- Parameters
- gtarray_like, int
- Returns
- outarray_like, bool
-
skallel.genotypes_to_allele_counts(gt, *, max_allele)¶ Convert genotypes to allele counts.
- Parameters
- gtarray_like, int
- max_alleleint
- Returns
- acarray_like, int
-
skallel.genotypes_to_allele_counts_melt(gt, *, max_allele)¶ Convert genotypes to allele counts, melting each allele into a separate row.
- Parameters
- gtarray_like, int
- max_alleleint
- Returns
- acarray_like, int
-
skallel.genotypes_to_major_allele_counts(gt, *, max_allele)¶ Convert genotypes to major allele counts.
- Parameters
- gtarray_like, int
- max_alleleint
- Returns
- acarray_like, int
-
skallel.genotypes_to_haplotypes(gt)¶ TODO
- Parameters
- gtarray_like, int
- Returns
- htarray_like, int