No project description provided
Project description
Molecular Imager
Do you ever wish you could easily embed the images of your smiles strings into an excel sheet? Wish no more! molimg is here to do just that!
Take the following data in a csv:
and molimg will convert it like so:
Usage
First, import the data into a pandas dataframe, then pass this dataframe, the columns that you want to convert to images, and the save name of the file to the package:
import pandas as pd
from molimg import excel
df = pd.read_csv('example_data.csv')
smiles_columns = ['smiles1', 'smiles2']
excel.write(
df=df,
smiles_columns=smiles_columns,
filename='example_data_with_images.xlsx'
)
The order the columns appear in df.columns is how the columns will be saved in
the new excel sheet. The new smiles columns with images will always appear to the right
of the data they originate from with {original_column}_image as the new column name.
Any error that occurs when trying to convert a smiles string to an image will appear as a warning log message and the image will not be produced. The excel sheet will still be created with the smiles strings that work.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file molimg-0.2.0.tar.gz.
File metadata
- Download URL: molimg-0.2.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.3 Darwin/22.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d4946f1ed87d349554fcdcad63df6b73a6a6700594e26b95f08a35d8872e9a99
|
|
| MD5 |
0e210bd6731e84f2c3de1451f16ce2b4
|
|
| BLAKE2b-256 |
eeb7b0e4dd4ec8dd1960eb486dede95edb5445b499ba93c317ed177bb09e64c4
|
File details
Details for the file molimg-0.2.0-py3-none-any.whl.
File metadata
- Download URL: molimg-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.3 Darwin/22.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
552487764c826a93252347b70f6f8916ff61fe83d2786f4b5a4ecf2f2b17c209
|
|
| MD5 |
443344d24ab29b050914c9c0427751af
|
|
| BLAKE2b-256 |
00baeee930cceeb5b6457d996c0736acb2823d6fc8709500ddbe3b4bbeb3d719
|