Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
psot.repository
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SOaAS
psot.repository
Commits
222f3972
Commit
222f3972
authored
8 years ago
by
Lukas Jelonek
Browse files
Options
Downloads
Patches
Plain Diff
Added a database configuration parameter to the blast wrapper. Renamed the files.
parent
82e52112
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
bin/convert_blastp.py
+0
-0
0 additions, 0 deletions
bin/convert_blastp.py
bin/run_blastp.py
+2
-6
2 additions, 6 deletions
bin/run_blastp.py
modules/blast_vs_swissprot.yaml
+6
-2
6 additions, 2 deletions
modules/blast_vs_swissprot.yaml
with
8 additions
and
8 deletions
bin/convert_blast
_swissprot
.py
→
bin/convert_blast
p
.py
+
0
−
0
View file @
222f3972
File moved
This diff is collapsed.
Click to expand it.
bin/
module_blast_swissprot
.py
→
bin/
run_blastp
.py
+
2
−
6
View file @
222f3972
...
...
@@ -6,19 +6,15 @@ from os import system
blastp_tool
=
config
.
load_config
()[
'
tools
'
].
get
(
'
blastp
'
,
'
blastp
'
)
parser
=
argparse
.
ArgumentParser
(
description
=
'
Identify homologues in the swissprot database
'
)
parser
.
add_argument
(
'
--info
'
,
'
-i
'
,
action
=
'
store_true
'
)
parser
.
add_argument
(
'
--fasta
'
,
'
-f
'
,
required
=
True
,
help
=
'
A fasta file with aminoacid sequences
'
)
parser
.
add_argument
(
'
--database
'
,
'
-d
'
,
required
=
True
,
help
=
'
Database to search in
'
)
parser
.
add_argument
(
'
--output
'
,
'
-o
'
,
required
=
True
,
help
=
'
The result file
'
)
parser
.
add_argument
(
'
--evalue
'
,
'
-e
'
,
default
=
'
0.0001
'
,
help
=
'
Evalue cutoff
'
)
parser
.
add_argument
(
'
--alignment
'
,
'
-a
'
,
action
=
'
store_true
'
,
help
=
'
Include alignments in btop format
'
)
args
=
parser
.
parse_args
()
if
args
.
info
:
print
(
"
blast against swissprot
\n
"
)
exit
(
0
)
format
=
'
7 qseqid sseqid pident qstart qend sstart send evalue bitscore
'
if
args
.
alignment
:
format
+=
'
btop
'
system
(
blastp_tool
+
"
-db
/vol/biodb/uniprot/uniprot_sprot.fasta
-num_threads 7 -outfmt
'"
+
format
+
"'
-out
"
+
args
.
output
+
"
-query
"
+
args
.
fasta
)
system
(
blastp_tool
+
"
-db
"
+
args
.
database
+
"
-num_threads 7 -outfmt
'"
+
format
+
"'
-out
"
+
args
.
output
+
"
-query
"
+
args
.
fasta
)
This diff is collapsed.
Click to expand it.
modules/blast_vs_swissprot.yaml
+
6
−
2
View file @
222f3972
...
...
@@ -8,8 +8,12 @@ name: 'blastp_swissprot'
info
:
'
blastp
analysis
against
swissprot'
# The name of the script for the analysis step. Must take a --fasta parameter
analysis_script
:
'
module_blast_swissprot
.py'
analysis_script
:
'
run_blastp
.py'
# The name of the result to json converter script. Must take one parameter, the
# result file from the analysis_script
converter_script
:
'
convert_blast_swissprot.py'
converter_script
:
'
convert_blastp.py'
parameters
:
database
:
'
/vol/biodb/uniprot/uniprot_sprot.fasta'
evalue
:
1e-10
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment