Comments (13)
Hm, could you provide me with an example molecule? I got a bit confused by the explanation.
from moleculekit.
from moleculekit.
Great! I just had to add Xe to the ions list, so now it formats it correctly as in the PDB file 'XE '
instead of ' XE '
. I will make a fix release soon.
from moleculekit.
ea0bf30 Done.
Once (and if) this passes https://travis-ci.org/Acellera/moleculekit/builds/578267436 you will have a new 0.1.23 release of moleculekit with the fix.
Thanks for the report :)
from moleculekit.
from moleculekit.
from moleculekit.
No, that would break the PDB format. I would not change the string formatting. But I will try now to find all "ions" of scPDB and I'll report back.
from moleculekit.
To make it more clear, PDB has a weird way of differentiating between ions and non-ions by the spaces before and after the atom name. For example a carbon-alpha atom will be ' CA '
while a calcium atom will be 'CA '
. So you need to be very careful about where you put spaces. The good thing is that if a mol2 file of scPDB fails to read I can check in the PDB database and see how they used spaces for that atom and reproduce that behaviour.
from moleculekit.
from moleculekit.
Sorry for half-assing it before. Now I added all the elements of scPDB (Xe, Rb, Lu, Ga) to the element-guessing code 8472d24
This is the 0.1.24 release build which will support them all https://travis-ci.org/Acellera/moleculekit/builds/578404945
from moleculekit.
Okay I'll reopen this issue open because fixing the reading of the unsupported metals does not really fix the guessing. Now all files are read fine but for example cadmium "CD" in 4b7b
is guessed as element carbon "C". This is a quite hard problem though considering atom type names. Maybe the Du element could be used if it's a mol2 standard but adding support just for scPDB mol2 files seems like a bad hack.
from moleculekit.
Note that you can also read the mol2 files with the SmallMol reader which marks the unknown elements as *
instead of trying to guess them and then convert to Molecule if that serves you better for now.
from moleculekit.smallmol.smallmol import SmallMol
sm = SmallMol('./4b7b_1/protein.mol2')
mol = sm.toMolecule()
from moleculekit.
Indeed Du atom types in mol2 are defined in Corina/SYBYL and TriPos. So I added some code to correctly mark them as ion/metals so that they don't get confused with carbons etc.
d8694a9
This should close the issue well.
from moleculekit.
Related Issues (20)
- Add support for preparing non-canonical residues with backbone modifications HOT 1
- Small molecule CIFs can have ? coordinates HOT 1
- Wrapping bug puts water atoms way outside the box in a small set of frames HOT 1
- Finding difference between voxels of two different protein HOT 1
- PIP incompatibility: filename has '1.2.0', but metadata has '0' HOT 5
- Protein atoms regarded as nonprotein atoms by atomselect() HOT 2
- Add sasa option to the atom selection language HOT 2
- Update getFingerprint in moleculekit HOT 2
- SmallMolLib unexpected behaviour HOT 4
- atomselect fails on resnames that start with number HOT 3
- Syntax error with atomselect HOT 6
- ImportError HOT 3
- Conda package contains `.h` and `.cpp` HOT 7
- `atomselect` doesn't recognize `numbonds` HOT 1
- Failed to parse selection resid<200 HOT 3
- ValueError: Unable to debump biomolecule. Biomolecular structure is incomplete: Found gap in biomolecule structure for atom ATOM HOT 6
- Editing velocity files HOT 2
- numpy version, infinite loop when calling Molecule HOT 2
- `atomselect` improvements
- Fix issue with terminal histidine protonation HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moleculekit.