srnas / barnaba

Analyse Nucleic Acids Structure and Simulations with baRNAba
GNU General Public License v3.0
38 stars 15 forks source link

Pyemma compatibility #37

Open giopina opened 5 years ago

giopina commented 5 years ago

I've created a function (get_gvecs_pyemma) that computes g-vectors and return them in a format compatible with what required by pyemma.coordinates.featurizer.add_custom_function() I've got it in a branch on my fork. I'm not sure whether this might be useful for everybody or is a bit out of scope at the moment.

(btw, it's not a big difference from the already existing dump_gvec_traj, I just removed seq from the return values and changed the shape of the gvecs array.