Skip to main content

Test Package PyPI version

grein_loader

Python package to automatically download datasets from GREIN

http://www.ilincs.org/apps/grein

Introduction

Grein Loader enables users to access data from the GREIN website by using the GSE identification number

Installation

Install the package from pypi by using:

pip install grein_loader

Usage

The package allows you to download the description, metadata and the raw counts of a GREIN dataset based on the GSE id. The datasets from GREIN are publicly available and can be accessed via the GREIN webpage. Each dataset uses an GEO accession id which allows you to access its data.

load_dataset()

geo_accession = "GSE112749"
description, metadata, count_matrix = grein_loader.load_dataset(geo_accession)

Input/Output parameters

Input parameter:
| gse_id | string | GEO accession id

Output parameter: 
| description  | dictionary      | description of dataset
| metadata     | dictionary      | metadata of dataset
| count_matrix | pandas dataframe| numpy array of raw counts

load_overview()

loads a number of datasets from Grein, the datasets are also listed on the main paige of GREIN

number_of_datasets = 10
overview = loader.load_overview(number_of_datasets)

The function returns a list of dictionaries, each dictionary contains the GSE id, number of samples, species and description provided from GREIN.

Input parameter:
number_of_samples

Output parameter: 
list of dictionaries with, "geo_accession", no_samples", "species","title", "study_summary"

Metadata

Release files for grein-loader 0.0.6

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

Source distribution (sdist)

Source distribution for grein-loader 0.0.6
File Size Uploaded
grein_loader-0.0.6.tar.gz 10.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for grein-loader 0.0.6
File Interpreter ABI Platform
grein_loader-0.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 22.4 kB

Release files / grein_loader-0.0.6.tar.gz

Download URL grein_loader-0.0.6.tar.gz
Size 10.5 kB
Tags Source
SHA-256 checksum
How to use checksums
3a360f90366e8eb3d9e92b62d61053fffd58432089f2e90e09560c939911b82c
BLAKE2b-256 checksum
How to use checksums
91ed0e4c353d6de47c9bd825033a1cdb5c5772472a8965a206558f287de0a4c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / grein_loader-0.0.6-py3-none-any.whl

Download URL grein_loader-0.0.6-py3-none-any.whl
Size 11.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2bb3c10aee51315b032d6786456d3f106545e540fffb72dabcde71deb3c0ef2b
BLAKE2b-256 checksum
How to use checksums
a21c4f20d501442cd86b040e52249aaa2716c617d476622d7f9184510067e4ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release history Release notifications | RSS feed

This release

0.0.6 This release

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

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