NanoComp


NameNanoComp JSON
Version 1.23.1 PyPI version JSON
download
home_pagehttps://github.com/wdecoster/NanoComp
SummaryComparing runs of Oxford Nanopore sequencing data and alignments
upload_time2023-07-01 10:13:14
maintainer
docs_urlNone
authorWouter De Coster
requires_python>=3
licenseMIT
keywords nanopore sequencing plotting quality control
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            # NanoComp


Compare multiple runs of long read sequencing data and alignments. Creates violin plots or box plots of length, quality and percent identity and creates dynamic, overlaying read length histograms and a cumulative yield plot.

As of version 1.1.0 NanoComp will also create a static png image for dynamic html plots, as the latter can get quite big and slow to load for big datasets. This however requires that you install [orca](https://github.com/plotly/orca). Without orca the script still works, but no static copies of dynamic plots are created.

[![Twitter URL](https://img.shields.io/twitter/url/https/twitter.com/wouter_decoster.svg?style=social&label=Follow%20%40wouter_decoster)](https://twitter.com/wouter_decoster)


### INSTALLATION
`pip install NanoComp`  

This script is written for Python3.

### USAGE
```
NanoComp [-h] [-v] [-t THREADS] [-o OUTDIR] [-p PREFIX] [--verbose]
                [--raw] [--readtype {1D,2D,1D2}] [--barcoded]
                [--split_runs TSV_FILE]
                [-f {eps,jpeg,jpg,pdf,pgf,png,ps,raw,rgba,svg,svgz,tif,tiff}]
                [-n names [names ...]] [--plot {violin,box}] [--title TITLE]
                (--fastq files [files ...] | --summary files [files ...] | --bam files [files ...])

General options:
  -h, --help            show the help and exit
  -v, --version         Print version and exit.
  -t, --threads THREADS
                        Set the allowed number of threads to be used by the script
  -o, --outdir OUTDIR   Specify directory in which output has to be created.
  -p, --prefix PREFIX   Specify an optional prefix to be used for the output files.
  --verbose             Write log messages also to terminal.
  --raw                 Store the extracted data in tab separated file.

Options for filtering or transforming input prior to plotting:
  --readtype {1D,2D,1D2}
                        Which read type to extract information about from summary. Options are 1D, 2D,
                        1D2
  --barcoded            Barcoded experiment in summary format, splitting per barcode.
  --split_runs TSV_FILE
                        File: Split the summary on run IDs and use names in tsv file. Mandatory header
                        fields are 'NAME' and 'RUN_ID'.

Options for customizing the plots created:
  -f, --format {'png'(default),'jpg','jpeg','webp','svg','pdf','eps','json'}
                        Specify the output format of the plots. JSON output allows for customisation by the end-user after plotting the figures (https://plotly.com/python-api-reference/generated/plotly.io.read_json.html).
  -n, --names names     Specify the names to be used for the datasets.
  -c, --colors colors   Specify the colors to be used for the datasets.
  --plot {violin,box,ridge,false}
                        Which plot type to use: 'box', 'violin' (default), 'ridge' (joyplot) or 'false' (no plots)
  --title TITLE         Add a title to all plots, requires quoting if using spaces

Input data sources, one of these is required.:
  --fastq files [files ...]
                        Data is in (compressed) fastq format.
  --fasta files [files ...]
                        Data is in (compressed) fasta format.
  --summary files [files ...]
                        Data is in (compressed) summary files generated by albacore or guppy.
  --bam files [files ...]
                        Data is in sorted bam files.

```

[Example file for --split_runs](https://github.com/wdecoster/nanocomp/blob/master/extra/split_file.tsv)






### EXAMPLES
```
NanoComp --bam alignment1.bam alignment2.bam alignment3.bam --outdir compare-runs
NanoComp --fastq reads1.fastq.gz reads2.fastq.gz reads3.fastq.gz reads4.fastq.gz --names run1 run2 run3 run4
```


### EXAMPLE OUTPUT
![loglength example](https://github.com/wdecoster/nanocomp/blob/master/examples/NanoComp_log_length.png)
![box percentIdentity example](https://github.com/wdecoster/nanocomp/blob/master/examples/box_NanoComp_percentIdentity.png)

[See more examples](https://github.com/wdecoster/nanocomp/tree/master/examples)

I welcome all suggestions, bug reports, feature requests and contributions. Please leave an [issue](https://github.com/wdecoster/nanocomp/issues) or open a pull request. I will usually respond within a day, or rarely within a few days.


## CITATION

If you use this tool, please consider citing our [publication](https://academic.oup.com/bioinformatics/article/39/5/btad311/7160911).


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/wdecoster/NanoComp",
    "name": "NanoComp",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3",
    "maintainer_email": "",
    "keywords": "nanopore sequencing plotting quality control",
    "author": "Wouter De Coster",
    "author_email": "decosterwouter@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/76/25/afe859639d29f40415778eaa0a4474d66585a9a70175e82003e5057681e7/NanoComp-1.23.1.tar.gz",
    "platform": null,
    "description": "# NanoComp\n\n\nCompare multiple runs of long read sequencing data and alignments. Creates violin plots or box plots of length, quality and percent identity and creates dynamic, overlaying read length histograms and a cumulative yield plot.\n\nAs of version 1.1.0 NanoComp will also create a static png image for dynamic html plots, as the latter can get quite big and slow to load for big datasets. This however requires that you install [orca](https://github.com/plotly/orca). Without orca the script still works, but no static copies of dynamic plots are created.\n\n[![Twitter URL](https://img.shields.io/twitter/url/https/twitter.com/wouter_decoster.svg?style=social&label=Follow%20%40wouter_decoster)](https://twitter.com/wouter_decoster)\n\n\n### INSTALLATION\n`pip install NanoComp`  \n\nThis script is written for Python3.\n\n### USAGE\n```\nNanoComp [-h] [-v] [-t THREADS] [-o OUTDIR] [-p PREFIX] [--verbose]\n                [--raw] [--readtype {1D,2D,1D2}] [--barcoded]\n                [--split_runs TSV_FILE]\n                [-f {eps,jpeg,jpg,pdf,pgf,png,ps,raw,rgba,svg,svgz,tif,tiff}]\n                [-n names [names ...]] [--plot {violin,box}] [--title TITLE]\n                (--fastq files [files ...] | --summary files [files ...] | --bam files [files ...])\n\nGeneral options:\n  -h, --help            show the help and exit\n  -v, --version         Print version and exit.\n  -t, --threads THREADS\n                        Set the allowed number of threads to be used by the script\n  -o, --outdir OUTDIR   Specify directory in which output has to be created.\n  -p, --prefix PREFIX   Specify an optional prefix to be used for the output files.\n  --verbose             Write log messages also to terminal.\n  --raw                 Store the extracted data in tab separated file.\n\nOptions for filtering or transforming input prior to plotting:\n  --readtype {1D,2D,1D2}\n                        Which read type to extract information about from summary. Options are 1D, 2D,\n                        1D2\n  --barcoded            Barcoded experiment in summary format, splitting per barcode.\n  --split_runs TSV_FILE\n                        File: Split the summary on run IDs and use names in tsv file. Mandatory header\n                        fields are 'NAME' and 'RUN_ID'.\n\nOptions for customizing the plots created:\n  -f, --format {'png'(default),'jpg','jpeg','webp','svg','pdf','eps','json'}\n                        Specify the output format of the plots. JSON output allows for customisation by the end-user after plotting the figures (https://plotly.com/python-api-reference/generated/plotly.io.read_json.html).\n  -n, --names names     Specify the names to be used for the datasets.\n  -c, --colors colors   Specify the colors to be used for the datasets.\n  --plot {violin,box,ridge,false}\n                        Which plot type to use: 'box', 'violin' (default), 'ridge' (joyplot) or 'false' (no plots)\n  --title TITLE         Add a title to all plots, requires quoting if using spaces\n\nInput data sources, one of these is required.:\n  --fastq files [files ...]\n                        Data is in (compressed) fastq format.\n  --fasta files [files ...]\n                        Data is in (compressed) fasta format.\n  --summary files [files ...]\n                        Data is in (compressed) summary files generated by albacore or guppy.\n  --bam files [files ...]\n                        Data is in sorted bam files.\n\n```\n\n[Example file for --split_runs](https://github.com/wdecoster/nanocomp/blob/master/extra/split_file.tsv)\n\n\n\n\n\n\n### EXAMPLES\n```\nNanoComp --bam alignment1.bam alignment2.bam alignment3.bam --outdir compare-runs\nNanoComp --fastq reads1.fastq.gz reads2.fastq.gz reads3.fastq.gz reads4.fastq.gz --names run1 run2 run3 run4\n```\n\n\n### EXAMPLE OUTPUT\n![loglength example](https://github.com/wdecoster/nanocomp/blob/master/examples/NanoComp_log_length.png)\n![box percentIdentity example](https://github.com/wdecoster/nanocomp/blob/master/examples/box_NanoComp_percentIdentity.png)\n\n[See more examples](https://github.com/wdecoster/nanocomp/tree/master/examples)\n\nI welcome all suggestions, bug reports, feature requests and contributions. Please leave an [issue](https://github.com/wdecoster/nanocomp/issues) or open a pull request. I will usually respond within a day, or rarely within a few days.\n\n\n## CITATION\n\nIf you use this tool, please consider citing our [publication](https://academic.oup.com/bioinformatics/article/39/5/btad311/7160911).\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Comparing runs of Oxford Nanopore sequencing data and alignments",
    "version": "1.23.1",
    "project_urls": {
        "Homepage": "https://github.com/wdecoster/NanoComp"
    },
    "split_keywords": [
        "nanopore",
        "sequencing",
        "plotting",
        "quality",
        "control"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7625afe859639d29f40415778eaa0a4474d66585a9a70175e82003e5057681e7",
                "md5": "d89ad190ab77aa1a5f0678bd89930963",
                "sha256": "9c411413e2dec8416f162cbc63996c5a293c1e19c700c67c7137d2103f7f1ded"
            },
            "downloads": -1,
            "filename": "NanoComp-1.23.1.tar.gz",
            "has_sig": false,
            "md5_digest": "d89ad190ab77aa1a5f0678bd89930963",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3",
            "size": 17988,
            "upload_time": "2023-07-01T10:13:14",
            "upload_time_iso_8601": "2023-07-01T10:13:14.767856Z",
            "url": "https://files.pythonhosted.org/packages/76/25/afe859639d29f40415778eaa0a4474d66585a9a70175e82003e5057681e7/NanoComp-1.23.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-01 10:13:14",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "wdecoster",
    "github_project": "NanoComp",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": true,
    "lcname": "nanocomp"
}
        
Elapsed time: 0.09307s