Skip to main content

Molinfo provides comprehensive molecular information and analysis.

Project description

Molinfo

Downloads PyPI Python Version License

MolInfo is a Python package designed for advanced molecular analysis by converting molecular structures into graph representations. This package enables researchers and chemists to load various molecular file formats, transform them into graphs, and extract valuable information through graph-based methods.

Features

  • File Format Support: Load molecular data from multiple file formats, including SDF and JSON (soon).

  • Graph Conversion: Transform molecular structures into graph representations for detailed analysis.

  • Functional Group Identification: Detect and analyze functional groups within the molecular graph.

  • Distance Measurement: Compute distances between atoms and bonds in the molecular graph.

  • Bond Angle Calculation: Measure angles between bonds using graph-based methods.

Getting Started:

To use Molinfo, simply install the package and import it into your Python script. Refer to the example code snippets above for a quick start.

Google Colab

You can use the following code to run Molinfo in Google Colab:

Installation

Install molinfo with pip

  pip install molinfo

Documentation

Import package as:

import molinfo as mi

# check version

print(mi.__version__)

Examples

  • Create a graph
# sdf file

sdf_file_name_1 = 'test\Structure2D_COMPOUND_CID_261.sdf'

sdf_file = os.path.join(os.getcwd(), sdf_file_name_1)

# create graph

res = mi.create_graph(sdf_file)

print(type(res))

print(res)
  • Display a graph:
# visualize compound by sdf file

mi.g3d(sdf_file)
  • Check the availability of functional groups:
# check functional groups

res = mi.check_functional_group(sdf_file, res_format='dataframe')

print(res)

FAQ

For any question, contact me on LinkedIn

Authors

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

molinfo-1.0.0.tar.gz (31.3 kB view hashes)

Uploaded Source

Built Distribution

Molinfo-1.0.0-py3-none-any.whl (34.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page