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
Durairaj, Janani
caretta
Commits
f247b004
Commit
f247b004
authored
Nov 05, 2019
by
Akdel
Browse files
bug fix (folder creation)
parent
8d5b42f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
caretta/msa_numba.py
View file @
f247b004
...
...
@@ -210,7 +210,7 @@ def parse_pdb_files(input_pdb: str, output_pdb: typing.Union[str, Path] = "./cle
for
pdb_file
in
pdb_files
:
pdb
=
pd
.
parsePDB
(
pdb_file
).
select
(
"protein"
)
chains
=
pdb
.
getChids
()
if
len
(
chains
):
if
len
(
chains
)
and
len
(
chains
[
0
].
strip
())
:
pdb
=
pdb
.
select
(
f
"chain
{
chains
[
0
]
}
"
)
output_pdb_file
=
str
(
Path
(
output_pdb
)
/
f
"
{
helper
.
get_file_parts
(
pdb_file
)[
1
]
}
.pdb"
)
pd
.
writePDB
(
output_pdb_file
,
pdb
)
...
...
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