NCBI-Hackathons / PyClonal

Jupyter Notebooks to analyze T-cell Receptor Sequencing
MIT License
5 stars 5 forks source link

Jupyter Notebooks to analyze T-cell Receptor Sequencing

Goal

What is it?

Use cases (links to Jupyter notebooks)

Background

How to use

Installation

Dependencies: pandas, jupyter, scipy, seaborn

Alternate installation methods

Older versions of Anaconda have issues running pipenv. There are a few alternatives if you run into installation issues:

Usage

To use from the command line, run pcl.py script:

    $./pcl.py -h
    usage: pcl.py [-h] [-p PATTERN] [-f [FORMAT [FORMAT ...]]] [-n FORMAT_NAME]
          [-c [FORMAT_COLS [FORMAT_COLS ...]]] [-o OUTPUT_FILE]
          dir

    A Jupyter notebook based framework to analyze T-cell receptor sequencing data.
    Provide an interactive set of Jupyter notebooks for easily visualizing and
    analyzing TCR sequencing data using existing tools and methods.

    positional arguments:
    dir                   directory with data files

    optional arguments:
    -h, --help            show this help message and exit
    -p PATTERN, --pattern PATTERN
                            filename patterd (*.tsv)
    -f [FORMAT [FORMAT ...]], --format [FORMAT [FORMAT ...]]
                            custom format: names of columns to extract
    -n FORMAT_NAME, --format_name FORMAT_NAME
                            custom format name
    -c [FORMAT_COLS [FORMAT_COLS ...]], --format_cols [FORMAT_COLS [FORMAT_COLS ...]]
                            column to detect format
    -o OUTPUT_FILE, --output_file OUTPUT_FILE
                            output files basename

For usage example in jupyter notebook see example notebook data input.ipynb in jupyter_notebooks directory.

Resources and Existing TCR tools to gather from:

-VDJdb -https://vdjdb.cdr3.net/

-VDJ tools -https://vdjtools-doc.readthedocs.io/en/master/

-VDJviz: a versatile immune repertoire browser -https://vdjviz.cdr3.net/

-tcR -https://cran.r-project.org/web/packages/tcR/vignettes/tcrvignette.html

-miXCR -https://mixcr.readthedocs.io/en/master/

-powerTCR -https://www.biorxiv.org/content/early/2018/04/07/297119

-ImmuneDB -http://immunedb.com/

-TraCeR -https://github.com/teichlab/tracer