Skip to main content

The Package for InfoAlign: Learning Molecular Representation in a Cell

InfoAlign is a package for learning molecular representations from bottleneck information, derived from molecular structures, cell morphology, and gene expressions. For more detailed information, please refer to our paper.

This package uses a pretrained model based on the method described in the paper. It takes molecules as input (e.g., a single SMILES string or a list of SMILES strings) and outputs their learned representations. These molecular representations can be applied to various downstream tasks, such as molecular property prediction.

For related projects by the main ML researcher and developer, visit: https://github.com/liugangcode/InfoAlign.

Installation

Install the package via pip:

pip install infoalign

Usage

Command Line Interface (CLI)

infoalign_pred --input {path_to_input_smiles.csv} 
               --output {path_to_output.npy} 
               --output-to-input-column  # This adds the representation to the input CSV as an additional column

Python API

from infoalign.representer import InfoAlignRepresenter

model = InfoAlignRepresenter(model_path='infoalign_model/pretrain.pt')

# For a single SMILES string
one_rep = model.predict('CCC')

# For a list of SMILES strings
two_reps = model.predict(['CCC', 'CCC'])

Citation

If you find this repository helpful, please cite our paper:

@article{liu2024learning,
  title={Learning Molecular Representation in a Cell},
  author={Liu, Gang and Seal, Srijit and Arevalo, John and Liang, Zhenwen and Carpenter, Anne E and Jiang, Meng and Singh, Shantanu},
  journal={arXiv preprint arXiv:2406.12056},
  year={2024}
}

Acknowledgement

This project template was adapted from: https://github.com/lwaekfjlk/python-project-template. We thank the authors for their open-source contribution.

Metadata

Release files for infoalign 0.1.1

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

Source distribution (sdist)

Source distribution for infoalign 0.1.1
File Size Uploaded
infoalign-0.1.1.tar.gz 11.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for infoalign 0.1.1
File Interpreter ABI Platform
infoalign-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 21.3 kB

Release files / infoalign-0.1.1.tar.gz

Download URL infoalign-0.1.1.tar.gz
Size 11.2 kB
Tags Source
SHA-256 checksum
How to use checksums
1832d1bf436a61d4049061ec4cc7ac57f68919cb2f9a597688128bcf46dec97f
BLAKE2b-256 checksum
How to use checksums
e0fbfef53f9638545b084bcc9e770e92cc7299fc401ff9f9b0df8d17f3b50ae7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.7

Release files / infoalign-0.1.1-py3-none-any.whl

Download URL infoalign-0.1.1-py3-none-any.whl
Size 10.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cb1f40b67c5933d1b6d25811be522c04daff1468f47ccf951bd51d7a3a81e210
BLAKE2b-256 checksum
How to use checksums
341296d83ec5f34841a9c89acba1d8e49a15116ab99c663b5afe83200cded57b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.7

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

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