Generate synthetic RNA-Seq data by sampling a negative binomial distribution.
Project description
syntheticRNASeq
Introduction
syntheticRNASeq is a python package that allows generation of synthetic RNA-Sequencing data by sampling a negative binomial distribution. The output of the generators are pandas data frames with genes in rows and samples in columns.
Usage
Install and import the module:
!pip install syntheticRNASeq
import syntheticRNASeq as synRNA
from syntheticRNASeq import SingleSampleGenerator, ReplicateGenerator, MultipleSampleGenerator #If you want to import specific class
Generation of a single sample
To create a single sample we will use the SingleSampleGenerator class and call the generate_single_sample function:
single_sample = SingleSampleGenerator(number_of_genes = 60_000,
neg_binomial_n = 0.5,
neg_binomial_p = 0.05,
seed = 0)
single_sample = single_sample.generate_single_sample()
Generation of a replicates from a single sample
To create triplicates from a single sample created from the above function we will use the ReplicateGenerator class and call the get_sample_replicates function:
replicates = ReplicateGenerator(normal_distribution_sigma = 1,
df = single,
seed = 0)
replicates = replicates.get_sample_replicates()
Generation of multiple samples
To create multiple sample we will use the MultipleSampleGenerator class and call the generate_multiple_sample function:
multiple_samples = MultipleSampleGenerator(number_of_samples = 3,
number_of_genes = 60_000,
neg_binomial_n = 0.5,
neg_binomial_p = 0.05,
seed = 0)
multiple_samples = multiple_samples.generate_multiple_sample()
GitHub
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 syntheticrnaseq-1.0.1.tar.gz.
File metadata
- Download URL: syntheticrnaseq-1.0.1.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68837e8c23cd74a8f94361b8c9b46e422958dce39dcbab6772b4bd7a24f61849
|
|
| MD5 |
fcb5d7e4d05752ef20e67a44d1c95fdb
|
|
| BLAKE2b-256 |
62ed3adce58598f7ce9bb97eafa5ef9e105a54e6c0e0316d9c9db218c21a6af8
|
File details
Details for the file syntheticrnaseq-1.0.1-py3-none-any.whl.
File metadata
- Download URL: syntheticrnaseq-1.0.1-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c417de7ceeac2adc7a8b093107a4336167443598a719eacb39859b769041bc5
|
|
| MD5 |
dbba7455ce3011be0a0a48503f0a0761
|
|
| BLAKE2b-256 |
eb14c9d3c31fab3753c383912294bd00a9c6739183cd8d16f60ee0b93310a11c
|