-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
jasenfinch
committed
Nov 17, 2016
1 parent
9df0dd2
commit cacd40d
Showing
16 changed files
with
210 additions
and
331 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,9 +8,5 @@ Maintainer: Jasen Finch <[email protected]> | |
Description: A spectral binning approach for high resolution flow infusion mass | ||
spectrometry data. | ||
License: GPL (>= 2) | ||
Depends: mzR, ggplot2, plyr | ||
Imports: | ||
parallel, | ||
shiny, | ||
ggplot2 | ||
Imports: parallel,shiny,ggplot2,plyr,mzR | ||
RoxygenNote: 5.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,41 @@ | ||
# Generated by roxygen2: do not edit by hand | ||
|
||
export(addMasses) | ||
export(colMasses) | ||
export(combScans) | ||
export(massMat) | ||
export(readFiles) | ||
export(sampProcess) | ||
export(viewSpectrum) | ||
import(ggplot2) | ||
import(mzR) | ||
import(parallel) | ||
import(plyr) | ||
import(shiny) | ||
importFrom(ggplot2,aes_string) | ||
importFrom(ggplot2,geom_line) | ||
importFrom(ggplot2,geom_segment) | ||
importFrom(ggplot2,geom_text) | ||
importFrom(ggplot2,geom_vline) | ||
importFrom(ggplot2,ggplot) | ||
importFrom(ggplot2,ggtitle) | ||
importFrom(ggplot2,theme_bw) | ||
importFrom(ggplot2,xlab) | ||
importFrom(ggplot2,ylab) | ||
importFrom(mzR,header) | ||
importFrom(mzR,openMSfile) | ||
importFrom(mzR,peaks) | ||
importFrom(mzR,runInfo) | ||
importFrom(parallel,makeCluster) | ||
importFrom(parallel,parLapplyLB) | ||
importFrom(parallel,stopCluster) | ||
importFrom(plyr,ldply) | ||
importFrom(shiny,fileInput) | ||
importFrom(shiny,fluidPage) | ||
importFrom(shiny,fluidRow) | ||
importFrom(shiny,mainPanel) | ||
importFrom(shiny,numericInput) | ||
importFrom(shiny,plotOutput) | ||
importFrom(shiny,radioButtons) | ||
importFrom(shiny,reactive) | ||
importFrom(shiny,renderPlot) | ||
importFrom(shiny,renderUI) | ||
importFrom(shiny,shinyApp) | ||
importFrom(shiny,sidebarLayout) | ||
importFrom(shiny,sidebarPanel) | ||
importFrom(shiny,sliderInput) | ||
importFrom(shiny,tags) | ||
importFrom(shiny,textInput) | ||
importFrom(shiny,titlePanel) | ||
importFrom(shiny,uiOutput) | ||
importFrom(stats,aggregate) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,19 @@ | ||
#' build an intensity matrix for supplied peak list | ||
#' @name massMat | ||
#' @description build and intensity matrix for a supplied peak list. Can be used to build intensity matrices for combining either scans within a sample of multiple samples. | ||
#' @param x A peak list containing peak matrices for each scan of equal row length | ||
#' @return An intensity matrix with as many rows as peak matrices in peak list | ||
#' @author Jasen Finch | ||
#' @export | ||
# build an intensity matrix for supplied peak list | ||
# @name massMat | ||
# @description build and intensity matrix for a supplied peak list. Can be used to build intensity matrices for combining either scans within a sample of multiple samples. | ||
# @param x A peak list containing peak matrices for each scan of equal row length | ||
# @return An intensity matrix with as many rows as peak matrices in peak list | ||
# @author Jasen Finch | ||
|
||
massMat <- function(x){ | ||
z <- data.frame(x[1]) | ||
mat <- matrix(0,nrow=length(x),ncol=length(z[,1])) | ||
for (i in 1:length(x)){ | ||
mat <- matrix(0,nrow = length(x),ncol = length(z[,1])) | ||
for (i in 1:length(x)) { | ||
y <- data.frame(x[i]) | ||
y <- t(y) | ||
y <- y[2,] | ||
mat[i,] <- y | ||
} | ||
colnames(mat) <- z[,1] | ||
return (mat) | ||
return(mat) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.