SNPLIB/snplib.py
def importPLINKDATA(self, bfile):
        """Import plink binary fileset

        Parameters
        ----------
        bfile : str
            The name of plink binary fileset

        """
        filename = bfile + '.bim'
        self.SNPs = pd.read_table(
            bfile+'.bim', sep=None, names=['CHR', 'RSID', 'Cm', 'POS', 'ALT', 'REF'], engine='python')
        self.Samples = pd.read_table(bfile+'.fam', sep=None,
                                     names=['FID', 'IID', 'PID', 'MID', 'Sex', 'Pheno'], engine='python')
        self.nSNPs = self.SNPs.shape[0]
        self.nSamples = self.Samples.shape[0]
        filename = bfile + '.bed'
        num_bytes = math.ceil(self.nSamples / 4.0)
        GENO = np.fromfile(filename, dtype=np.uint8, count=-1)
        GENO = GENO[3:]
        self.GENO = np.reshape(GENO, (num_bytes, - 1), order='F')
Import plink binary fileset

        Parameters
        ----------
        bfile : str
            The name of plink binary fileset

        
Import plink binary fileset
Parameters

bfile : str
The name of plink binary fileset
Import plink binary fileset Parameters bfile : str The name of plink binary fileset
def importPLINKDATA(self, bfile):
        filename = bfile + '.bim'
        self.SNPs = pd.read_table(
            bfile+'.bim', sep=None, names=['CHR', 'RSID', 'Cm', 'POS', 'ALT', 'REF'], engine='python')
        self.Samples = pd.read_table(bfile+'.fam', sep=None,
                                     names=['FID', 'IID', 'PID', 'MID', 'Sex', 'Pheno'], engine='python')
        self.nSNPs = self.SNPs.shape[0]
        self.nSamples = self.Samples.shape[0]
        filename = bfile + '.bed'
        num_bytes = math.ceil(self.nSamples / 4.0)
        GENO = np.fromfile(filename, dtype=np.uint8, count=-1)
        GENO = GENO[3:]
        self.GENO = np.reshape(GENO, (num_bytes, - 1), order='F')
def importPLINKDATA ( self , bfile ) : filename = bfile + '.bim' self . SNPs = pd . read_table ( bfile + '.bim' , sep = None , names = [ 'CHR' , 'RSID' , 'Cm' , 'POS' , 'ALT' , 'REF' ] , engine = 'python' ) self . Samples = pd . read_table ( bfile + '.fam' , sep = None , names = [ 'FID' , 'IID' , 'PID' , 'MID' , 'Sex' , 'Pheno' ] , engine = 'python' ) self . nSNPs = self . SNPs . shape [ 0 ] self . nSamples = self . Samples . shape [ 0 ] filename = bfile + '.bed' num_bytes = math . ceil ( self . nSamples / 4.0 ) GENO = np . fromfile ( filename , dtype = np . uint8 , count = - 1 ) GENO = GENO [ 3 : ] self . GENO = np . reshape ( GENO , ( num_bytes , - 1 ) , order = 'F' )
Import plink binary fileset
Parameters
Import plink binary fileset Parameters
"""Import plink binary fileset

        Parameters
        ----------
        bfile : str
            The name of plink binary fileset

        """
self
bfile