예제 #1
0
파일: sites.py 프로젝트: ulelab/imaps
 def validate_inputs(self):
     """Validate inputs."""
     validate_bam_file(self.bam, check_exist=True)
     validate_bed_file(self.output)
     validate_string(self.quant, choices=["cDNA", "reads"])
     validate_integer(self.multimax)
     validate_string(self.group_by, choices=["start", "middle", "end"])
예제 #2
0
    def test_validate_bed_file(self):
        message = "Bed file file.txt should have a valid bed extension."
        with self.assertRaisesRegex(ValueError, message):
            validate_bed_file("file.txt", check_exist=False)

        message = "Bed file file.bed does not exist."
        with self.assertRaisesRegex(ValueError, message):
            validate_bed_file("file.bed", check_exist=True)

        bed = self.make_bed(intervals=[["chr1", 10, 20, ".", 12, "+"]])
        validate_bed_file(bed, check_exist=True)
예제 #3
0
파일: example.py 프로젝트: ulelab/imaps
 def validate_inputs(self):
     """Validate inputs."""
     validate_bed_file(self.sites, check_exist=True)
     validate_bed_file(self.outfile)