sinto: tools for single-cell data processing
Project description
sinto
Tools for single-cell data processing
Installation
Install from PyPI:
pip install sinto
Install from source:
git clone https://github.com/timoast/sinto.git
cd sinto
python setup.py install
Features
Filter barcodes
Subsets of cells can be extracted from a BAM file using the
sinto filterbarcodes command:
$ sinto filterbarcodes -h
usage: sinto filterbarcodes [-h] -b BAM -c CELLS -o OUTPUT [-t] [-s]
[-p NPROC] [-m MODE]
Filter reads based on input list of cell barcodes
optional arguments:
-h, --help show this help message and exit
-b BAM, --bam BAM Input bam file (must be indexed)
-c CELLS, --cells CELLS
File or comma-separated list of cell barcodes. Can be
gzip compressed
-o OUTPUT, --output OUTPUT
Name for output text file
-t, --trim_suffix Remove trail 2 characters from cell barcode in BAM
file
-s, --sam Output sam format (default bam output)
-p NPROC, --nproc NPROC
Number of processors (default = 1)
-m MODE, --mode MODE Either tag (default) or readname. Some BAM file store
the cell barcode in the readname rather than under a
read tag
Add read tags per cell
Different read tags can be added to each cell with
the sinto addtags command.
$ sinto addtags -h
usage: sinto addtags [-h] -b BAM -f TAGFILE -o OUTPUT [-t] [-s] [-p NPROC]
[-m MODE]
Add read tags to reads from individual cells
optional arguments:
-h, --help show this help message and exit
-b BAM, --bam BAM Input bam file (must be indexed)
-f TAGFILE, --tagfile TAGFILE
Tab-delimited file containing cell barcode, tag to be
added, and tag identity. Can be gzip compressed
-o OUTPUT, --output OUTPUT
Name for output text file
-t, --trim_suffix Remove trail 2 characters from cell barcode in BAM
file
-s, --sam Output sam format (default bam output)
-p NPROC, --nproc NPROC
Number of processors (default = 1)
-m MODE, --mode MODE Either tag (default) or readname. Some BAM file store
the cell barcode in the readname rather than under a
read tag
This requires a file specifying the tags to be added to each cell, for example:
TGGCAATGTTGAAGCG-1 CI A
GACCAATCACCATTCC-1 CI A
CAGGATTCAGAACTTC-1 CI B
GAACCTAAGAGAGGTA-1 CI B
ACATGGTGTAGACGCA-1 CI C
CCCTGATTCGGATAGG-1 CI C
This will add a CI tag, with the tag set to A, B, or C depending on the cell barcode sequence.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sinto-0.2.tar.gz.
File metadata
- Download URL: sinto-0.2.tar.gz
- Upload date:
- Size: 21.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93ba21d4e2c09927b8c0e2ea8992597a297408fa6b773fdb1de3acddef126d9f
|
|
| MD5 |
06a364204c7695b02440c9ef70a7aa91
|
|
| BLAKE2b-256 |
3ed15ce78cc1c31c290830a55f507a04b9ea25582a4024651477fd51bf73cfaa
|
File details
Details for the file sinto-0.2-py3-none-any.whl.
File metadata
- Download URL: sinto-0.2-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3aac5f55a8367b3eda43bfad61498169a0db344e4da1f3b86e3eafb8fedcdca8
|
|
| MD5 |
93d3cecd9f8d46a4b9457053da46a327
|
|
| BLAKE2b-256 |
bb6130b7c3476fe7cb1c185425d49810d52ca27d7f8d77feefb6f370adf5d0a2
|