Nothing
###########################################################################
#' Consolidate the protein accessions between two libraries
#' @param datBaseLib a data frame for base library
#' @param datExtLib a data frame for external/addon library
#' @return a data frame of the external library with newly consolidated
#' protein accessions based on the base library.
#' @examples
#' file1 <- paste(system.file("files",package="SwathXtend"),"Lib1.txt",sep="/")
#' file2 <- paste(system.file("files",package="SwathXtend"),"Lib2.txt",sep="/")
#' datBaseLib <- readLibFile(file1)
#' datExtLib <- readLibFile(file2)
#' dat <- consolidateAccession(datBaseLib, datExtLib)
############################################################################
consolidateAccession <- function(datBaseLib, datExtLib)
{
for(x in unique(datBaseLib$uniprot_id)){
xx <- parseAccession(x)
id.toreplace <- grepl(xx,datExtLib$uniprot_id)
if(length(which(id.toreplace) > 0)) {
datExtLib$uniprot_id[id.toreplace] <- x
}
}
datExtLib
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.