Package: spectralAnalysis 4.3.3
spectralAnalysis: Pre-Process, Visualize and Analyse Spectral Data
Infrared, near-infrared and Raman spectroscopic data measured during chemical reactions, provide structural fingerprints by which molecules can be identified and quantified. The application of these spectroscopic techniques as inline process analytical tools (PAT), provides the pharmaceutical and chemical industry with novel tools, allowing to monitor their chemical processes, resulting in a better process understanding through insight in reaction rates, mechanistics, stability, etc. Data can be read into R via the generic spc-format, which is generally supported by spectrometer vendor software. Versatile pre-processing functions are available to perform baseline correction by linking to the 'baseline' package; noise reduction via the 'signal' package; as well as time alignment, normalization, differentiation, integration and interpolation. Implementation based on the S4 object system allows storing a pre-processing pipeline as part of a spectral data object, and easily transferring it to other datasets. Interactive plotting tools are provided based on the 'plotly' package. Non-negative matrix factorization (NMF) has been implemented to perform multivariate analyses on individual spectral datasets or on multiple datasets at once. NMF provides a parts-based representation of the spectral data in terms of spectral signatures of the chemical compounds and their relative proportions. See 'hNMF'-package for references on available methods. The functionality to read in spc-files was adapted from the 'hyperSpec' package.
Authors:
spectralAnalysis_4.3.3.tar.gz
spectralAnalysis_4.3.3.zip(r-4.5)spectralAnalysis_4.3.3.zip(r-4.4)spectralAnalysis_4.3.3.zip(r-4.3)
spectralAnalysis_4.3.3.tgz(r-4.4-any)spectralAnalysis_4.3.3.tgz(r-4.3-any)
spectralAnalysis_4.3.3.tar.gz(r-4.5-noble)spectralAnalysis_4.3.3.tar.gz(r-4.4-noble)
spectralAnalysis_4.3.3.tgz(r-4.4-emscripten)spectralAnalysis_4.3.3.tgz(r-4.3-emscripten)
spectralAnalysis.pdf |spectralAnalysis.html✨
spectralAnalysis/json (API)
NEWS
# Install 'spectralAnalysis' in R: |
install.packages('spectralAnalysis', repos = c('https://ablommaert.r-universe.dev', 'https://cloud.r-project.org')) |
This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.
Last updated 10 months agofrom:7eba3dcf40. Checks:OK: 7. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Oct 27 2024 |
R-4.5-win | OK | Oct 27 2024 |
R-4.5-linux | OK | Sep 27 2024 |
R-4.4-win | OK | Oct 27 2024 |
R-4.4-mac | OK | Oct 27 2024 |
R-4.3-win | OK | Oct 27 2024 |
R-4.3-mac | OK | Oct 27 2024 |
Exports:as.data.framebaselineCorrectcheckCompatiblecheckIdenticalClasscombineSpectralObjectscomputeNMFResiduefirstSpectrumgetDefaultSumFuncgetDefaultTimeFormatgetDimensionReductiongetElementsgetExperimentNamegetExtraInfogetListOfSpectraExamplegetNMFInputMatrixgetPathProcessTimesExamplegetPreprocessinggetProcessTimesExamplegetProcessTimesFrameExamplegetRangegetSpectragetSpectraInTimeCompExamplegetSpectraInTimeExamplegetSpectralAxisgetStartTimegetTimePointsgetUnitsinitializeNMFModellastSpectrumloadAllSPCFileslocalBaselineCorrectnonNegativePreprocessingnormalizeplotpredictNNLSpreprocessProcessTimesrreadProcessTimesreadSPCreadSpectrarunNMFsaveSpectrascaleNMFResultscatterCorrectsetExperimentName<-setTimePointsAlt<-smoothSpectraInTimeSpectraInTimeCompspectralIntegrationspectralNMFspectralNMFListspectralPLSCalibrationspectralPlsPredictionsummarytimeAlignwavelengthAlign
Dependencies:abindaskpassbase64encbaselineBiobaseBiocGenericsBiocManagerbitopsbslibcachemcliclustercodetoolscolorspacecpp11crosstalkcurldata.tabledigestdoParalleldplyrevaluatefansifarverfastmapfontawesomeforeachfsgenericsggplot2gluegridBasegridExtragtablehighrhNMFhtmltoolshtmlwidgetshttrisobanditeratorsjquerylibjsonliteknitrlabelinglaterlatticelazyevallifecyclelimSolvelpSolvemagrittrMASSMatrixmemoisemgcvmimemunsellnlmeNMFnnlsopenssloro.niftipillarpkgconfigplotlyplotrixplsplyrpromisespurrrquadprogR6rappdirsrasterImageRColorBrewerRcppregistryreshape2rlangrmarkdownrngtoolsRNiftisassscalessignalSparseMstringistringrsystibbletidyrtidyselecttinytexutf8vctrsviridisviridisLitewithrxfunyamlzoo
Readme and manuals
Help Manual
Help page | Topics |
---|---|
generic function to perfom baseline correction | baselineCorrect baselineCorrect,SpectraInTime-method baselineCorrect,SpectraInTimeComp-method |
Check object compatibility | checkCompatible checkCompatible,ProcessTimes,SpectraInTime-method checkCompatible,SpectraInTime,ProcessTimes-method [ProcessTimes,SpectraInTime-method [SpectraInTime,ProcessTimes-method |
Check for redunt NMF source vectors | checkForRedundantSources |
check wether all elements of of the same class | checkIdenticalClass |
Function to combine 'SpectraInTime-class' objects containing 1 spectrum each | combineSpectralObjects |
NMF relative residual per observation | computeNMFResidu |
Create an 'ElementsToSelect-class' from a numeric vector or multiple numeric values or vectors | e |
Elements S4 class useful for closest elements subsetting | ElementsToSelect-class |
Get the first spectrum | firstSpectrum firstSpectrum,numeric-method firstSpectrum,SpectraInTime-method |
function to get default summary functions | getDefaultSumFunc |
function to get default time format in the package | getDefaultTimeFormat |
generic function to extract 'dimensionReduction'-slot | getDimensionReduction |
generic function to extract 'elements'-slot | getElements getElements,ElementsToSelect-method |
generic function to extract 'experimentName'-slot | getExperimentName getExperimentName,SpectraInTime-method |
generic function to extract 'extraInfo'-slot | getExtraInfo getExtraInfo,SpectraInTime-method |
get example list of spectra | getListOfSpectraExample |
Get spectralData as input NMF model | getNMFInputMatrix |
example path process times | getPathProcessTimesExample |
generic function to extract 'preprocessing'-slot | getPreprocessing getPreprocessing,SpectraInTime-method |
get a minimal 'ProcessTimes-class' example based on 'getSpectraInTimeExample' | getProcessTimesExample |
get mimimal example 'ProcessTimesFrame-class' | getProcessTimesFrameExample |
generic function to extract 'range'-slot | getRange getRange,RangeToSubset-method |
generic function to extract 'spectra'-slot | getSpectra getSpectra,SpectraInTime-method |
Artificial example of 'SpectraInTimeComp-class' | getSpectraInTimeCompExample |
Artificial example 'SpectraInTime-class' | getSpectraInTimeExample |
generic function to extract 'spectralAxis'-slot | getSpectralAxis getSpectralAxis,SpectraInTime-method |
generic function to extract 'startTime'-slot | getStartTime getStartTime,SpectraInTime-method |
generic function to extract 'timePoints'-slot | getTimePoints getTimePoints,SpectraInTime-method |
generic function to extract 'units'-slot | getUnits getUnits,SpectraInTime-method |
Re-introduce redundant sources in NMF-model | includeRedundantSources |
Initialize NMF model with initial spectral data | initializeNMFModel |
Get the last spectrum | lastSpectrum lastSpectrum,numeric-method lastSpectrum,SpectraInTime-method |
Load all or a selection of SPC files from a given directory. | loadAllSPCFiles |
Local baseline correction | localBaselineCorrect |
condition datamatrix to input in and condition properly for NMF | nonNegativePreprocessing |
generic normalization function | normalize normalize,SpectraInTime-method normalize,SpectraInTimeComp-method |
Based on previously obtained NMF result 'NMFResult', estimate coefficients for a new spectralData object 'object' using non-negative least squares fitting. The result is returned as as an NMF model. | predictNNLS |
generic function to preprocess an S4 object | preprocess preprocess,SpectraInTime,list-method preprocess,SpectraInTime,SpectraInTime-method preprocess,SpectraInTimeComp,ANY-method |
S4 Class key process times | ProcessTimes ProcessTimes-class TemperatureInfo temperatureInfo temperatureinfo |
ProcessTimes-class | ProcessTimesFrame-class |
create a 'RangeToSubset-class' object from 2 elements or from a vector | r r,numeric,numeric-method r,RangeToSubset,missing-method |
RangeToSubset-class | RangeToSubset Rangetosubset rangetosubset RangeToSubset-class |
read .csv file as process times | readProcessTimes |
Read-in of a SPC file. | readSPC |
Remove redundant sources from the initial NMF model | removeRedundantSources |
Actual NMF analysis | runNMF |
read or save a 'SpectraInTime-class' from or to a '.txt' file | read readSpectra save saveSpectra |
Apply fixed scaling to NMF model | scaleNMFResult |
set the experiment name | setExperimentName<- setExperimentName<-,SpectraInTime-method setTimePointsAlt<-,SpectraInTime-method |
set time alternative time axis | setTimePointsAlt<- |
generic smoothing function | smooth smooth,SpectraInTime-method smooth,SpectraInTimeComp-method |
SpectraInTimeComp-class (time resolved spectra ) | getDimensionReduction,SpectraInTimeComp-method SpectraInTimeComp spectraInTimeComp spectraintimecomp SpectraInTimeComp-class |
Integrate spectraInTime object | spectralIntegration |
Perform Non-Negative Matrix factorization on spectral data | spectralNMF |
Perform Non-Negative Matrix factorization on list of SPC files | spectralNMFList |
Compute PLS model | spectralPLSCalibration |
Perform PLS prediction | spectralPlsPrediction |
Subsetting 'SpectraInTime-class' | subset-methods [,SpectraInTime,ANY,ANY,ANY-method [,SpectraInTime,ANY,ANY-method [,SpectraInTime,ANY,missing-method [,SpectraInTime,missing,ANY-method [,SpectraInTime,missing,missing-method [,SpectraInTime-method [,SpectraInTimeComp,ANY,ANY-method [,SpectraInTimeComp,ANY,missing-method [,SpectraInTimeComp,missing,ANY-method |
Time align first object, using info in the second object | timeAlign timeAlign,list,character-method timeAlign,list,ProcessTimesFrame-method timeAlign,SpectraInTime,ProcessTimes-method |
Upsample NMF result to original temporal resolution | upsampleNMFResult |
Wavelength align spectral data | wavelengthAlign wavelengthAlign,SpectraInTime,list-method wavelengthAlign,SpectraInTime,SpectraInTime-method |