Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mmassaviol
WAWmassaviol
Commits
fb9ae52b
Commit
fb9ae52b
authored
Oct 11, 2021
by
khalid
Browse files
blastn wright input whene is from makeblastdb
parent
afbe02ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/blastn/blastn.rule.snakefile
View file @
fb9ae52b
...
...
@@ -8,9 +8,10 @@ def <step_name>__db():
db_path = os.path.dirname(files[0])
# if from makeblastdb step
else:
db_name = os.path.basename(os.path.splitext(input.<step_name>__makeblastdb[0])[0])
db_path = os.path.dirname(input.<step_name>__makeblastdb[0])
file = <step_name>__blastn_inputs()["blastdb"][0]
db_name = os.path.splitext(os.path.basename(file))[0]
db_path = os.path.dirname(file)
return { "db_name": db_name, "db_path": db_path }
rule <step_name>__blastn:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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