Skip to content

Commit

Permalink
Move stringr to imports
Browse files Browse the repository at this point in the history
  • Loading branch information
sneumann committed Feb 19, 2025
1 parent e1c900b commit 9c6a5ad
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ Depends:
gdata,
searchable,
tools,
stringr,
matrixStats,
plotrix,
slam,
Expand All @@ -43,6 +42,7 @@ Imports:
stats,
utils,
S4Vectors,
stringr,
SummarizedExperiment,
openxlsx2
Remotes:
Expand Down
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@ importFrom("SummarizedExperiment","rowData","rowData<-")
importFrom(SummarizedExperiment,assay)

importFrom("plotly", "plot_ly", "add_trace", "layout")
importFrom("stringr", "str_squish", "str_split")
1 change: 1 addition & 0 deletions R/DataProcessing.R
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ readClusterDataFromProjectFile <- function(file, progress = FALSE)
#'
#' @seealso [processMS1data]
#' @export
#' @importFrom stringr str_split
#'
#' @examples
readProjectData <- function(fileLines, progress = FALSE)
Expand Down
16 changes: 16 additions & 0 deletions R/FragmentMatrixFunctions.R
Original file line number Diff line number Diff line change
Expand Up @@ -824,6 +824,22 @@ parseMSP_chunk <- function(fileLines,
return(returnObj)
}


#' parseMSP_attributes
#'
#' @param fileSpectra
#' @param progress
#' @param flexiblePeakList
#' @param multiplePeaksPerLine
#' @param includeIDasRecordSeparator
#' @param includeNAMEasRecordSeparator
#' @param includeTITLEasRecordSeparator
#' @param returnEmptySpectra
#'
#' @returns
#' @importFrom stringr str_split
#'
#' @examples
parseMSP_attributes <- function(fileSpectra, progress = FALSE, flexiblePeakList = FALSE, multiplePeaksPerLine = FALSE, includeIDasRecordSeparator=TRUE, includeNAMEasRecordSeparator=TRUE, includeTITLEasRecordSeparator=TRUE, returnEmptySpectra = FALSE){
fileLines <- readLines(con = fileSpectra)

Expand Down
24 changes: 24 additions & 0 deletions R/Plots.R
Original file line number Diff line number Diff line change
Expand Up @@ -2346,6 +2346,30 @@ calcPlotPCAscores <- function(pcaObj, dataList, filterObj,
}
}

#' calcPlotPCAloadings
#'
#' @param pcaObj
#' @param dataList
#' @param filter
#' @param pcaDimensionOne
#' @param pcaDimensionTwo
#' @param selectionFragmentPcaLoadingSet
#' @param selectionAnalysisPcaLoadingSet
#' @param selectionSearchPcaLoadingSet
#' @param xInterval
#' @param yInterval
#' @param loadingsLabels
#' @param showLoadingsAbundance
#' @param showLoadingsFeaturesAnnotated
#' @param showLoadingsFeaturesUnannotated
#' @param showLoadingsFeaturesSelected
#' @param showLoadingsFeaturesUnselected
#'
#' @returns
#' @export
#' @importFrom stringr str_squish
#'
#' @examples
calcPlotPCAloadings <- function(
pcaObj, dataList, filter,
pcaDimensionOne, pcaDimensionTwo,
Expand Down

0 comments on commit 9c6a5ad

Please sign in to comment.