Skip to main content

A python package for managing single-cell RNA-seq datasets.

Project description

SingleCell

SingleCell is a python class available in the singlecelldata package for managing single-cell RNA-seq data. It contains three pandas dataframes; data for holding gene expression values (counts/normalized counts), genedata for holding more information about the genes e.g., gene names, and celldata which contains more information about cells such as cell types, labels etc.

Installation

The singlecelldata package can be easily installed using the following command:

pip install singlecelldata

Documentation

The SingleCell class reference manual can be found here

Using the SingleCell class

Basic Example

The SingleCell class can be used to create an object which stores single-cell gene expression data and additional data about genes and cells in their respective dataframes. To create a SingleCell object sc, the following python code can be used:

# Import SingleCell
from singlecelldata import SingleCell

# Create the path and the dataset variables
path = '../data/293t_jurkat/'
dataset = '293t'

# Create the SingleCell object
sc = SingleCell(path, dataset, "10X")
sc.print()

In the above example, a SingleCell object, sc, was ceated by passing the dataset name and the main data, the cell data and gene data as Pandas dataframes. Pandas is a powerpul python library for creating data structures from a variety of sources. Pandas can open and read data from numerous differernt file types such as csv files and creating dataframes from it. This enables the user to create SingleCell objects from a variety of different data file types.

Detailed Example

More detailed example can be found here

Contact

Contact the author on info@edwinvans.com to give feedback/suggestions for further improvements and to report issues.

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

singlecelldata-1.0.2.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

singlecelldata-1.0.2-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: singlecelldata-1.0.2.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for singlecelldata-1.0.2.tar.gz
Algorithm Hash digest
SHA256 ac442a2d9a1ba2d301fea0d1fe25af92b7802830859eb896afe95a76c552ac87
MD5 2d4c3b5705f012ce235daa08a3ce8f87
BLAKE2b-256 608af45461b65118fbeacc9f75c5cf849d09d2eba474744be3e1b960036ae1dc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: singlecelldata-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for singlecelldata-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1d036af1df29fb50df1e0ea922289aa4eaad16e6c8487bcb47bd9cf07d8c9e29
MD5 c8d060add1fda6b5047d56097603cf7f
BLAKE2b-256 cb31affc5c8abadd749c77b0ec33a944e98e1b168a836d674001b205cae9467a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page