SNPLIB/snplib.py
def GenerateIndividuals(self, af):
        """Simulate the genotypes according to the individual allele frequencies

        Parameters
        ----------
        af : ndarray
            A `ndarray` matrix contains the individual allele frequencies, with shape of  ``(num_samples, num_snps)``
        """
        self.nSamples = af.shape[0]
        self.nSNPs = af.shape[1]
        self.GENO = lib.GenerateIndividuals(af)
Simulate the genotypes according to the individual allele frequencies

        Parameters
        ----------
        af : ndarray
            A `ndarray` matrix contains the individual allele frequencies, with shape of  ``(num_samples, num_snps)``
        
Simulate the genotypes according to the individual allele frequencies
Parameters


Simulate the genotypes according to the individual allele frequencies Parameters
def GenerateIndividuals(self, af):
        self.nSamples = af.shape[0]
        self.nSNPs = af.shape[1]
        self.GENO = lib.GenerateIndividuals(af)
def GenerateIndividuals ( self , af ) : self . nSamples = af . shape [ 0 ] self . nSNPs = af . shape [ 1 ] self . GENO = lib . GenerateIndividuals ( af )
Simulate the genotypes according to the individual allele frequencies
Parameters
Simulate the genotypes according to the individual allele frequencies Parameters
"""Simulate the genotypes according to the individual allele frequencies

        Parameters
        ----------
        af : ndarray
            A `ndarray` matrix contains the individual allele frequencies, with shape of  ``(num_samples, num_snps)``
        """
self
af