-
Notifications
You must be signed in to change notification settings - Fork 27
Conversation
Pull Request Test Coverage Report for Build 639
💛 - Coveralls |
@NicoRenaud All checks failed because the current |
Finally freesasa can be installed using pip, but only version 2.0.3.post7. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice ! there is only a few comments to address . I think we should make deeprank pip installable now !
@@ -81,7 +81,7 @@ def __init__(self, pdbfile, param_charge=None, param_vdw=None, | |||
self.atom_key = 'chainID, resSeq, resName, name' | |||
|
|||
# read the pdb as an sql | |||
self.sqldb = pdb2sql(self.pdbfile) | |||
self.sqldb = pdb2sql.pdb2sql(self.pdbfile) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's from pdb2sql_core right ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
if ds: | ||
ds = np.array(ds).astype('|S' + str(len(ds[0]))) | ||
else: | ||
ds = np.array(ds) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch !
deeprank/generate/DataGenerator.py
Outdated
@@ -411,11 +413,11 @@ def create_database( | |||
self.f5.copy(mol_name + '/features/', molgrp) | |||
|
|||
# rotate the feature | |||
self._rotate_feature(molgrp, axis, angle, mol_center) | |||
DataGenerator._rotate_feature(molgrp, axis, angle, mol_center) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not self here ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I misunderstood static method before. self is better here.
deeprank/generate/DataGenerator.py
Outdated
@@ -577,7 +579,7 @@ def add_feature(self, remove_error=True, prog_bar=True): | |||
aug_molgrp.create_dataset("features/" + k, data=data) | |||
|
|||
# rotate | |||
self._rotate_feature( | |||
DataGenerator._rotate_feature( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here, why DataGenerator. and not self._rotate_feature ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated now.
|
||
# get the pdb-format data | ||
data = sqldb.sql2pdb() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice little function here :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks :-)
To solve issues: #100 #102.
Note: please first merge RP #103 and #107 and then this RP.