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

Uploaded Python 3

File details

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

File metadata

  • Download URL: syntheticrnaseq-1.0.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.tar.gz
Algorithm Hash digest
SHA256 30b775c75d030d6ad1a823ae20fc92a4b5fb3cb6be501685420f69ed4ee9a1b7
MD5 32be3fb459feccec68477d9e223571d4
BLAKE2b-256 4c5d370756fec8dc4f6ae1efc2afb04f4f5625ed40580f18c3202f69ba4fb825

See more details on using hashes here.

File details

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

File metadata

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

Hashes for syntheticrnaseq-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 daec8e413ae446749307c5cca416abf343735e977f39f6d5a62e6242c41353d7
MD5 9003d031eae122b5d27e14dfd820069b
BLAKE2b-256 9087d7334739d4f92005cff28bcef89af1e7ec29e59ff552400b12840deb2330

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