-
Notifications
You must be signed in to change notification settings - Fork 121
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
Read pdb from list of strings (instead of from file) #70
Comments
Oh yeah, I can totally see how this would be useful. When I developed the library, I was purely going by what I needed for my projects, so I didn't think of it, but I can see that it would be useful (and would make the mol2 vs pdb API more consistent. I am not sure when I get to it (the COVID-19 related teaching workload keeps me super busy this semester), but I will keep that on my todo list for the not so distant future (esp. since this should be implemented rather easily) |
Describe the workflow you want to enable
Thank you for providing this great package - I am using it in most of my projects!
When a database is queried for structural data in e.g. the pdb format, the file content is often returned in the form of a string.
I would like to load DataFrames from such a string (or list of strings):
https://github.com/volkamerlab/opencadd/blob/912d4e98e89edf38707249fd4f034cea136e1932/opencadd/io/dataframe.py#L128
Currently, I use the private
PandasPdb
method_construct_df
, which - I know - is bad practice.Describe your proposed solution
In the
mol2
module, we can load DataFrames from a file or from a list of strings.Would it be possible to provide the same behavior in the
pdb
module?Thank you for your time!
Describe alternatives you've considered, if relevant
None.
Additional context
None.
The text was updated successfully, but these errors were encountered: