Comments (6)
And I tried SmallMol(mol, fixHs=False, removeHs=True), it didn't work
from moleculekit.
Hi, did you use force_reading
by any chance?
Can you provide me with the molecule to test?
If it's a mol2 file you can also try directly with rdkit to see if it does the same:
from rdkit import Chem
mol = Chem.MolFromMol2File("mylig.mol2", removeHs=False)
mol.GetNumAtoms()
from moleculekit.
Here is a simple example:
import moleculekit.smallmol.smallmol as mk
import moleculekit.tools.voxeldescriptors as mk_voxel
from rdkit import Chem
from rdkit.Chem import AllChem
smiles = "CN"
mol = Chem.MolFromSmiles(smiles)
mol_H = Chem.AddHs(mol)
AllChem.EmbedMolecule(mol_H)
mol_conformer = Chem.RemoveHs(mol_H)
smallmol = mk.SmallMol(mol_conformer, fixHs=False)
coords_mol = smallmol.get("coords")[:, :, 0]
channel_mol = mk_voxel.getChannels(smallmol)[0]
print(coords_mol.shape, channel_mol.shape)
I hope the channel_mol
to be of shape (2, 8) as before, but I got (7, 8).
from moleculekit.
Oh nice! You found a bug in copying of molecule. I'm fixing it now and will report once it's release in a new moleculekit version (in an hour or so hopefully).
Thanks a lot!
from moleculekit.
Ok version 0.5.5 of moleculekit is out which should fix this. Give it a try and tell me if it worked for you
from moleculekit.
Ok version 0.5.5 of moleculekit is out which should fix this. Give it a try and tell me if it worked for you
It works well !
Thanks
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.