Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
barrOs
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor 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
schwede
barrOs
Commits
fbfc632c
Commit
fbfc632c
authored
1 year ago
by
Joana Pereira
Browse files
Options
Downloads
Patches
Plain Diff
added option to provide directory with pdb files as input
parent
22afd4e8
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
barrOs_library.py
+4
-1
4 additions, 1 deletion
barrOs_library.py
with
4 additions
and
1 deletion
barrOs_library.py
+
4
−
1
View file @
fbfc632c
...
...
@@ -20,7 +20,7 @@ from random import *
from
scipy
import
stats
## DEFINE DEFAULT PARAMETERS
accepted_input_types
=
[
'
pdb_file
'
,
'
pdbID
'
,
'
hhpred
'
,
'
pdbsum_fasta
'
]
accepted_input_types
=
[
'
pdb_file
'
,
'
pdbID
'
,
'
pdb_folder
'
,
'
hhpred
'
,
'
pdbsum_fasta
'
]
accepted_modes
=
[
'
membrane
'
,
'
non-membrane
'
,
'
all
'
]
## 0. FOR LOGGING
...
...
@@ -333,6 +333,9 @@ def get_all_pdbIDs(input_files, input_types):
if
input_types
[
i
]
==
'
pdb_file
'
:
pdb_file
=
input_string
pdbIDs
.
append
(
pdb_file
)
elif
input_types
[
i
]
==
'
pdb_folder
'
:
pdb_files
=
[
'
{}/{}
'
.
format
(
input_string
,
f
)
for
f
in
os
.
listdir
(
input_string
)
if
f
.
endswith
(
'
.pdb
'
)]
pdbIDs
+=
pdb_files
elif
input_types
[
i
]
==
'
pdbID
'
:
pdbIDs
.
append
(
input_string
)
elif
input_types
[
i
]
==
'
hhpred
'
:
...
...
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