A Python API for ROTS
Project description
PyROTS: Reproducibility-Optimized Test Statistic (in Python)
This is a Python wrapper for the ROTS R package which implements the Reproducibility-Optimized Test Statistic for differential testing in omics data. This means that while this package is run entirely in Python, underneath it runs an R process and the original R package. You do not need to care about all this, but you DO need to have R and the ROTS package installed.
You can install R from the R Project website: https://cran.r-project.org/. After that, run the following in terminal to install ROTS
Rscript -e 'if (!require("BiocManager", quietly = TRUE)) install.packages("BiocManager"); BiocManager::install("ROTS")'
Usage
Below is a minimal example that shows what the inputs should look like: data should be given as a pandas Data Frame and the group labels as a pandas Series.
Samples are in columns and the order should match with groups.
import numpy as np
import pandas as pd
from PyROTS import ROTS
data = pd.DataFrame(np.random.normal(size = (100,10)), index = ["gene_" + s for s in list(map(str,range(100)))])
groups = pd.Series(5*["A"]+5*["B"])
res = ROTS(data, groups)
Please consult the documentation for the R package for details about the method and functionality.
NB: This is a work in progress, some functions might not be available.
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 pyrots-0.1.2.tar.gz.
File metadata
- Download URL: pyrots-0.1.2.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Hatch/1.16.5 cpython/3.14.2 HTTPX/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8d174479c31b4cb97853d94eb3f639bdcf38041b11f5344ed65dc7a009c7b5e
|
|
| MD5 |
ba71f41d2e47b6bb770d4b1dd3ff331c
|
|
| BLAKE2b-256 |
c58fb29bf22290f6d90211dfdba17fc8fc65a5ae90062c4eab7401315d387f50
|
File details
Details for the file pyrots-0.1.2-py2.py3-none-any.whl.
File metadata
- Download URL: pyrots-0.1.2-py2.py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: Hatch/1.16.5 cpython/3.14.2 HTTPX/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b0ececa43def5ef953aa2f646ed15d5258118af9ce719c93902be9be5ab70b1
|
|
| MD5 |
d4979f567ef4d2a6d193fd2c0e679bd7
|
|
| BLAKE2b-256 |
8c2a4be0c1b00dad8d7ecbe9290a246c8199292f502ff246badfecace84005f5
|