Commit b19a7ff1 authored by Sam Nooij's avatar Sam Nooij
Browse files

Add support for deduplicated files

parent 6bbd1b9a
......@@ -71,7 +71,14 @@ everything from "_to_" until the end.
else:
without_path = filename
without_prefix = without_path.replace("Mapped_read_counts-", "")
if "Mapped_read_counts" in without_path:
without_prefix = without_path.replace("Mapped_read_counts-", "")
elif "Deduplicated_read_counts" in without_path:
without_prefix = without_path.replace("Deduplicated_read_counts-", "")
else:
# This should never happen, but it will show in sample names otherwise.
pass
sample = without_prefix[: without_prefix.index("_to_")]
reference = without_prefix[without_prefix.index("_to_") + 4 : -4]
# Assume the .tsv file extension; hence strip the last 4 characters
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment