Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initial commit for adding descriptor of water features #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

msultan
Copy link
Contributor

@msultan msultan commented May 16, 2015

describe water features. Output after using pandas is something like this.

In [24]: df_w[:1]
Out[24]: 
  atomind      bigclass otherInfo resSeq resid resname  smallclass
0     [0]  water_shells      None    [1]   [0]   [LYS]           0

In [25]: df_w[-1:]
Out[25]: 
     atomind      bigclass otherInfo resSeq  resid resname  smallclass
1487  [4247]  water_shells      None  [263]  [262]   [TYR]           1

@msultan
Copy link
Contributor Author

msultan commented May 16, 2015

 from wetmsm import SolventShellsFeaturizer

 import pandas as pd
 import mdtraj as mdt

 trj  =  mdt.load("prot.pdb")

  solute_ind = [i.index for i in trj.topology.atoms if \
  (i.element.name=="nitrogen" or  i.element.name=="oxygen") and i.residue.is_protein]
 solvent_ind = [i.index for i in trj.topology.atoms if \
 (i.element.name=="oxygen" and i.residue.is_water)]

  w_feat = SolventShellsFeaturizer(solute_ind,solvent_ind,2,0.3)
  df_w = pd.DataFrame(w_feat.describe_features(trj))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant