Skip to main content

Pangenome dotplot

Project description

PanDots

Pangenome Dotplots. Visualize pangenome chromosome structures by generating dotplots from sequence aligmnets in PAF format. Sequences should be aligned using the same reference 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=0.12.4 

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 <reference_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.4.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pandots-0.0.4.tar.gz
  • Upload date:
  • Size: 5.4 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.4.tar.gz
Algorithm Hash digest
SHA256 9fc4190f60e94d10cfc35ebfdfc84bd403cdff382ce159940fe92e88514c3dc8
MD5 d3287de8f098ccabb0dbf75748528344
BLAKE2b-256 7fa8350505542e80ebb3e320be2a17e9ac4a1a7bc9a448e76389bc0906f71bb3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pandots-0.0.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6c9de77be63a320be53c38081c0a5532ba817c166803399e7f277a08c7b4eb6d
MD5 fe614f14967b1c1d464a66e187a0b8ca
BLAKE2b-256 7555a115640ce3848026c958012f344842d1262c5eb149bdcaae29498873184b

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