Skip to main content

Chemistry Adapters

Python PEP8

A place for quick conversions between languages using SMILES as the base key. A Quick Converter From Amino Acid Sequences to Smiles and Back again.

Installation

ChemistryAdapters is going to be distribute via PyPi and as the content store grows we can expand it to other pieces of software making it accessible to all regardless of what you use. Alternatively, you could have a glance at the source code and copy/paste it yourself.


pip install chemistry-adapters

Using Adapters

Currently only one adapter is implemented which is the Amino Acids to SMILES and back again.

test = 'RSTEFGHIKLADPQ'


adapter = AminoAcidAdapter()
smiles = adapter.convert_amino_acid_sequence_to_smiles(test)

>>> NC(CCCCNC(N)=N)C(NC(CO)C(NC(C(C)([H])O)C(NC(CCC(O)=O)C(NC(CC1=CC=CC=C1)C(NC([H])C(NC(CC1=CNC=N1)C(NC(C(CC)([H])C)C(NC(CCCCN)C(NC(CC(C)C)C(NC(C)C(NC(CC(O)=O)C(NC(C2CCCN2)C(NC(CCC(N)=O)C(NCC(O)=O)=O)=O)=O)=O)=O)=O)=O)=O)=O)=O)=O)=O)=O)=O

sequence = adapter.convert_smiles_to_amino_acid_sequence(smiles)

>>> RSTEFGHIKLADPQ

Genesis

I demonstrated I have a need for this so I built a quick one.


Citation


Sul: "ChemistryAdapters" 

External links

Metadata

Release files for chemistry-adapters 0.0.2

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

Source distribution (sdist)

Source distribution for chemistry-adapters 0.0.2
File Size Uploaded Provenance Actions
chemistry_adapters-0.0.2.tar.gz 3.4 kB Without provenance Details for chemistry_adapters-0.0.2.tar.gz

Release files / chemistry_adapters-0.0.2.tar.gz

Download URL chemistry_adapters-0.0.2.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
7d3d8e737d0baba1bfd64e647d1add9ed2af7f6bad4074daa5c48ac48ece6748
BLAKE2b-256 checksum
How to use checksums
782fba135f73c7da312d1281f0a4fe7ef47d4876fd87693038e5b6a29b7e21f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

Security for chemistry-adapters 0.0.2

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.

Release history Release notifications | RSS feed

This release

0.0.2 This release

1 release file No provenance

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