trackplot is a tool for visualizing various next-generation sequencing (NGS) data, including DNA-seq, RNA-seq, single-cell RNA-seq and full-length sequencing datasets.
Features of trackplot
Support various file formats as input
Support strand-aware coverage plot
Visualize coverage by heatmap, including HiC diagram
Visualize protein domain based the given gene id
Demultiplex the single-cell RNA/ATAC-seq which used cell barcode into cell population
Support visualizing individual full-length reads in read-by-read style
Support visualize circRNA sequencing data
Input
trackplot supports almost NGS data format, including
The output will be a pdf and other image file formats which satisfy the requirement of the major journals,
and each track on output corresponds these datasets from config file.
Usage
Trackplot is based on Python3(python_requires='>=3.8'),
and we have simplified the installation process on the main page.
For a more comprehensive installation guide, please refer to this link.
For impatient
pip install trackplot
trackplot --help
# or using trackplot by conda
conda create -n trackplot -c bioconda -c conda-forge trackplot
conda activate trackplot
trackplot --help
Notes
For users on Microsoft Windows, Mac (Apple Silicon),
and other ARM platforms,
please note that Trackplot may not be installable via PyPI or Conda due to compatibility issues with pysam,
pybigwig, and hicmatrix libraries on these platforms.
As an alternative, we recommend using the Docker image for installation.
If you encounter a segment fault error during multiple processing,
you may want to consider using the Docker image or running the command with the -p 1 flag.
If you encounter the message Please install pyBigWig and hicmatrix,
you can refer to the official documentation for pyBigWig and
hicmatrix to fulfill their requirements and resolve the issue.
Using trackplot by a command line (click me)
install from PyPi
Before running this command line, please check python (>=3.8) was installed.
pip install trackplot
# __Note:__ We noticed some pypi mirrors are not syncing some packages we depend on,
# therefore please try another pypi mirror once you encounter
# `No local packages or working download links found for xxx`
For a binary version of the tool and more comprehensive information, please visit this link.
# example with version v0.3.5, please using your interested version according to your needs
export VERSION=0.3.5
chmod +x trackplot-${VERSION}-x86_64.AppImage
./trackplot-${VERSION}-x86_64.AppImage --help
using docker image
docker pull ygidtu/trackplot
docker run --rm ygidtu/trackplot --help
install from bioconda
# install trackplot into the default conda env
conda install -c bioconda -c conda-forge trackplot
# or install trackplot into an isolated environments
conda create -n trackplot -c bioconda -c conda-forge trackplot
# activate the trackplot environment and execute the command line tool
conda activate trackplot
trackplot --help
# example with version v0.3.3, please using your interested version according to your needs
export VERSION=0.3.3
gunzip trackplot-${VERSION}-x86_64.AppImage
chmod +x trackplot-${VERSION}-x86_64.AppImage
./trackplot-${VERSION}-x86_64.AppImage --help
# startup webserver
./trackplot-${VERSION}-x86_64.AppImage --start-server --host 0.0.0.0 --port 5000 --plots ./plots
Note: the --plots were required while using appimages
-p: public and private port for the server, default:5000(public):5000(private)
-v, --volume: mount the working directory to docker container, for example, the $PWD/data could replace by the path to your directory contains all necessary data
--user: prevent docker read and write file using root privileges
Example
The example folder is downloaded from here.
And a more detailed tutorial could be found at here.
trackplot
Tutorials
what is trackplot
trackplot is a tool for visualizing various next-generation sequencing (NGS) data, including DNA-seq, RNA-seq, single-cell RNA-seq and full-length sequencing datasets.
Features of trackplot
Input
trackplot supports almost NGS data format, including
samtools depthOutput
The output will be a pdf and other image file formats which satisfy the requirement of the major journals, and each track on output corresponds these datasets from config file.
Usage
Trackplot is based on Python3
(python_requires='>=3.8'), and we have simplified the installation process on the main page. For a more comprehensive installation guide, please refer to this link.For impatient
Notes
Using trackplot by a command line (click me)
Before running this command line, please check python (>=3.8) was installed.
For a binary version of the tool and more comprehensive information, please visit this link.
Using trackplot by a local webserver (click me)
Note: the
--plotswere required while using appimages-p: public and private port for the server, default:5000(public):5000(private)-v,--volume: mount the working directory to docker container, for example, the$PWD/datacould replace by the path to your directory contains all necessary data--user: prevent docker read and write file using root privilegesExample
The
examplefolder is downloaded from here. And a more detailed tutorial could be found at here.if trackplot was installed by docker, here is the cmd
here is the output file.
Questions
Visit issues or contact Yiming Zhang or Ran Zhou
Citation
If you use the tool in your publication, please cite by
Zhang Y, Zhou R, Liu L, et al. Trackplot: A flexible toolkit for combinatorial analysis of genomic data[J]. PLoS computational biology, 2023, 19(9): e1011477.