Skip to main content

Pangenome dotplot

Project description

PanDots

Description

Pangenome Dotplots. Visualize pangenome chromosome structures by generating dotplots from sequence aligmnets in PAF format. Sequences should be aligned using an anchoring genome.

Installation

In a conda environment

Fist create an environment that includes all dependencies:

conda create -c conda-forge -c bioconda -n pandots \
  python pandas numpy seaborn plotnine 

Then install with pip:

conda activate pandots
pip install pandots

With just pip

Install with pip:

pip install pandots

Usage

Generate input files

Create PAF pairwise alignments to an anchor genome for all genomes using minimap2 or your prefered method. Extract your chromosome of interest from all PAF files and concatenate into a single file.

Visualize with PanDots

Once you have your chromosome PAF file, you can generate the plot.

python pandots.py -p <chromosome.paf> -r <anchor_chromosome> -o <output_suffix>

After completion the plot will be saved as <output_prefix>.pandots.svg.

Aditional arguments

  • -p,--paf: path to paf file for a single chromosome.
  • -r,--refchrom: reference chromosome name
  • -o,--outprefix: output prefix name
  • --key: flag to include genome key
  • --pad: integer value to adjust spacing between genomes. Default: 10000000
  • --flip: flag to make paf column 6 the reference. Column 1 is the reference by default.
  • --invert: flag to invert reference coordinates in relation to the pangenome.
  • --reorder: flag to adjust the order of genomes by length and number of invsersions.
  • --recolor: flag to plot using alternating colors.
  • --orient: path to two column orientation table (col1=chromosome name, col2=True/False). Will invert coordinates in relation to reference genome.

License

PanDots is licensed under a Salk Institute BSD license

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

pandots-0.0.3.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

pandots-0.0.3-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file pandots-0.0.3.tar.gz.

File metadata

  • Download URL: pandots-0.0.3.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.1

File hashes

Hashes for pandots-0.0.3.tar.gz
Algorithm Hash digest
SHA256 d6aba1fc3111bd65ba3ad42a181cd18396ed0dc7a984142a90c44b52ceebad5f
MD5 196aece5699526f2ab72b817e8e1aeb8
BLAKE2b-256 c081ce01e5719bebcb8ed6bf62bea736af688b1353b0be5be88d5dd5e336c87e

See more details on using hashes here.

File details

Details for the file pandots-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: pandots-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.1

File hashes

Hashes for pandots-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1146dba00ec32bc054ba273916ff6ffcfdc51579b743aef4e6798dbd7bf7b7d7
MD5 8ac88b2e4ca0a75d2b7be3de2e40c1c8
BLAKE2b-256 99f5f2cdf02021fedf534378d52c2e8217251cb4fd961772516e19ddaa527b00

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