Esempio n. 1
0
 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)
Esempio n. 2
0
 def test_bad_filename(self):
     bim = ps.PlinkBIMFile('test/plink_test/plink.fam')
Esempio n. 3
0
 def setUp(self):
     self.M = 8
     self.N = 5
     self.bim = ps.PlinkBIMFile('test/plink_test/plink.bim')
Esempio n. 4
0
 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)
Esempio n. 5
0
 def setUp(self):
     self.M = 8
     self.N = 5
     self.bim = ps.PlinkBIMFile(
         os.path.join(PLINK_TEST_FILES_DIR, 'plink.bim'))