Skip to main content

Fast sequencing quality metrics

Project description

Sequence quality metrics

Features:

  • Low memory footprint, small install size and fast execution times.

  • Informative graphs that allow for judging the quality of a sequence at a quick glance.

  • Overrepresentation analysis using 31 bp sequence fragments. Overrepresented sequences are checked against the NCBI univec database.

  • Estimate duplication rate using a fingerprint subsampling technique which is also used in filesystem duplication estimation.

  • Checks for 6 illumina adapter sequences and 15 nanopore adapter sequences.

  • Per tile quality plots for illumina reads.

  • Channel and other plots for nanopore reads.

  • FASTQ and unaligned BAM are supported. See “Supported formats”.

Supported formats

  • FASTQ. Only the Sanger variation with a phred offset of 33 and the error rate calculation of 10 ^ (-phred/10) is supported. All sequencers use this format today.

    • For sequences called by illumina base callers an additional plot with the per tile quality will be provided.

    • For sequences called by guppy additional plots for nanopore specific data will be provided.

  • unaligned BAM. Any alignment flags are currently ignored.

    • For uBAM data as delivered by dorado additional nanopore plots will be provided.

Installation

pip install git+https://github.com/rhpvorderman/sequali.git

Usage

usage: sequali [-h] [–json JSON] [–html HTML] [–dir DIR]

[–overrepresentation-threshold-fraction OVERREPRESENTATION_THRESHOLD_FRACTION] [–overrepresentation-min-threshold OVERREPRESENTATION_MIN_THRESHOLD] [–overrepresentation-max-threshold OVERREPRESENTATION_MAX_THRESHOLD] [–max-unique-sequences MAX_UNIQUE_SEQUENCES] [–overrepresentation-fragment-length OVERREPRESENTATION_FRAGMENT_LENGTH] [–overrepresentation-sample-every OVERREPRESENTATION_SAMPLE_EVERY] [–deduplication-estimate-bits DEDUPLICATION_ESTIMATE_BITS] input

positional arguments:

input Input FASTQ file

options:
-h, --help

show this help message and exit

--json JSON

JSON output file. default: ‘<input>.json’

--html HTML

HTML output file. default: ‘<input>.html’

--dir DIR

Output directory. default: current working directory

--overrepresentation-threshold-fraction OVERREPRESENTATION_THRESHOLD_FRACTION

At what fraction a sequence is determined to be overrepresented. Default: 0.0001 (1 in 100 000).

--overrepresentation-min-threshold OVERREPRESENTATION_MIN_THRESHOLD

The minimum amount of sequences that need to be present to be considered overrepresented even if the threshold fraction is surpassed. Useful for smaller files. Default: 100

--overrepresentation-max-threshold OVERREPRESENTATION_MAX_THRESHOLD

The threshold above which a sequence is considered overrepresented even if the threshold fraction is not surpassed. Useful for very large files. Default: unlimited.

--max-unique-sequences MAX_UNIQUE_SEQUENCES

The maximum amount of unique fragments to gather. Larger amounts increase the sensitivity of finding overrepresented sequences at the cost of increasing memory usage. Default: 5,000,000

--overrepresentation-fragment-length OVERREPRESENTATION_FRAGMENT_LENGTH

The length of the fragments to sample. The maximum is 31. Default: 31.

--overrepresentation-sample-every OVERREPRESENTATION_SAMPLE_EVERY

How often a read should be sampled. Default: 1 in 8. More samples leads to better precision, lower speed, and also towards more bias towards the beginning of the file as the fragment store gets filled up with more sequences from the beginning.

--deduplication-estimate-bits DEDUPLICATION_ESTIMATE_BITS

Determines how many sequences are maximally stored to estimate the deduplication rate. Maximum stored sequences: 2 ** bits * 7 // 10. Memory required: 2 ** bits * 24. Default: 21.

Acknowledgements

License

This project is licensed under the GNU Affero General Public License v3. Mainly to avoid commercial parties from using it without notifying the users that they can run it themselves. If you want to include code from sequali in your open source project, but it is not compatible with the AGPL, please contact me and we can discuss a separate 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

sequali-0.1.0.tar.gz (516.3 kB view hashes)

Uploaded Source

Built Distributions

sequali-0.1.0-cp312-cp312-musllinux_1_1_x86_64.whl (561.9 kB view hashes)

Uploaded CPython 3.12 musllinux: musl 1.1+ x86-64

sequali-0.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (561.6 kB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

sequali-0.1.0-cp311-cp311-musllinux_1_1_x86_64.whl (561.5 kB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.1+ x86-64

sequali-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (561.2 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

sequali-0.1.0-cp310-cp310-musllinux_1_1_x86_64.whl (561.6 kB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.1+ x86-64

sequali-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (561.2 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

sequali-0.1.0-cp39-cp39-musllinux_1_1_x86_64.whl (561.6 kB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.1+ x86-64

sequali-0.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (561.3 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

sequali-0.1.0-cp38-cp38-musllinux_1_1_x86_64.whl (561.6 kB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.1+ x86-64

sequali-0.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (561.3 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

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