Skip to main content

Pubsam: Simplifying PubChem Database Interaction for Molecular Analysis

PyPI Version License Build Status Coverage Status

Streamline Interaction with PubChem

Retrieve and analyze chemical data effortlessly with Pubsam, streamlining interaction with the PubChem database. Explore compounds, substances, assays, proteins, genes, and more with ease. Designed for researchers, scientists, and developers, Pubsam provides a user-friendly interface to access and leverage PubChem�s wealth of information.

Key Features

  • Dive into molecular analysis with QSPR (Quantitative Structure-Property Relationship) tools.
  • Conduct virtual screenings for compound discovery.
  • Unravel chemical features through functions such as displaying maximum common substructures, Gasteiger charges, chirality, and more.

Getting Started

pip install pubsam

Example Usage


markdown
Copy code
# Example: QSPR Analysis
from Pubsam import qspr_analysis
qspr_analysis("path/to/your/csv_file.csv", "dependent_variable_column")

# Example: Display Active Chemicals by Assay Aid
from Pubsam import display_active_chemicals_by_assay_aid
display_active_chemicals_by_assay_aid("1000")

# Example: Display Inactive Chemicals by Assay Aid
from Pubsam import display_inactive_chemicals_by_assay_aid
display_inactive_chemicals_by_assay_aid("1000")

# Example: Retrieve Active CIDs by Assay Aid
from Pubsam import retrieve_active_cids_by_assay_aid
retrieve_active_cids_by_assay_aid("1000")

# Example: Retrieve Inactive CIDs by Assay Aid
from Pubsam import retrieve_inactive_cids_by_assay_aid
retrieve_inactive_cids_by_assay_aid("1000")

# Example: Retrieve Active SIDs by Assay Aid
from Pubsam import retrieve_active_sids_by_assay_aid
retrieve_active_sids_by_assay_aid("1000")

# Example: Retrieve Inactive SIDs by Assay Aid
from Pubsam import retrieve_inactive_sids_by_assay_aid
retrieve_inactive_sids_by_assay_aid("1000")

# Example: Virtual Screening
from Pubsam import virtual_screening
virtual_screening("path/to/your/file.txt", "SMILES1", "SMILES2", "SMILES3")

# Example: Display Maximum Common Substructure
from Pubsam import display_maximum_common_substructure
display_maximum_common_substructure('CC=O', 'CCCCC', 'CCCCCC=O')

# Example: Display Chirality
from Pubsam import display_chirality
display_chirality('C[C@H]1CCC[C@@H](C)[C@@H]1Cl')

# Example: Display Double Bond Stereochemistry
from Pubsam import display_double_bond_stereochemistry
display_double_bond_stereochemistry('CC=C', 'CC=C(C)C', 'CC(=O)C=C')

# Example: Highlight Difference
from Pubsam import highlight_difference
highlight_difference('CC=O', 'CCCCC=O')

# Example: Draw List of SMILES
from Pubsam import draw_list_of_smiles
draw_list_of_smiles(['CC=O', 'CCCCC=O', 'CC(C)(C)C'])

# Example: Display Gasteiger Charges
from Pubsam import display_gasteiger_charges
display_gasteiger_charges('CC(=O)O', ['CC(=O)O', 'CCCC(=O)O', 'CCCCCCCCCCCCCCCCCCC(=O)O'])

# Example: Display Bond Type and Stereochemistry
from Pubsam import display_bond_type_and_stereochemistry
display_bond_type_and_stereochemistry('CC=O', 'CCC=O', 'CC(C)(C)C')

# Example: Mark Substructure
from Pubsam import mark_substructure
mark_substructure('CC', 'CC=O', 'CCC=O', 'CC(C)(C)C')

# Example: Check for Substructure
from Pubsam import check_for_substructure
check_for_substructure('CC', 'CC=O', 'CCC=O', 'CC(C)(C)C')

# Example: Display Morgan Score Topological
from Pubsam import display_morgan_score_topological
display_morgan_score_topological("CCO", "CNCN")

# Example: Delete Substructure
from Pubsam import delete_substructure
delete_substructure('CC', 'CC=O', 'CCC=O', 'CC(C)(C)C')

# Example: Intro
from Pubsam import Intro
Intro()

Ahmed Alhilal
=============

0.0.1 (22/12/2023)
-------------------
- First Release

Metadata

Release files for Pubsam 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Pubsam 0.4.0
File Size Uploaded
Pubsam-0.4.0.tar.gz 12.8 kB Details

Release files / Pubsam-0.4.0.tar.gz

Download URL Pubsam-0.4.0.tar.gz
Size 12.8 kB
Tags Source
SHA-256 checksum
How to use checksums
cc1f9e0fd4faa2b8158dabb39b023d6e69205a7f6266ba1d2e6ed86346d99d3b
BLAKE2b-256 checksum
How to use checksums
c836a87b729541e833c10f30605cb69237d48c34c58eeb8519f554a483f9739a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release history Release notifications | RSS feed

This release

0.4.0 This release

1 release file

0.3.31

1 release file

0.3.11

1 release file

0.3.3

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.1.23

1 release file

0.1.22

1 release file

0.1.9

1 release file

0.1.8

1 release file

0.1.7

1 release file

0.1.6

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.0.12

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page