Molecularnetwork

Latest version: v0.4.2

Safety actively analyzes 624524 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.3.5

CHANGELOG

- Added edge weight attribute as the Structural similarity between molecules.
py
from molecularnetwork import MolecularNetwork

Define SMILES strings and classes
smiles_list = ["CCO", "CCN", "CCC", "CCF"]
classes = ["alcohol", "amine", "alkane", "fluoride"]

Create MolecularNetwork instance
network = MolecularNetwork(descriptor="morgan2", sim_metric="tanimoto", sim_threshold=0.25)

Generate the molecular network graph
graph = network.create_graph(smiles_list, classes)

graph[0][1]['weight'] Gives similarity between node 0 and 1

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.