Skip to main content

molcloud buildPyPI version

This package draws molecules (or RNA, thanks to @Shunsuke-1994) in a big canvas packed together. See examples below.

Install

Make sure you have pygraphviz installed

pip install molcloud

Usage

molcloud [smiles-file]

and the output will go to cloud.png. You can specify a few things too:

molcloud [smiles-file] --output-file [output-file] --width 10 --node-size 25

To cut the resulting image in some custom shape, use the flag --template (thanks to @doncamilom)!

molcloud [smiles-file] --output-file [output-file] --template [template-file]

Use molcloud --help for complete options. smiles-file should contain smiles, one per line like:

O=C(OC)C=1C=CC2=NC=C(C(=O)OCC)C(NCC(O)C)=C2C1
O=C1C2=NC=CC3=C(OC)C=4OCOC4C(C=5C=C(OC)C(OC)=C(OC)C15)=C23

Adjust width as you add more molecules. The drawing is always square (sorry).

RNA Install

Thanks to @Shunsuke-1994! To install layout RNA, install the extra packages:

pip install molcloud[all]

RNA Usage

rnacloud [fasta-file]

where fasta-file should contain sequence and bracket notations, three lines per 1 sequence like:

>seq_0
UUCCAGCACCUGAUGUUCGAAUUUAAAUCGGCUCAACGAG
(((.((((.....)))).)))......(((......))).

Molecule Example

test

Example with template

molcloud tests/test.smi --template tests/shapes/beaker.png --width 15

cloud

RNA Example

rna

Metadata

Release files for molcloud 0.3.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 molcloud 0.3.0
File Size Uploaded Provenance Actions
molcloud-0.3.0.tar.gz 8.0 kB Without provenance Details for molcloud-0.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 16.8 kB

Release files / molcloud-0.3.0.tar.gz

Download URL molcloud-0.3.0.tar.gz
Size 8.0 kB
Tags Source
SHA-256 checksum
How to use checksums
6e10be7996664a807fac053733ac6453268bd33ddbe7c43ac6a0b9d2da43c823
BLAKE2b-256 checksum
How to use checksums
d9c568b4ec5b743b8f434b75eb0fa5a9ffeee89b9c937cff3a9fe7401e9ebc8a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / molcloud-0.3.0-py3-none-any.whl

Download URL molcloud-0.3.0-py3-none-any.whl
Size 8.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ae83f6b66c8b0a19e8edf04f138b101aa26fbed67b6a932a0b7c3b0df12dfa03
BLAKE2b-256 checksum
How to use checksums
eeeb3e3bd10a52b6d02a6d3080a8f3c26788a69714eb53d21ceb32bfe43df4bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Security for molcloud 0.3.0

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.

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