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.
- Load the package and copy the example data. The vignette copies the package’s
extdatafolder into the working directory withfile.copy(system.file(package = "QuasR", "extdata"), ".", recursive = TRUE). For your own data, skip this and point to your own files. - Write the sample file. This is a tab-delimited text file whose header must match exactly. Single-read projects use the columns
FileNameandSampleName. Paired-end projects useFileName1,FileName2andSampleName. Files can be fasta, fastq or bam, and gzip, bzip2 or xz compression is accepted. - Optionally write an auxiliary file. Its columns are
FileNameandAuxName; the vignette example listsNC_001422.1.fawith the namephiX174. In the example, the aligner also produces an auxiliary BAM for each sample. - 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,qAlignbuilds 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. - 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. - Define regions and count. The vignette builds promoter windows from a GTF annotation:
txStart <- import.gff(annotFile, format = "gtf", feature.type = "start_codon"), thenpromReg <- promoters(txStart, upstream = 500, downstream = 500), then names the regions from the transcript names. Those commands need rtracklayer and GenomicFeatures loaded withlibrary(). Counting iscnt <- qCount(proj1, promRegSel)in the example, where the second argument is the GRanges object of regions (the earlier vignette example usesqCount(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 thetempdir()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 thelib.locyou give. For a FASTA genome it stores the index in a.Rbowtiedirectory 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.
| Input file | Required header columns (exact) | Accepted content | Restriction |
|---|---|---|---|
| Sample file, single-read project | FileName, SampleName | fasta, fastq or bam; .gz, .bz2 or .xz compression | Cannot be mixed with paired-end samples; cannot mix fasta and fastq |
| Sample file, paired-end project | FileName1, FileName2, SampleName | fasta, fastq or bam; .gz, .bz2 or .xz compression | Cannot be mixed with single-read samples; cannot mix fasta and fastq |
| Auxiliary file (optional) | FileName, AuxName | Sequence files, for example NC_001422.1.fa named phiX174 | The example project returns one auxiliary BAM per sample |
Sources
- QuasR vignette (accessed 2026-11-14)
- QuasR Bioconductor package page (accessed 2026-11-14)
Compiled by CASRAI from the sources above. Free to reuse under CC BY 4.0 with attribution.







