Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sam Nooij
Jovian screener
Commits
b19a7ff1
Commit
b19a7ff1
authored
Aug 07, 2020
by
Sam Nooij
Browse files
Add support for deduplicated files
parent
6bbd1b9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/concatenate_read_counts.py
View file @
b19a7ff1
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment