Comments (7)
Polymers and CIP :-).
Unfortunately there are no rules (that I know of) for how CIP applies to polymers, do we weight the DUMMY atom infinitely heavy or light? For now it is safer to give no answer, in this case you get the same answer regardless but not always the case.
If I remember how the code works, if it can split ties before it "reaches" a DUMMY atom it gives you an answer it does, a slight modification shows this works as we expect:
*CC(=O)[C@@H](N)CCCCN* |Sg:n:1,2,3,4,5,6,7,8,9::ht|
The issue is the tie isn't split till you reach the C(=O)(*) at which point it sees dummy atom and gives up. In this case I think it is pos. to prove it's unambiguous - but extra logic is needed.
*C(=O)[C@@H](N)C(=O)*
[Au]C(=O)[C@@H](N)C(=O)[Pb]
[Pb]C(=O)[C@@H](N)C(=O)[Au]
Perhaps the most sane thing to do here is actually to cyclise the structure
C1(=O)[C@@H](N)CCCCN1
*C[C@@H](N)CCCCN*.C[C@@H](N)CCCCN.C1[C@@H](N)CCCCN1
S is correct here as we could also put in duplicates on each end and take the middle value:
from depict.
The centres/cip code is not polymer aware but yeah a reasonable approximation here would be to triplicate and then name it
from depict.
Right, yes, I guess that makes sense... I was thinking about the DUMMY being the repeat unit again, but that's not the case for all monomers, of course.
from depict.
I consider it a future wishlist
from depict.
Could you open issue tagged as feature request on centres repo please
from depict.
centres repo
?
from depict.
https://github.com/SiMolecule/centres/issues
from depict.
Related Issues (20)
- relabelling of atoms is possible? HOT 4
- What are the query params? HOT 2
- Missing charges HOT 1
- atom numbering based on the InChI HOT 16
- thoughts about input of .sdf (version 3000) / extended stereochemistry HOT 2
- mark missing stereo HOT 3
- depict 1H-imidazole HOT 3
- bug in atom placement on for image render - specific smiles HOT 1
- Bug in depicting CXSMILES with Stereochemistry HOT 8
- www.simolecule.com does not work anymore HOT 2
- Flip should flip stereobond HOT 1
- feature request: generating multiple molecue structures within one image HOT 1
- Abbreviation of ketene
- fork me icon broken? HOT 1
- Aromatic display HOT 2
- CDK Depict website appears to be down HOT 5
- "White on clear" / "Neon on clear" options? HOT 2
- Feature request: MOL or single-molecule SDF as output? HOT 3
- Question: Query parameters for editor / starting page 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 depict.