Skip to main content

The components of this module can be used for read-across related calculations.

Project description

#rasar The components of this module can be used for read-across related calculations. It is a crucial module for cheminformatics applications.

Installation

pip install rasar

Usage

This module supports five different read-across tasks, including pairwise similarity calculation, read-across prediction, read-across optimization, read-across feature importance calculation, and rasar descriptor calculation.

Getting started

import pandas as pd from rasar import ra_similarity, ra_pred, ra_optimization, ra_importance, calculate_descriptor tr = pd.read_excel('train.xlsx', index_col=0) te = pd.read_excel('test.xlsx', index_col=0) xtr = tr.iloc[:,:-1] ytr = tr.iloc[:,-1] xte = te.iloc[:,:-1] yte = te.iloc[:,-1] sim = ra_similarity(des_tr=xtr, des_te=xte) sim1 = sim.similarity_calculation(method='Euclidean Distance') pred = ra_pred(df1=tr, df2=te).weighted_prediction(method='Laplacian Kernel', ctc=6, gamma=0.5) opt = ra_optimization(method='Laplacian Kernel', data=tr, parameters={'CTC': [1, 3, 6, 10], 'Gamma': [0.1, 0.5, 1], 'Threshold': [0.0]}, objective_function="MAE", cv_fold=5) imp = ra_importance(df1=tr).imp_calculation(method='Laplacian Kernel', ctc=6, gamma=0.5, ths=2) ra_importance(df1=tr).plot_importance(imp_df=imp, plot_type='coefficient', color="winter_r", index=1) des_tr, des_te = calculate_descriptor(df1=tr, df2=te, method='Laplacian Kernel', ctc=6, gamma=0.5, merge = True)

##Cite To use this module, users need to cite the following paper:

Pore, S. and Roy, K., 2025. “intelligent Read Across (iRA)”-A tool for read-across-based toxicity prediction of nanoparticles. Computational and Structural Biotechnology Journal. https://doi.org/10.1016/j.csbj.2025.07.032

##LICENSE Apache License 2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rasar-0.1.0.tar.gz (13.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rasar-0.1.0-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file rasar-0.1.0.tar.gz.

File metadata

  • Download URL: rasar-0.1.0.tar.gz
  • Upload date:
  • Size: 13.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.4

File hashes

Hashes for rasar-0.1.0.tar.gz
Algorithm Hash digest
SHA256 07e3251c6245485c6655fa9db4883ad111aa13d35c61ee7e74285d76f5f1b69a
MD5 09d496afb5e7b10c937e3d751622ca6c
BLAKE2b-256 bfbb4e5dcd8b541e64af59fb8cffc154a208328a8058766fbf694898c6b7b49d

See more details on using hashes here.

File details

Details for the file rasar-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: rasar-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.4

File hashes

Hashes for rasar-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7e239e75e5ca80a31b1becbc8d9b5652b04bb051bb7e0cf552b5c62e6073aee9
MD5 26a9e06e619c65d19208407f5df7b146
BLAKE2b-256 94c98657c5729f7eb419a88a9e813a839f0333a3d5fd76bbf6e3d8f4e4ece4c0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page