Skip to main content

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_sample,
								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

https://github.com/ttkaralis/syntheticRNASeq

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

syntheticrnaseq-1.0.2.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

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

syntheticrnaseq-1.0.2-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file syntheticrnaseq-1.0.2.tar.gz.

File metadata

  • Download URL: syntheticrnaseq-1.0.2.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

Hashes for syntheticrnaseq-1.0.2.tar.gz
Algorithm Hash digest
SHA256 74cb89b45f32ddd7270ea2f89a3f294b68170fc436595901fd166af69cc1800a
MD5 f3d65a3b8ab43ff7dbf8f62c1f7ed102
BLAKE2b-256 15570b6e4b41f854abe68865c15c22c32b63416fdf5541587efd18b24fde18a8

See more details on using hashes here.

File details

Details for the file syntheticrnaseq-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for syntheticrnaseq-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2badde9671e11529b306f0c1d04b592e1e860c094664161ad1f3dfd3dd7e9e5c
MD5 c1c30bebab7277a1de01c176239a0999
BLAKE2b-256 470784d14172c58bce0ffbdb343347fb0552f295cc66f8c51b8f3fa2abdcdfd2

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