Learn R Programming

umiAnalyzer 1.0.0

Tools for analyzing sequencing data containing unique molecular identifiers generated by UMIErrorCorrect (https://github.com/stahlberggroup/umierrorcorrect). The package allows merging of multiple samples into a single UMIexperiment object which can be easily manipulated using build-in functions to generate tabular and graphical output. The package includes a shiny app with a graphical user interface for data exploration and generating plots and report documents.

This README serves as a basic introduction, for more detailed information and examples read the wiki pages on GitHub (https://github.com/sfilges/umiAnalyzer/wiki) or the R vignette using:

browseVignettes('umiAnalyzer')

For a version history/changelog, please see the NEWS file.

Requirements

  • R (>= 4.1.0), which can be downloaded and installed via The Comprehensive R Archive Network CRAN.
  • Installation from R using install_github requires the devtools package

Installation

Install the current stable version from CRAN or GitHub or the latest development version from GitHub.

# from CRAN (not supported yet)
#install.packages('umiAnalyzer')

# Current stable version from github using the devtools package:
devtools::install_github('sfilges/umiAnalyzer')

# Latest development version from github:
devtools::install_github('sfilges/umiAnalyzer', ref = 'devel')

Running the visualization app

Run the following command in the R console to start the app:

umiAnalyzer::runUmiVisualizer()

Using the R package in your own scripts

How to make build your own UMIexperiment object

Define a variable containing the path to the directory with all the UMIErrorCorrect output folders belonging to your experiment. umiAnalyzer comes with raw test data generated with UMIErrorCorrect that you can import if you don't have any of your own.

Call the createUmiExperiment to create your UMIexperiment object.

The UMIexperiment object always maintains your raw data, however you can create as many filters as you like, which will be saved as separate objects to access. You can filter the consensus table of UMIexperiment object with filterUMIobject. The only mandatory arguments are the object to be filtered and a user defined name. You can use that name to retrieve a filtered table using getFilter.

library(umiAnalyzer)

main <- system.file('extdata', package = 'umiAnalyzer')

simsen <- createUmiExperiment(main)

reads <- parseBamFiles(main, consDepth = 10)

plotFamilyHistogram(reads)

simsen <- generateQCplots(simsen)

simsen <- filterUmiObject(simsen)

myfilter <- getFilteredData(simsen)
myfilter

simsen <- generateAmpliconPlots(simsen)

Copy Link

Version

Install

install.packages('umiAnalyzer')

Monthly Downloads

129

Version

1.0.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Stefan Filges

Last Published

November 25th, 2021

Functions in umiAnalyzer (1.0.0)

filterUmiObject

Method for filtering UMIexperiment and sample objects
importBedFile

Import bed file
importDesign

Import experimental design meta data such as replicates, treatments, categorical variables.
filterVariants

Filter variants based on p values or depth
download_template

Download meta data template
getMetaData

Retrieve meta data by name.
createUmiSample

createUmiSample
getFilteredData

Method for retrieving filtered data
callVariants

callVariants using beta binomial distribution
createUMIexperiment_Debarcer

Method for creating a UMI experiment object
simsen

UMIexperiment data generated with SiMSen-Seq
findConsensusReads

Find consensus reads A function to analyze consensus read tables generated with parseBamFiles or a UMIexperiment object containing reads.
generateVCF

Generate VCF file from UMI sample or UMI experiment object
timeSeriesGrid

Plot time series data
mergeAssays

Merge assays
parseBamFiles

Function to parse bam files
createUMIsample_Debarcer

Method for creating a UMIsample object
beta_binom

Beta binomial model
createUmiExperiment

Method for creating a UMI experiment object
saveConsData

Save consensus data
runUmiVisualizer

Function to run the umiVisualizer shiny app
BarcodeFamilyHistogram

Consensus depth histograms
addUmiSample

Add UMI sample to an existing experiment object
UmiCountsPlot

Plot UMI counts
UMIexperiment-class

UMIexperiment class
addMetaData

Add metaData
AmpliconHeatmap

Amplicon heatmap
QCplot

Generate QC plots
UMIsample-class

UMIsample class
AmpliconPlot

Generate Amplicon plots