def test_bim(self): bim = ps.PlinkBIMFile('test/plink_test/plink.bim') print bim.IDList assert bim.n == 8 correct = np.array( ['rs_0', 'rs_1', 'rs_2', 'rs_3', 'rs_4', 'rs_5', 'rs_6', 'rs_7']) assert np.all(bim.IDList.values.reshape(8) == correct)
def test_bad_filename(self): bim = ps.PlinkBIMFile('test/plink_test/plink.fam')
def setUp(self): self.M = 8 self.N = 5 self.bim = ps.PlinkBIMFile('test/plink_test/plink.bim')
def test_bim(self): bim = ps.PlinkBIMFile(os.path.join(DIR, 'plink_test/plink.bim')) assert_equal(bim.n, 8) correct = np.array( ['rs_0', 'rs_1', 'rs_2', 'rs_3', 'rs_4', 'rs_5', 'rs_6', 'rs_7']) assert_array_equal(bim.IDList.values.reshape(8), correct)
def setUp(self): self.M = 8 self.N = 5 self.bim = ps.PlinkBIMFile( os.path.join(PLINK_TEST_FILES_DIR, 'plink.bim'))