Skip to main content
v2026.11,986 entries · CC-BY 4.0

QuasR (Bioconductor R package): Align, QC and Count Short Reads

QuasR is a Bioconductor R package that aligns short reads, makes QC plots and counts reads over regions. Install, sample file, workflow and output.

Written and maintained by CASRAI Editorial Board

Published · Last updated

On this page

QuasR is a Bioconductor package for R, titled “Quantify and Annotate Short Reads in R”, that takes high-throughput sequencing reads from raw files through alignment and quality control to counts over genomic regions of interest. It works for ChIP-seq, RNA-seq and bisulfite (Bis-seq) experiments, with single-read or paired-end data, and is installed with BiocManager. This page covers what it does, how to install it, a worked alignment, QC and counting sequence, how to read the count table, common input mistakes, and the nearest alternative named on Bioconductor.

What QuasR is used for in research

The Bioconductor package page describes QuasR as a framework for the quantification and analysis of short reads that covers a complete workflow: raw reads, alignments, quality-control (QC) plots and quantification of genomic regions of interest. The authors’ 2015 Bioinformatics application note (Gaidatzis et al., Bioinformatics 31(7):1130-1132) describes it as integrated analysis of high-throughput sequencing data inside R, covering preprocessing, alignment, QC and quantification for RNA-seq, ChIP-seq and Bis-seq, including paired-end, stranded, spliced and allele-specific analyses.

Practically, a lab group that wants to stay in R from the first FASTQ file to a table of counts per promoter, peak or gene can use one package for each step. The package page lists these biocViews: Alignment, ChIPSeq, Coverage, Genetics, ImmunoOncology, MethylSeq, Preprocessing, QualityControl, RNASeq, Sequencing and Software. The current release page lists version 1.52.0 under the GPL-2 licence; the package has been in Bioconductor since release 2.12. The maintainer is Michael Stadler (Friedrich Miescher Institute), and the authors are Anita Lerch, Adam Alexander Thil Smith, Charlotte Soneson, Dimos Gaidatzis and Michael Stadler.

QuasR does the alignment through other Bioconductor packages. DNA-based assays such as ChIP-seq, ATAC-seq and Bis-seq are aligned with Rbowtie, and RNA-seq experiments that need spliced alignments use Rhisat2. You can also skip alignment entirely by supplying BAM files you produced elsewhere. The vignette notes the package has been used with Illumina, 454 and SOLiD data, and that SOLiD data require externally created BAM files. For background on the field this belongs to, see what is bioinformatics.

Which aligner route to use

Your data Route in QuasR Source statement
DNA-level assays: ChIP-seq, ATAC-seq, Bis-seq Rbowtie Package description
RNA-seq needing spliced alignments Rhisat2 Package description
Alignments already made (for example SOLiD data) Supply BAM files Package description; vignette

Rbowtie is a hard dependency; Rhisat2 is only suggested, so install it yourself when you need spliced RNA-seq alignment.

How to install or access it

QuasR is distributed through Bioconductor, not CRAN. The package page gives this installation command, which first installs BiocManager if it is missing:

if (!require("BiocManager", quietly = TRUE))
    install.packages("BiocManager")
BiocManager::install("QuasR")

The release page for Bioconductor 3.23 states that QuasR depends on R (>= 4.4), parallel, GenomicRanges and Rbowtie, and lists GNU make as a system requirement. Suggested packages include Rhisat2, Gviz and GenomicAlignments. Source (QuasR_1.52.0.tar.gz) and Windows and macOS binaries are listed on the page. After installation, run browseVignettes("QuasR") to open the vignette, and citation("QuasR") to get the citation to use in a methods section. Bug reports go to the GitHub issue tracker at github.com/fmicompbio/QuasR/issues, and usage questions to the Bioconductor Support site. If R package installation itself fails, see how to install R packages.

Step-by-step: align, QC and count a ChIP-seq experiment

The vignette’s worked example is a ChIP-seq experiment on the histone mark H3K4me3, run on example files shipped inside the package. The numbered steps below follow that example in order.

  1. Load the package and copy the example data. The vignette copies the package’s extdata folder into the working directory with file.copy(system.file(package = "QuasR", "extdata"), ".", recursive = TRUE). For your own data, skip this and point to your own files.
  2. Write the sample file. This is a tab-delimited text file whose header must match exactly. Single-read projects use the columns FileName and SampleName. Paired-end projects use FileName1, FileName2 and SampleName. Files can be fasta, fastq or bam, and gzip, bzip2 or xz compression is accepted.
  3. Optionally write an auxiliary file. Its columns are FileName and AuxName; the vignette example lists NC_001422.1.fa with the name phiX174. In the example, the aligner also produces an auxiliary BAM for each sample.
  4. Align. The vignette calls proj1 <- qAlign(sampleFile, genome = genomeFile, auxiliaryFile = auxFile). The genome can be a FASTA file or the name of a BSgenome package such as "BSgenome.Hsapiens.UCSC.hg19". If the aligner index does not exist, qAlign builds it, and it creates the alignment files. In the example output the returned project lists two samples, each with one genome BAM and one phiX174 auxiliary BAM.
  5. Generate the QC report. qQCReport(proj1, pdfFilename = "extdata/qc_report.pdf") prints “collecting quality control data” and “creating QC plots” and writes a multipage PDF with plots on sequence qualities and alignment statistics. Read it before counting.
  6. Define regions and count. The vignette builds promoter windows from a GTF annotation: txStart <- import.gff(annotFile, format = "gtf", feature.type = "start_codon"), then promReg <- promoters(txStart, upstream = 500, downstream = 500), then names the regions from the transcript names. Those commands need rtracklayer and GenomicFeatures loaded with library(). Counting is cnt <- qCount(proj1, promRegSel) in the example, where the second argument is the GRanges object of regions (the earlier vignette example uses qCount(proj, query = promReg)).

If your reads need trimming first, the vignette shows preprocessReads(filename, outputFilename, truncateEndBases = 3, Lpattern = "AAAAAAAAAA", minLength = 14, nBases = 2) as an example of the preprocessing step, which filters reads before alignment. For paired-end data, preprocessing keeps both reads of a pair or neither. To produce tracks for a genome browser, the vignette describes qExportWig, which exports alignments as wiggle files.

Output and how to read it

The result of qCount is a count table with one row per region and one column per sample. In the vignette’s example, the table lists raw counts for 12 promoter regions in two samples; the first listed promoter, ENSG00000176022 (width 1500), has 157 counts in Sample1 and 701 in Sample2. The vignette states that these counts are not normalised for region length or library size, so do not compare them across samples directly: normalise first (for example by library size) or hand the table to a differential-analysis package. For RNA-seq counts feeding that kind of analysis, see differential gene expression analysis.

The alignments themselves are BAM files. By default QuasR writes them next to the input files, so that directory must be writable; the alignmentsDir argument of qAlign redirects them. If your regions come from BED files, check the coordinate convention first: see BED file format and 0-based coordinates.

Troubleshooting

  • The sample file is rejected or misread. The header must match the documented column names exactly. A project cannot mix single-read and paired-end samples, nor fasta with fastq files.
  • The run fails for lack of space. The vignette advises ensuring ample disk space in tempdir() and for the output alignments, because temporary files (the reference FASTA, decompressed inputs, text alignments) can be large. With a cluster object, the temporary directory may be the tempdir() of the cluster nodes.
  • Alignments cannot be written. BAM files go next to the inputs by default; if that folder is read-only, set alignmentsDir. Symbolic links resolve to the directory of the original file.
  • Genome choice affects results. The vignette notes that BSgenome hg19 (versions newer than 1.4.0 from Bioconductor 3.10) and hg38 contain redundant sequences, and recommends the analysis-set or primary-assembly versions. Masked regions become N bases in the index and alignments.
  • A new index appears as a package. For a BSgenome genome, QuasR installs the aligner index as an additional R package (name ending .Rbowtie) in the default library or the lib.loc you give. For a FASTA genome it stores the index in a .Rbowtie directory beside the file.
  • Other problems. Report bugs at the GitHub issue tracker and ask usage questions on the Bioconductor Support site, as the package page directs.

Alternatives on Bioconductor

Option What its Bioconductor page states Licence
Rsubread (version 2.26.0) “Alignment, quantification and analysis of RNA sequencing data”; functionality for read mapping, read counting, SNP calling, structural variant detection and gene fusion discovery GPL (>= 3)
QuasR (version 1.52.0) Quantification and annotation of short reads: alignment via Rbowtie or Rhisat2 or supplied BAM, QC plots, counting over regions GPL-2

Rsubread is installed with BiocManager::install("Rsubread"). For its counting function see featureCounts. The choice between the two is a matter of your assay and your existing pipeline; QuasR’s package description emphasises ChIP-seq, ATAC-seq and Bis-seq alongside RNA-seq, while Rsubread’s emphasises RNA sequencing data.

Frequently asked questions

What is QuasR?

QuasR is a Bioconductor R package for aligning, quality-checking and counting short sequencing reads, covering ChIP-seq, RNA-seq and Bis-seq experiments.

How do I install QuasR?

Install BiocManager, then run BiocManager::install("QuasR"). The release page lists R (>= 4.4) and GNU make as requirements.

Which aligner does QuasR use?

Rbowtie for DNA-level assays such as ChIP-seq, ATAC-seq and Bis-seq, and Rhisat2 for RNA-seq that needs spliced alignments. You can also supply BAM files.

Are QuasR counts normalised?

No. The vignette states the counts from qCount are not normalised for region length or library size.

How do I cite QuasR?

Run citation("QuasR"). The package’s publication is Gaidatzis D et al. QuasR: quantification and annotation of short reads in R. Bioinformatics 2015;31(7):1130-1132.

Sources

  • Bioconductor, QuasR package page (release 3.23, version 1.52.0), https://bioconductor.org/packages/release/bioc/html/QuasR.html, read 2026-11-14.
  • QuasR vignette, https://bioconductor.org/packages/release/bioc/vignettes/QuasR/inst/doc/QuasR.html, read 2026-11-14.
  • Gaidatzis D et al., Bioinformatics 2015, PubMed 25417205, https://pubmed.ncbi.nlm.nih.gov/25417205/, read 2026-11-14.
  • Bioconductor, Rsubread package page, https://bioconductor.org/packages/release/bioc/html/Rsubread.html, read 2026-11-14.

Data: QuasR sample-file and auxiliary-file input rules

Header columns, accepted formats and restrictions for the tab-delimited input files QuasR's qAlign reads, compiled from the QuasR vignette and Bioconductor package page (release 3.23, version 1.52.0).

Period covered: 2026.

QuasR sample-file and auxiliary-file input rules
Input fileRequired header columns (exact)Accepted contentRestriction
Sample file, single-read projectFileName, SampleNamefasta, fastq or bam; .gz, .bz2 or .xz compressionCannot be mixed with paired-end samples; cannot mix fasta and fastq
Sample file, paired-end projectFileName1, FileName2, SampleNamefasta, fastq or bam; .gz, .bz2 or .xz compressionCannot be mixed with single-read samples; cannot mix fasta and fastq
Auxiliary file (optional)FileName, AuxNameSequence files, for example NC_001422.1.fa named phiX174The example project returns one auxiliary BAM per sample

Sources

Compiled by CASRAI from the sources above. Free to reuse under CC BY 4.0 with attribution.

Follow CASRAI

Research-administration guidance, standards updates and independent tool reviews.

Ask CASRAI · full access

Ask about QuasR (Bioconductor R package): Align, QC and Count Short Reads

Full access: large monthly usage, up to 10 source passages behind each answer, and MCP and API access for Claude Code, Codex and other CLIs. Cancel any time.

An AI assistant for research: funder rules, compliance, methods and publishing. It links the sources behind its answers and labels answers that come from a web search.

Answers draw on CASRAI's guides and dictionary plus the federal and funder documents we index: Federal Register, Grants.gov, Regulations.gov and UKRI.

Works on this site and inside Claude, Cursor and the AI tools you already use.

Everything CASRAI publishes — this page, the dictionary, the guides and the news — stays open to read, with no account and no card.

Referenced across the research world

University of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logoUniversity of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logo
  • University of Cambridge logo
  • Columbia University logo
  • Crossref logo
  • University of Edinburgh logo
  • Harvard University logo
  • University of Oxford logo
  • Princeton University logo
  • Stanford School of Medicine logo
  • University College London logo
  • ORCID logo

View CASRAI adoption →