Suggest –huge flag when BrokenProcessPool crash occurs (#431)
Initial plan
Catch BrokenProcessPool and suggest –huge flag for large file processing
Co-authored-by: wdecoster 11660522+wdecoster@users.noreply.github.com
Delete nanomath/pycache/nanomath.cpython-312.pyc
Delete nanomath/pycache/init.cpython-312.pyc
Co-authored-by: copilot-swe-agent[bot] 198982749+Copilot@users.noreply.github.com Co-authored-by: wdecoster 11660522+wdecoster@users.noreply.github.com Co-authored-by: Wouter De Coster decosterwouter@gmail.com
NanoPlot
Plotting tool for long read sequencing data and alignments.
NanoPlot is also available as a web service.
The example plot above shows a bivariate plot comparing log transformed read length with average basecall Phred quality score. More examples can be found in the gallery on my blog ‘Gigabase Or Gigabyte’.
In addition to various plots also a NanoStats file is created summarizing key features of the dataset.
This script performs data extraction from Oxford Nanopore sequencing data in the following formats:
(can be bgzip, bzip2 or gzip compressed)
(can be bgzip, bzip2 or gzip compressed)
INSTALLATION
pip install NanoPlotUpgrade to a newer version using:
pip install NanoPlot --upgradeor
conda install -c bioconda nanoplotThe script is written for python3.
OUTPUT
NanoPlot creates:
USAGE
NOTES
--downsamplewon’t save you tons of time, as down sampling is only done after collecting all data and probably would only make a difference for a huge amount of data. If you want to save time you could down sample your data upfront. Note also that extracting information from a summary file is faster than other formats, and that you can extract from multiple files simultaneously (which will happen in parallel then). Some plot types (especially kde) are slower than others and you can take a look at the input for--plotsto speed things up (default is to make both kde and dot plot). If you are only interested in say the read length histogram it is possible to write a script to just get you that and avoid wasting time on the rest. Let me know if you need any help here.--plotsuses the plotly package to plot kde and dot plots. Hex option will be ignored.--legacyplotting of a hex plot currently is only possible using this option,which uses the seaborn and matplotlib package, since there is no support for it in plotly (yet). Plots like kde and dot are also possible with this option.EXAMPLE USAGE
ACKNOWLEDGMENTS/CONTRIBUTORS
CONTRIBUTING
I welcome all suggestions, bug reports, feature requests and contributions. Please leave an issue or open a pull request. I will usually respond within a day, or rarely within a few days.
PLOTS GENERATED
COMPANION SCRIPTS
CITATION
If you use this tool, please consider citing our publication.
Copyright: 2016-2020 Wouter De Coster decosterwouter@gmail.com