No project description provided
Project description
Global-Chem-Extensions: Functinality for applications of GlobalChem for Cheminformaticians.
Global Chem is an open-source graph database and api for common and rare chemical lists using IUPAC as input and SMILES/SMARTS as output. As mostly needed by myself as I search through chemical infinity.
I have useful tools I use to analyze chemical data starting with functional groups.
Installation
GlobalChemExtensions is going to be distribute via PyPi and as the content store grows we can expand it to other pieces of software making it accessible to all regardless of what you use. Alternatively, you could have a glance at the source code and copy/paste it yourself.
pip install global-chem-extensions
Quick Start
Just with no dependencies, intialize the class and there you go! All the common and rare groups of the world at your disposal
Use the Sunbursting Extensions
dependencies
: plotly
, rdkit
, kaleiodo
, global-chem
from global_chem_extensions.global_chem_extensions import GlobalChemExtensions
test_set = [
'c1[n+](cc2n(c1OCCc1cc(c(cc1)F)F)c(nn2)c1ccc(cc1)OC(F)F)[O-]',
'c1nc(c2n(c1OCCc1cc(c(cc1)F)F)c(nn2)c1ccc(cc1)OC(F)F)Cl',
'c1ncc2n(c1CCO)c(nn2)c1ccc(cc1)OC(F)F',
'C1NCc2n(C1CCO)c(nn2)c1ccc(cc1)OC(F)F',
'C1(CN(C1)c1cc(c(cc1)F)F)Oc1cncc2n1c(nn2)c1ccc(cc1)OC(F)F',
'c1ncc2n(c1N1CCC(C1)c1ccccc1)c(nn2)c1ccc(cc1)OC(F)F',
]
GlobalChemExtensions().sunburst_chemical_list(test_set, save_file=False)
PCA Analysis
Conduct PCA Analysis with a SMILES list input.
dependencies
: bokeh
, rdkit
from global_chem.global_chem import GlobalChem
from global_chem_extensions.global_chem_extensions import GlobalChemExtensions
gc = GlobalChem()
gc = GlobalChem()
gc.build_global_chem_network(print_output=False, debugger=False)
smiles_list = list(gc.get_node_smiles('schedule_one').values())
mol_ids = GlobalChemExtensions().node_pca_analysis(
smiles_list,
morgan_radius = 1,
bit_representation = 512,
number_of_clusters = 5,
number_of_components = 0.95,
random_state = 0,
file_name 'global_chem_pca.html',
save_file=False,
return_mol_ids=True,
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for global_chem_extensions-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad7883784066f39c25212a29d2764ef90584cfaf41333404e1c6258a4bca608d |
|
MD5 | c48e7f31e93232991361e990420c6bf2 |
|
BLAKE2b-256 | fd09762e3d7143e61ca784af480cb4e925969044a3b9fb09179747dc02b31cc9 |