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
Blaise LI
bioinfo_utils
Commits
d35d737f
Commit
d35d737f
authored
Nov 10, 2021
by
Blaise Li
Browse files
Trying to fix max_len determination.
parent
d8f9386c
Changes
1
Hide whitespace changes
Inline
Side-by-side
small_RNA-seq/small_RNA-seq.snakefile
View file @
d35d737f
...
...
@@ -4221,7 +4221,7 @@ rule plot_size_distribution:
def get_type_max_len(wildcards):
"""Returns the maximum length for a "pi", "si", or "mi" read type.
Otherwise returns
0
."""
Otherwise returns
MAX_LEN
."""
read_type = wildcards.read_type
try:
# ex: "18-26"
...
...
@@ -4231,9 +4231,13 @@ def get_type_max_len(wildcards):
# ex: siuRNA
return read_type_max_len[read_type[:2]]
except KeyError:
# ex: nomap_siRNA
general_type = read_type.split("_")[1]
return read_type_max_len.get(general_type[:2], int(MAX_LEN))
try:
# ex: tRFRNA
return read_type_max_len[read_type[:-3]]
except KeyError:
# ex: nomap_siRNA
general_type = read_type.split("_")[1]
return read_type_max_len.get(general_type[:2], int(MAX_LEN))
rule compute_base_composition_along:
...
...
Write
Preview
Supports
Markdown
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