Skip to content
This repository has been archived by the owner on Oct 13, 2022. It is now read-only.

sgibb/MALDIquantTools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MALDIquantTools

Project Status: Abandoned – Initial development has started, but there has not yet been a stable, usable release; the project has been abandoned and the author(s) do not intend on continuing development.

Description

Additional tools for MALDIquant This package is not intended for public release on CRAN.

This package is abandoned. There is no further development and no guarantee that it is still working.

Install

install.packages("devtools")
library("devtools")
install_github("sgibb/MALDIquantTools")

Features

  • Calculate FWHM.
  • Find reference peaks in each individual spectrum.
  • Find monoisotopic peaks in spectra (moved to MALDIquant)
  • Draw gelmaps

Gelmap Example

library("MALDIquant")
library("MALDIquantTools")
data(fiedler2009subset)

## select some tumor/control subset
spectra <- fiedler2009subset[9:16]

## run preprocessing
spectra <- transformIntensity(spectra, method="sqrt")
spectra <- smoothIntensity(spectra, method="MovingAverage", halfWindowSize=2)
spectra <- removeBaseline(spectra, method="SNIP")
spectra <- calibrateIntensity(spectra, method="TIC")
peaks <- detectPeaks(spectra)
peaks <- binPeaks(peaks)

## create labels
tumor <- sapply(peaks, function(x)grepl(pattern="tumor", x=metaData(x)$file))
fullName <- sapply(peaks, function(x)metaData(x)$fullName)
rowLabels <- paste(fullName, " (", ifelse(tumor, "T", "C"), ")", sep="")

## run clustering and create dendrogram
iM <- intensityMatrix(peaks, spectra)
d <- dist(iM, method="euclidean")
d <- as.dendrogram(hclust(d, method="complete"), hang=-1)

## plot gelmap
gelmap(iM, rowLabels=rowLabels, dendrogram=d, xlab="mass [Da]")

gelmap

About

Additional tools for MALDIquant

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published