Giter VIP home page Giter VIP logo

Comments (4)

ajs99778 avatar ajs99778 commented on May 24, 2024

It looks like the Python AaronTools is failing to figure out where the ligand stops - it thinks the entire structure is the ligand. For organometallic cases, it would just stop when it finds a metal. I'll need to take a closer look at this to see where exactly it's going wrong.

I did find a bug in the mapLigand.py script that caused it to basically not use the -c/--center flag, and I've fixed that. The mapLigand.py script that is now on GitHub should work for organic systems as long as you use the -c or --center flag.

That being said, AaronTools should be able to figure out the ligand in this case without being told what the center is, and I will be looking into a fix for that.

You could also manually specify which atom is the center and which atoms are the ligand atoms in the comment line of the file. I used this:

L:7-11,17-22,28-29,37-42,48-53,55-56,61-66 C:67

to specify the ligand atoms (L:) and the boron center (C:). It's a little bit of a mess because the ligand atoms are not grouped together in the file. For completeness, the command I used with this comment was mapLigand.py ts1.xyz -l 28,29=AcAc -o new.xyz

I think the Perl version is a bit less sophisticated when it comes to figuring out the ligand. If I recall correctly, all atoms that come after the center are assumed to be ligand atoms, so you would need to reorder the atoms and specify the center with C: in the comment.

from aarontools.py.

Senppoa avatar Senppoa commented on May 24, 2024

Thanks a lot! I have successfully mapped ligand in this purely organic system by command line operation you provided of AaronTools.

However, this approach does not seem to be able to achieve both ligand replacement and substrate modification at the same time due to changes in atomic number, I do this by python API of AaronTools before. So, if possible, I would suggest adding parameters to specify the central atom and ligands of the system for the map_ligand function in Geometry object.

from aarontools.py.

ajs99778 avatar ajs99778 commented on May 24, 2024

For the time being, you can run detect_components prior to map_ligand

example:

from AaronTools.geometry import Geometry

geom = Geometry("ts1.xyz")

# set the boron atom as the center
# alternatively, use "67"
geom.detect_components("B") 
geom.map_ligand("AcAc", "28,29")
geom.substitute("CF3", "68")

geom.write(outfile="ts1-AcAc-CF3.xyz")

from aarontools.py.

Senppoa avatar Senppoa commented on May 24, 2024

Thanks Dr. Schaefer! It works well.

from aarontools.py.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.