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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| infoalign-0.1.1.tar.gz | 11.2 kB | Without provenance | Details for infoalign-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| infoalign-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for infoalign-0.1.1-py3-none-any.whl |
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
|
Security for infoalign 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.