Skip to content
Snippets Groups Projects
Commit ace8d352 authored by Rachel  LEGENDRE's avatar Rachel LEGENDRE
Browse files

remove glob to find fastq

parent ce84c726
No related branches found
No related tags found
No related merge requests found
...@@ -27,7 +27,6 @@ import pandas as pd ...@@ -27,7 +27,6 @@ import pandas as pd
from fnmatch import fnmatch from fnmatch import fnmatch
from re import sub, match from re import sub, match
from itertools import repeat, chain from itertools import repeat, chain
import glob
import os import os
...@@ -41,7 +40,7 @@ RULES = os.path.join("workflow", "rules") ...@@ -41,7 +40,7 @@ RULES = os.path.join("workflow", "rules")
#------------------------------------------------------- #-------------------------------------------------------
# list of all files in the directory 'input_dir' # 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 : if not filenames :
raise ValueError("Please provides input fastq files") raise ValueError("Please provides input fastq files")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment