Esempio n. 1
0
 def test_save_discrepant_positions(self):
     sc = SNPsCollection()
     sc.load_snps(["tests/input/NCBI36.csv", "tests/input/GRCh37.csv"])
     assert len(sc.discrepant_positions) == 4
     discrepant_positions_file = sc.save_discrepant_positions()
     assert (os.path.relpath(discrepant_positions_file) ==
             "output/discrepant_positions.csv")
     assert os.path.exists(discrepant_positions_file)
Esempio n. 2
0
 def test_save_discrepant_positions_exception(self):
     sc = SNPsCollection()
     sc._discrepant_positions = "invalid"
     assert not sc.save_discrepant_positions()
Esempio n. 3
0
 def test_save_discrepant_positions_no_discrepant_snps(self):
     sc = SNPsCollection()
     assert len(sc.discrepant_positions) == 0
     assert not sc.save_discrepant_positions()