semvec/pypi-packages huggingface dataset:
rtg-score 0.1.0
Analysis of confounders by Rank-to-Group scores
Keywords: variability analysis,variability decomposition,contributing factors

# Rank-To-Group (RTG) score evaluates contribution of confounders

<img src="example/confounder_contribution.png" width="400" />

Batch, cell line, donor, plate, reprogramming, protocol — these and other confounding factors influence cell cultures *in vitro*.

RTG score tracks contribution of different factors to variability by estimating how **R**ank maps **T**o **G**roup. 
Scoring relies on ranking by similarity, so there are no explicit or implicit assumptions of linearity.

RTG perfectly works with both well-interpretable data (gene expressions, cell types) 
and embeddings provided by deep learning.

## Usage 

`rtg_score` is python package. Installation:
```bash
pip install rtg_score
```

RTG score requires two DataFrames: one with confounds and ane with embeddings (or other features, e.g. gene expressions)
```python
from rtg_score import compute_RTG_score
# following code corresponds to computing element of the figure above
# 
score = compute_RTG_score(
    metadata=confounders_metadata,
    include_confounders=['batch', 'donor'],
    exclude_confounders=['organoid_id'],
    embeddings=qpcr_delta_ct, 
)
```

An example of code to compute and plot table above is available in [`example`](https://github.com/System1Bio/rtg_score/blob/master/example/Example_qPCR.ipynb) subfolder.
rmapi 0.0.1
Minimal API for Redditmetrics
Requires Python: >=3.6

## A simple Python Redditmetrics.com API

Installation
------------

   ```pip install rmapi```

Description
-----------
A very minimal API for [Redditmetrics](https://redditmetrics.com).
Redditmetrics is a website that contains historical and recent data from all around [Reddit](https://reddit.com), be it subreddit-specific or general. This package aims to make it more comfortable to use that data with a simplistic interface, since Redditmetrics itself doesn't provide an API. 

Example usage
-------------------
```python
from rmapi import RedditMetricsAPI

# Subreddit-specific methods take the subreddit names as arguments.
RedditMetricsAPI.subreddit_get_current_subscribers("lain")

# Non-subreddit-specific methods don't take any arguments.
RedditMetricsAPI.get_fastest_growing_today()

```
List of all available functions
-------------------
Subreddit-specific:
```python
subreddit_get_subscriber_growth_data(subreddit) # Returns the entire available timeline for a specific subreddit and how many subscribers it gained per day.

subreddit_get_subscriber_growth_data(subreddit) # Returns the entire available timeline for a specific subreddit and how many subscribers it had each day.

subreddit_get_rank_data(subreddit) # Returns the entire available timeline for a specific subreddit and what the subreddit rank for it was.

subreddit_get_current_subscribers(subreddit) # Returns the current subscriber count for a specific subreddit.

subreddit_get_current_rank(subreddit) # Returns the current rank for a specific subreddit.
```
General:
```python
get_fastest_growing_today() # Returns 300 fastest growing subreddits today.
get_fastest_growing_week() # Returns 300 fastest growing subreddits this week.
get_fastest_growing_month() # Returns 300 fastest growing subreddits this month.

get_non_default_reddits_today()  # Returns top 300 non-default subreddits today.
get_non_default_reddits_week()  # Returns top 300 non-default subreddits this week.
get_non_default_reddits_month()  # Returns top 300 non-default subreddits this month.

get_top_new_reddits_today()  # Returns top 300 new subreddits today.
get_non_default_reddits_week()  # Returns top 300 new subreddits this week.
get_non_default_reddits_month()  # Returns top 300 new subreddits this month.

get_new_reddits_trending_month() # Returns top 300 trending subreddits this month.
get_new_reddits_trending_3_months() # Returns top 300 trending subreddits in the last 3 months.
get_new_reddits_trending_6_months() # Returns top 300 trending subreddits in the last 6 months.

get_top_n_reddits(n) # Returns top n amount of subreddits sorted by subscriber count.
```