def parse_fasta_mhc_dirs( dirs, min_length=0, exclude_allele_substrings=None, require_allele_substrings=None): paths = [] for d in dirs: paths.extend( find_paths( directory_string = d, extensions = [".fa", ".fasta"])) return parse_fasta_mhc_files( paths, min_length=min_length, exclude_allele_substrings=exclude_allele_substrings, require_allele_substrings=require_allele_substrings)
def test_find_paths_wrong_dir(): curr_dir = split(__file__)[0] wrong_dir = curr_dir + "_NONSENSE_!!!!!" test_files = find_paths(directory_string = wrong_dir)
def test_find_paths(): curr_dir = split(__file__)[0] test_files = find_paths(directory_string = curr_dir, extensions = [".py"]) assert len(test_files) > 0