Code Monkey home page Code Monkey logo

uclcheminformatics / scaffoldgraph Goto Github PK

View Code? Open in Web Editor NEW
159.0 9.0 38.0 800 KB

ScaffoldGraph is an open-source cheminformatics library, built using RDKit and NetworkX, for the generation and analysis of scaffold networks and scaffold trees.

Home Page: https://doi.org/10.1093/bioinformatics/btaa219

License: MIT License

Shell 0.19% Python 99.81%
rdkit networkx scaffold-networks scaffold-trees cheminformatics murcko fragments molecules scaffolds hiers

scaffoldgraph's Issues

[Q] hierarchy representations

❓ Questions & Help

Hi,

Thanks for this so useful library...I have a doubt, when you are building a hierarchy representation, each bar represent the times of one scaffold is repeated in a dataset??? For example in your example: https://github.com/UCLCheminformatics/ScaffoldGraph/blob/master/examples/scaffold_graphs.ipynb for a network representation. How I could the molecule for earch hierarchy class? I want Know the scaffolds most repeated in the dataset.

Thanks!

Pablo

Potential bugs in dealing with bridged rings

When dealing with bridged rings using ScaffoldNetwork, the output is different from a similar structure with an aliphatic ring. Some nodes are just missing from the network.

[Q] SMILES from frags

How can i get smiles from frags in basic function:

scaffold = Chem.Scaffolds.MurckoScaffold.GetScaffoldForMol(mol)
frags = sg.get_next_murcko_fragments(scaffold)
Draw.MolsToGridImage(frags)

[Q] Question from SNG author.

❓ Questions & Help

Glad to see our work taken up in a better library. Are you taking contributions tot his project?

[Q] Aromatic bonds removal

❓ Questions & Help

Hi!
Thank you for this really useful and great module! But there is a problem.
When generating scaffold tree, aromatic bonds are removed. Therefore, it is rather complicated to work with the structures returned. Is there a way how to solve this problem?

about the visualization utils

❓ Questions & Help

Hello~
When I have installed the ipycytoscape module today and updated scaffoldgraph, it seems I still have problem in importing cytoscape from the vis uilt. The error proved to be ' no module named scaffoldgraph.vis.'. I have checked packages in my envs and found there seems truly no vis module. Is there anything wrong with my implementation?
(Maybe I'll choose to use ipycytoscape directly.

A question about visualizing scaffold networks[Q]

❓ Questions & Help

When I using jupyter lab run relation codes to create and visualize a scaffold network, it could not draw the picture like follows:
Snipaste_2021-11-16_15-32-28
Could give me some advices to solve this problem? Thank you!

[Q]Can not read SMILES file

this command "scaffoldgraph network biomol.smi biomol.tmp " give an error as shown below.

scaffold-graph: 15:21:29 19315 INFO: Generating Scaffold Network...
scaffold-graph: 15:21:29 19315 CRITICAL: Unknown error: Python argument types in
SmilesMolSupplier.init(SmilesMolSupplier, str, int, int, int, bool, bool)
did not match C++ signature:
init(_object*)
init(_object*, std::__cxx11::basic_string<char, std::char_traits, std::allocator > data, std::__cxx11::basic_string<char, std::char_traits, std::allocator > delimiter=' ', int smilesColumn=0, int nameColumn=1, bool titleLine=True, bool sanitize=True)
scaffold-graph: 15:21:29 19315 INFO: Exiting scaffoldgraph...

But we can read "biomol.smi" using "Chem.SmilesMolSupplier".How to solve this problem?

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.