Skip to main content

LQC

LQC: Long-read RNA-seq Quality Control

The Long-read RNA-seq quality control software.

LQC is used to generate quality control summary report for mapped SAM/BAM files of long-read RNA-seq data (PacBio, Oxford Nanopore). LQC provides detailed information about the indels, mismatches and splicing sites in the BAM files, which provides a good reference for evaluation for the sequencing quality of the long-read sequencing data.

Please cite us:

Dependencies

The LQC software was developed with python3, which demands several python packages.

Bootstrap 5.3.8 is used by the final html report. It is vendored (MIT license, no Popper bundle) and inlined, so the report is a single self-contained file that opens offline.

Installation

It's advised to install the software into a virtual environment.

Create virtual environment:

conda create -n lqc
conda activate lqc

Or:

virtualenv ~/.env/lqc
source ~/.env/lqc/bin/activate

From github (development)

Clone and install with uv:

git clone https://github.com/gxiaolab/LQC
cd LQC
uv sync

This creates a .venv and installs the lqc command. Run the checks and the CLI:

uvx ruff check
uv run pytest
uv run lqc -b <cs-tagged.sorted.indexed.bam> -o out

From pip

pip install lqc

Usage

LQC accepts SAM or BAM file with cs tag (generated with --cs options by minimap2), or MD tag. If the SAM/BAM file has only MD tag, a genome fasta reference file is required as well to get the splicing information. Since cs tag included the splicing site information, a genome fasta reference is not required by SAM/BAM with cs tag.

usage: lqc [-h] -b BAM_FILE [--genome-fasta GENOME_FASTA] [-o OUTPUT_DIR] [--output-cs]
           [--output-pickle] [-c [CONTIG ...]] [-t THREAD] [--log-level LOG_LEVEL] [--version]

The Long-read RNA-seq quality control software.

optional arguments:
  -h, --help            show this help message and exit
  -b BAM_FILE, --bam-file BAM_FILE
                        input bam file, with cs tags, sorted and indexed
  --genome-fasta GENOME_FASTA
                        path of genome fasta file
  -o OUTPUT_DIR, --output_dir OUTPUT_DIR
                        directory to store output files
  --output-cs           output processed cs tags
  --output-pickle       output pickle file of results
  -c [CONTIG ...], --contig [CONTIG ...]
                        contigs to be analyzed
  -t THREAD, --thread THREAD
                        threads to be used in calculation
  --log-level LOG_LEVEL
                        logging level (default INFO): [DEBUG, INFO]
  --version             show program's version number and exit

The output directory should be empty to allow the storage of output files.

Output

By default, three kinds of output files are generated by LQC: summary tables, figures, and an HTML report. With the --output-cs option, the processed cs tag information of the BAM file is also written. Similarly, with the --output-pickle option, the result objects are written to one pickle file, which can be used for further analysis.

Summary table will be stored in the table subdirectory of the output directory. Figures will be stored in the fig subdirectory of the output directory.

Processed cs tag file has six columns: read name, contig, low, high, cs mark, cs value.

The LQC will also generate a html report for checking of the BAM file qualities.

Screenshot of LQC report:

LQC report screenshot

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lqc-0.0.9.tar.gz (860.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lqc-0.0.9-py3-none-any.whl (104.4 kB view details)

Uploaded Python 3

File details

Details for the file lqc-0.0.9.tar.gz.

File metadata

  • Download URL: lqc-0.0.9.tar.gz
  • Upload date:
  • Size: 860.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"44","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for lqc-0.0.9.tar.gz
Algorithm Hash digest
SHA256 d68b0dc3269f733db21217536faeffadd769a5679230c3924d34854046107ffc
MD5 020fe1f5bd030a8d28d90ed7db9d7825
BLAKE2b-256 6a2d7e237f2c18cd728b567af55c01f5dfdef9a0a96ac396f0b976f3001e39d3

See more details on using hashes here.

File details

Details for the file lqc-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: lqc-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 104.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"44","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for lqc-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 46ba194cc77f5087c8b73406cd43d188cdb08e04356d34263c75c881f8d8e8ff
MD5 c0cca6f25415765d5f71fee54c3714f0
BLAKE2b-256 3c5355e2f7637d2b7467e863765cbe907bde1ff66cd94f3425fe720e36b877d7

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.9 This release

2 files

0.0.5

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page