Skip to main content

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.

Release files for singlecelldata 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for singlecelldata 1.0.2
File Size Uploaded
singlecelldata-1.0.2.tar.gz 8.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for singlecelldata 1.0.2
File Interpreter ABI Platform
singlecelldata-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 16.7 kB

Release files / singlecelldata-1.0.2.tar.gz

Download URL singlecelldata-1.0.2.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ac442a2d9a1ba2d301fea0d1fe25af92b7802830859eb896afe95a76c552ac87
BLAKE2b-256 checksum
How to use checksums
608af45461b65118fbeacc9f75c5cf849d09d2eba474744be3e1b960036ae1dc
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / singlecelldata-1.0.2-py3-none-any.whl

Download URL singlecelldata-1.0.2-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1d036af1df29fb50df1e0ea922289aa4eaad16e6c8487bcb47bd9cf07d8c9e29
BLAKE2b-256 checksum
How to use checksums
cb31affc5c8abadd749c77b0ec33a944e98e1b168a836d674001b205cae9467a
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page