Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mdehollander committed Mar 13, 2017
1 parent 614182b commit 628dbc9
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,16 @@ def get_sample_files(path):
sample_id = sample_id.replace("_R1", "").replace("_r1", "").replace("_R2", "").replace("_r2", "")
sample_id = re.sub("_1$", "", sample_id)
sample_id = re.sub("_2$", "", sample_id)
# sample_id = replace_last(sample_id, "_1", "")
# sample_id = replace_last(sample_id, "_2", "")
sample_id = sample_id.replace("_", "-").replace(" ", "-")
# print(sample_id)

fq_path = os.path.join(dir_name, fname)
fastq_paths = [fq_path]

if fq_path in seen: continue

print(fname)
if "_R1" in fname or "_r1" in fname or "_1" in fname:
fname = replace_last(fname,"_1.","_2.")
r2_path = os.path.join(dir_name, fname.replace("_R1", "_R2").replace("_r1", "_r2"))
print(r2_path)
if not r2_path == fq_path:
seen.add(r2_path)
fastq_paths.append(r2_path)
Expand Down

0 comments on commit 628dbc9

Please sign in to comment.