Reduced Pytor file size by compressing the BAF likelihood matrix
Option to avoid storing the full BAF likelihood matrix (-nolh), drastically reducing the final Pytor file size to less than 50 MB
If the full BAF likelihood matrix is not stored in Pytor file, during -call step likelihood will be calculated during run time
Introduced plotting parameter “lh_lite,” used when the full BAF likelihood matrix is not present in the Pytor file
Implemented log scale for Manhattan plot (#126)
Added plot RD difference/ratio between two samples (#151)
Updated the code for VCF output
Included an error log for missing annotation links in reference genome settings
Added matplotlib_use parameter to set the Matplotlib backend
Citing CNVpytor
CNVpytor: a tool for copy number variation detection and analysis from read depth and allele imbalance in whole-genome sequencing
Milovan Suvakov, Arijit Panda, Colin Diesh, Ian Holmes, Alexej Abyzov, GigaScience, Volume 10, Issue 11, November 2021, giab074
https://doi.org/10.1093/gigascience/giab074
CNVpytor view interactive mode is implemented with completion and internal documentation (help command).
To enter interactive mode use ‘-view bin_size’ option:
> cnvpytor -root file.pytor -view 10000
cnvpytor> chr1:1M-50M
cnvpytor> rd
cnvpytor> set panels rd likelihood
cnvpytor> show
Parameters
* baf_colors: ['gray', 'black', 'red', 'green', 'blue']
* bin_size: 100000
* chrom: []
* contrast: 20
* dpi: 200
* file_titles: []
* grid: auto
* lh_colors: ['yellow']
* markersize: auto
* min_segment_size: 0
* output_filename:
* panels: ['rd']
* plot_file: 0
* plot_files: [0]
0: file.pytor
* rd_call: True
* rd_call_mosaic: False
* rd_circular_colors: ['#555555', '#aaaaaa']
* rd_colors: ['grey', 'black', 'red', 'green', 'blue']
* rd_manhattan_call: False
* rd_manhattan_range: [0, 2]
* rd_partition: True
* rd_range: [0, 3]
* rd_raw: True
* rd_use_gc_corr: True
* rd_use_mask: False
* snp_call: False
* snp_circular_colors: ['#00ff00', '#0000ff']
* snp_colors: ['yellow', 'orange', 'cyan', 'blue', 'lime', 'green', 'yellow', 'orange']
* snp_use_id: False
* snp_use_mask: True
* snp_use_phase: False
* style: None
* xkcd: False
cnvpytor> help markersize
markersize
Size of markers used in scatter like plots (e.g. manhattan, snp).
TYPE
float or str
DEFAULT
auto
PLOTS AFFECTS
manhattan, snp, region plot with snp panel
EXAMPLE(s)
set markersize 10
set markersize auto
SEE ALSO
rd_colors, snp_colors, baf_colors, lh_colors
cnvpytor> set bin_size 100000
cnvpytor> chr1:1M-50M chr2:60M-65M > filename.png
Plot from script
> echo "rdstat" | cnvpytor -root file.pytor -view 100000 -o prefix.png
> cnvpytor -root file.pytor -view 100000 <<ENDL
set rd_use_mask
set markersize 1
set grid vertical
set output_filename prefix.png
manhattan
circular
ENDL
> cnvpytor -root file.pytor -view 100000 < script.spytor
Persistent history and viewer configuration (experimental)
CNVpytor will automatically store command line history into file ~/.cnvpytor/history if there is directory
~/.cnvpytor. To enable this functionality create this directory:
> mkdir ~/.cnvpytor
To configure viewer parameters create file viewer.conf within same directory in following format:
3D printable CNVpytor logo (stl file)
CNVpytor - a python extension of CNVnator
CNVpytor is a Python package and command line tool for CNV/CNA analysis from depth-of-coverage by mapped reads developed in Abyzov Lab, Mayo Clinic.
Follow CNVpytor Twitter account.
New in version 1.3.1
What’s new:
Citing CNVpytor
CNVpytor: a tool for copy number variation detection and analysis from read depth and allele imbalance in whole-genome sequencing
Milovan Suvakov, Arijit Panda, Colin Diesh, Ian Holmes, Alexej Abyzov, GigaScience, Volume 10, Issue 11, November 2021, giab074 https://doi.org/10.1093/gigascience/giab074
Learn how to use CNVpytor in 10 minutes
pytor file support in igv.js and igv-webapp
Gallery
Install
Dependencies
Optional:
Install by cloning from GitHub
For single user (without admin privileges) use:
Install using pip
Version (v1.2.1) is available using pip directly:
Use as a command line tool
Diagram made using Draw.io.
Call CNVs using read depth:
Importing and using single nucleotide polymorphism data:
Filtering calls from view mode
Annotating filtered calls:
Merging calls from multiple samples
Plotting all merged calls:
Annotating merged calls:
Genotyping from command line
Genotyping with additional informations:
Genotyping using P filtered (1000 Genome Project strict mask) RD signal:
Plot from interactive mode
CNVpytor view interactive mode is implemented with completion and internal documentation (help command).
To enter interactive mode use ‘-view bin_size’ option:
Plot from script
Persistent history and viewer configuration (experimental)
CNVpytor will automatically store command line history into file
~/.cnvpytor/historyif there is directory~/.cnvpytor. To enable this functionality create this directory:To configure viewer parameters create file
viewer.confwithin same directory in following format:This way you can set any parameter using python syntax. Any parameter specified here will overwrite parameters provided in command line.
Use as a Python package
CNVpytor is not just command line tool but also Python package.
For more details check API Documentation or see examples in Jupyter notebook.
Bugs
Please report any bugs that you find on GitHub: https://github.com/abyzovlab/CNVpytor/issues
Or, even better, fork the repository on GitHub and create a pull request.
License
Released under MIT licence.