Mercurial > repos > kkonganti > cfsan_centriflaken
comparison 0.4.0/bin/fastq_dir_to_samplesheet.py @ 104:17890124001d
"planemo upload"
author | kkonganti |
---|---|
date | Sun, 28 Aug 2022 00:37:10 -0400 |
parents | ce6d9548fe89 |
children |
comparison
equal
deleted
inserted
replaced
103:96a34c382154 | 104:17890124001d |
---|---|
104 See also https://stackoverflow.com/questions/6773584/how-is-pythons-glob-glob-ordered | 104 See also https://stackoverflow.com/questions/6773584/how-is-pythons-glob-glob-ordered |
105 """ | 105 """ |
106 abs_fq_files = glob.glob(os.path.join(fastq_dir, f"**", f"*{extension}"), recursive=True) | 106 abs_fq_files = glob.glob(os.path.join(fastq_dir, f"**", f"*{extension}"), recursive=True) |
107 return sorted( | 107 return sorted( |
108 [ | 108 [ |
109 fq for _, fq in enumerate(abs_fq_files) if re.match('^((?!undetermined|unclassified|fail|class|qc|downloads).)*$', fq, flags=re.IGNORECASE) | 109 fq for _, fq in enumerate(abs_fq_files) if re.match('^((?!undetermined|unclassified|downloads).)*$', fq, flags=re.IGNORECASE) |
110 ] | 110 ] |
111 ) | 111 ) |
112 | 112 |
113 read_dict = {} | 113 read_dict = {} |
114 | 114 |