Skip to main content

Oxford Nanopore Technologies Plc. fork of Spectre CNV caller

Project description

Spectre

Spectre - Long-read CNV Caller

Spectre is a long-read copy number variation (CNV) caller designed to detect large CNVs (>100kb).

Ont-spectre is a tool based on the original Spectre v0.2.0, with the following main enhancements:

  • Diploid Coverage Estimation: Bins containing heterozygous SNVs are used to estimate the properties of the diploid coverage distribution, aiding in the selection of appropriate parameters.
  • Karyotype Prediction: Adds sex chromosome karyotype prediction (including XO, XXY, etc). All events are called relative to the predicted karyotype.

Installation

The recommended way to install Spectre is through either pip or conda:

pip install ont-spectre

(or)

conda install nanoporetech::ont-spectre

Note: Spectre supports Python versions >= 3.8.

Build from Source

To install the ont-spectre tool from the source, follow these steps:

  1. Clone the repository:

    git clone https://github.com/epi2me-labs/ont-spectre.git
    cd ont-spectre
    
  2. Create a virtual environment (optional):

    It’s recommended to use a isolated environment to manage dependencies. Create and activate one with:

    python3 -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
    

    Alternatively, you can create a conda environment:

    conda create -n spectre python=3.8 pip -y
    conda activate spectre
    

Note: Spectre supports Python versions >= 3.8.

  1. Install dependencies and the tool:

    pip install .
    
  2. Verify installation:

    After installation, you should be able to run the tool using the entry point spectre:

    spectre --help
    

How to run

Spectre requires the following inputs:

  • The output directory of mosdepth, a tool for fast coverage calculation.
  • The reference genome (can be bgzip-compressed).
  • The window size used in Mosdepth (Ensure that the binsize between Mosdepth and Spectre matches. We suggest a binsize of 1,000 base pairs).
  • A VCF file containing SNVs (Single Nucleotide Variants).

Example Command:

spectre CNVCaller \
  --bin-size 1000 \
  --coverage mosdepth/sampleid/ \
  --sample-id sampleid \
  --output-dir sampleid_output_directory_path/ \
  --reference reference.fasta.gz \
  --snv sampleid.vcf.gz

Help

Licence and Copyright

© 2024- Oxford Nanopore Technologies Ltd.

ont-spectre is distributed under the terms of the Oxford Nanopore Technologies Public License v1.0.

Research Release

Research releases are provided as technology demonstrators to provide early access to features or stimulate Community development of tools. Support for this software will be minimal and is only provided directly by the developers. Feature requests, improvements, and discussions are welcome and can be implemented by forking and pull requests. However much as we would like to rectify every issue and piece of feedback users may have, the developers may have limited resource for support of this software. Research releases may be unstable and subject to rapid iteration by Oxford Nanopore Technologies.

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

ont_spectre-0.3.0.tar.gz (162.8 kB view details)

Uploaded Source

File details

Details for the file ont_spectre-0.3.0.tar.gz.

File metadata

  • Download URL: ont_spectre-0.3.0.tar.gz
  • Upload date:
  • Size: 162.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.10

File hashes

Hashes for ont_spectre-0.3.0.tar.gz
Algorithm Hash digest
SHA256 3d47cf2df2e9d60eb58dd68c2d23482f7d37463e045785955bf0b34c0098d6ac
MD5 40fff6fd9063c99d37a4f6337c2779da
BLAKE2b-256 399894dfa3c1cd823453a7aa12b3cd073236eeea90c4ec4881dbc6bb49b84b06

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