コード例 #1
0
    def test_splitvcf(self):
        in_file = self.config["input_split"]
        correct = self.config["correct_split"]
        out_files = split_vcf(in_file, self.config)
        self.assertTrue(all(map(filecmp.cmp, out_files, correct)))

        # cleanup
        data_dir = os.path.dirname(in_file)
        shutil.rmtree(os.path.join(data_dir, "split"))
        os.remove(in_file + ".gz")
        os.remove(in_file + ".gz.tbi")
コード例 #2
0
ファイル: test_split_vcf.py プロジェクト: 16NWallace/bcbb
    def test_splitvcf(self):
        in_file = self.config["input_split"]
        correct = self.config["correct_split"]
        out_files = split_vcf(in_file, self.config)
        self.assertTrue(all(map(filecmp.cmp, out_files, correct)))

        # cleanup
        data_dir = os.path.dirname(in_file)
        shutil.rmtree(os.path.join(data_dir, "split"))
        os.remove(in_file + ".gz")
        os.remove(in_file + ".gz.tbi")
コード例 #3
0
    def test_splitvcf(self):
        data_subdir = os.path.join(self.data_dir, "split_vcf")
        config_file = os.path.join(data_subdir, "test_split_vcf.yaml")
        with open(config_file) as in_handle:
            config = yaml.load(in_handle)
        in_file = config["input_split"]
        correct_files = config["correct_split"]
        out_files = split_vcf(in_file, config)
        self.assertTrue(all(map(filecmp.cmp, out_files, correct_files)))

        # cleanup
        data_dir = os.path.dirname(in_file)
        shutil.rmtree(os.path.join(data_dir, "split"))
        os.remove(in_file + ".gz")
        os.remove(in_file + ".gz.tbi")