pandas_genomics.accessors.GenotypeSeriesAccessor¶
-
class
pandas_genomics.accessors.GenotypeSeriesAccessor(obj)[source]¶ Series accessor for GenotypeArray methods
s.genomics.variant_info s.genomics.encode_additive()
Methods
__init__(obj)Initialize self.
calculate_edge_encoding_values(data, …[, …])Calculate alpha values to be used in weighted encoding
contained_by(regions)True if the variant is contained within the specified region(s)
encode_additive()Additive encoding of genotypes.
encode_codominant()Codominant encoding of genotypes.
encode_dominant()Dominant encoding of genotypes.
encode_edge(alpha_value, ref_allele, …)EDGE (weighted) encoding of genotypes.
encode_recessive()Recessive encoding of genotypes.
set_reference(allele)Change the allele reference variant.
Attributes
gt_scoresReturn an array of genotype scores as float values np.nan when the score is missing
hwe_pvalReturn the probability that the samples are in HWE
mafReturn the minor allele frequency
variantRetrieve the variant object
variant_infoRetrieve the variant as a pandas Series