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,
								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.1.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.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

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

Hashes for syntheticrnaseq-1.0.1.tar.gz
Algorithm Hash digest
SHA256 68837e8c23cd74a8f94361b8c9b46e422958dce39dcbab6772b4bd7a24f61849
MD5 fcb5d7e4d05752ef20e67a44d1c95fdb
BLAKE2b-256 62ed3adce58598f7ce9bb97eafa5ef9e105a54e6c0e0316d9c9db218c21a6af8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for syntheticrnaseq-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7c417de7ceeac2adc7a8b093107a4336167443598a719eacb39859b769041bc5
MD5 dbba7455ce3011be0a0a48503f0a0761
BLAKE2b-256 eb14c9d3c31fab3753c383912294bd00a9c6739183cd8d16f60ee0b93310a11c

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