Skip to content

bioc/HarmonizR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HarmonizR

Overview

An implementation, which takes input data and makes it available for proper batch effect removal by ComBat or Limma. The implementation appropriately handles missing values by dissecting the input matrix into smaller matrices with sufficient data to feed the ComBat or Limma algorithm. The adjusted data is returned to the user as a rebuild matrix. The implementation is meant to make as much data available as possible with minimal data loss.

Standard operating Procedure

For detailed instructions please refer to our Standard operating Procedure.

Installation

  1. Clone this repository

  2. While having devtools installed, run devtools::install("HarmonizR") within the HarmonizR package.

Alternatively the package can be installed directly from GitHub via the command devtools::install_github(“HSU-HPC/HarmonizR”).

Usage

Include library(HarmonizR) in your R script and execute it with your data and batch description files as demonstrated with the example files harmonizR(“murine_medulloblastoma_data.tsv”, “murine_medulloblastoma_description.csv”).

Optionally, HarmonizR is able to work with S4 SummarizedExperiment input data. S4 data with a single assay is required and the metadata (colData) must include batch information via "Batch". Example S4 data may be:

# Creating example S4 data
nrows <- 20
ncols <- 8
counts <- matrix(runif(nrows * ncols, 1, 1e4), nrows)
colData <- data.frame(Batch=c(1,1,1,1,2,2,2,2))
SummExp = SummarizedExperiment::SummarizedExperiment(assays=list(counts=counts), colData=colData)

About

This is a read-only mirror of the git repos at https://bioconductor.org

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages