diff --git a/Snakefile b/Snakefile index 22d1aba345a84e2de525ff2151122c05696d06b8..d169fdd9acd4e61d8ae3cbf7faff36bb87e08548 100755 --- a/Snakefile +++ b/Snakefile @@ -27,7 +27,6 @@ import pandas as pd from fnmatch import fnmatch from re import sub, match from itertools import repeat, chain -import glob import os @@ -41,7 +40,7 @@ RULES = os.path.join("workflow", "rules") #------------------------------------------------------- # list of all files in the directory 'input_dir' -filenames = [f for f in glob.glob(config["input_dir"]+"/*") if match(r'.*'+config["input_mate"]+config["input_extension"]+'', f)] +filenames = [f for f in os.listdir(config["input_dir"]) if match(r'.*'+config["input_mate"]+config["input_extension"]+'', f)] if not filenames : raise ValueError("Please provides input fastq files")