def test1_05_sample_noheader_id_csv_nosummary(self): name = sys._getframe().f_code.co_name subprocess.check_call('python paplot mutation "%s/noheader_id/SAMPLE*.csv" %s %s -c %s/noheader_id/csv_nosummary.cfg' % (self.dataset, self.ALT, name, self.dataset), shell=True) ref = test_utils.load_text(self.REF + "test1_01_sample_header_id_csv_nosummary/data_mutation.js") alt = test_utils.load_text(self.ALT + name + "/data_mutation.js") self.assertEqual(ref, alt) ref = test_utils.load_html(self.REF + "test1_01_sample_header_id_csv_nosummary/graph_mutation.html") alt = test_utils.load_html(self.ALT + name + "/graph_mutation.html") self.assertEqual(ref, alt)
def test1_02_stack(self): name = sys._getframe().f_code.co_name subprocess.check_call( 'python paplot signature %s/stack/data2.json %s %s -c %s/stack/paplot.cfg' % (self.dataset, self.ALT, name, self.dataset), shell=True) ref = test_utils.load_text(self.REF + name + "/data_signature2.js") alt = test_utils.load_text(self.ALT + name + "/data_signature2.js") self.assertEqual(ref, alt) ref = test_utils.load_html(self.REF + name + "/graph_signature2.html") alt = test_utils.load_html(self.ALT + name + "/graph_signature2.html") self.assertEqual(ref, alt)
def test1_04_merge_header_id_tsv(self): name = sys._getframe().f_code.co_name subprocess.check_call( 'python paplot ca "%s/header_id/merge.tsv" %s %s -c %s/header_id/tsv.cfg' % (self.dataset, self.ALT, name, self.dataset), shell=True) ref = test_utils.load_text(self.REF + "test1_01_sample_header_id_csv" + "/data_ca.js") alt = test_utils.load_text(self.ALT + name + "/data_ca.js") self.assertEqual(ref, alt) ref = test_utils.load_html( self.REF + "test1_01_sample_header_id_csv/graph_ca.html") alt = test_utils.load_html(self.ALT + name + "/graph_ca.html") self.assertEqual(ref, alt)