| Title: | R Package Client for SIRIUS Nightsky API |
|---|---|
| Description: | REST API that provides the full functionality of SIRIUS and its web services as background service. It is intended as entry-point for scripting languages and software integration SDKs.This API is exposed by SIRIUS 6 |
| Authors: | person("OpenAPI Generator community", email = "[email protected]", role = c("aut", "cre")) |
| Maintainer: | OpenAPI Generator community <[email protected]> |
| License: | Unlicense |
| Version: | 6.5.4 |
| Built: | 2026-09-23 17:25:29 UTC |
| Source: | https://github.com/sirius-ms/sirius-client-openAPI |
Simple object to hold account credentials, e.g. to perform login operations. If refreshToken is given, it is usually preferred over password based authentication. But in the end this is up to the respective web service.
AccountCredentials Class
An R6Class generator object
Create a new AccountCredentials
usernamecharacter [optional]
passwordcharacter [optional]
refreshTokencharacter [optional]
new()
Initialize a new AccountCredentials class.
AccountCredentials$new( username = NULL, password = NULL, refreshToken = NULL, ... )
usernameusername
passwordpassword
refreshTokenrefreshToken
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
AccountCredentials$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
AccountCredentials$toList()
AccountCredentials as a base R list.
# convert array of AccountCredentials (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert AccountCredentials to a base R type
AccountCredentials$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of AccountCredentials
AccountCredentials$fromJSON(input_json)
input_jsonthe JSON input
the instance of AccountCredentials
toJSONString()
To JSON String
AccountCredentials$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
AccountCredentials in JSON format
fromJSONString()
Deserialize JSON string into an instance of AccountCredentials
AccountCredentials$fromJSONString(input_json)
input_jsonthe JSON input
the instance of AccountCredentials
validateJSON()
Validate JSON input with respect to AccountCredentials and throw an exception if invalid
AccountCredentials$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
AccountCredentials$toString()
String representation of AccountCredentials
isValid()
Return true if the values in all fields are valid.
AccountCredentials$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
AccountCredentials$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
AccountCredentials$print()
clone()
The objects of this class are cloneable with this method.
AccountCredentials$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `AccountCredentials$toList` ## ------------------------------------------------ # convert array of AccountCredentials (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `AccountCredentials$toList` ## ------------------------------------------------ # convert array of AccountCredentials (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
AccountInfo Class
AccountInfo Class
An R6Class generator object
Create a new AccountInfo
userIDcharacter [optional]
usernamecharacter [optional]
userEmailcharacter [optional]
gravatarURLcharacter [optional]
subscriptionslist(Subscription) [optional]
activeSubscriptionIdcharacter [optional]
new()
Initialize a new AccountInfo class.
AccountInfo$new( userID = NULL, username = NULL, userEmail = NULL, gravatarURL = NULL, subscriptions = NULL, activeSubscriptionId = NULL, ... )
userIDuserID
usernameusername
userEmailuserEmail
gravatarURLgravatarURL
subscriptionssubscriptions
activeSubscriptionIdactiveSubscriptionId
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
AccountInfo$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
AccountInfo$toList()
AccountInfo as a base R list.
# convert array of AccountInfo (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert AccountInfo to a base R type
AccountInfo$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of AccountInfo
AccountInfo$fromJSON(input_json)
input_jsonthe JSON input
the instance of AccountInfo
toJSONString()
To JSON String
AccountInfo$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
AccountInfo in JSON format
fromJSONString()
Deserialize JSON string into an instance of AccountInfo
AccountInfo$fromJSONString(input_json)
input_jsonthe JSON input
the instance of AccountInfo
validateJSON()
Validate JSON input with respect to AccountInfo and throw an exception if invalid
AccountInfo$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
AccountInfo$toString()
String representation of AccountInfo
isValid()
Return true if the values in all fields are valid.
AccountInfo$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
AccountInfo$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
AccountInfo$print()
clone()
The objects of this class are cloneable with this method.
AccountInfo$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `AccountInfo$toList` ## ------------------------------------------------ # convert array of AccountInfo (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `AccountInfo$toList` ## ------------------------------------------------ # convert array of AccountInfo (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
ActuatorApi
An R6Class generator object
SIRIUS Nightsky API
REST API that provides the full functionality of SIRIUS and its web services as background service. It is intended as entry-point for scripting languages and software integration SDKs.This API is exposed by SIRIUS 6
The version of the OpenAPI document: 3.2 Generated by: https://openapi-generator.tech
api_clientHandles the client-server communication.
new()
Initialize a new ActuatorApi.
ActuatorApi$new(api_client)
api_clientAn instance of API client.
Health()
Actuator web endpoint 'health'
ActuatorApi$Health(data_file = NULL, ...)
data_file(optional) name of the data file to save the result
...Other optional arguments
object
HealthWithHttpInfo()
Actuator web endpoint 'health'
ActuatorApi$HealthWithHttpInfo(data_file = NULL, ...)
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (object) with additional information such as HTTP status code, headers
Shutdown()
Actuator web endpoint 'shutdown'
ActuatorApi$Shutdown(...)
...Other optional arguments
void
ShutdownWithHttpInfo()
Actuator web endpoint 'shutdown'
ActuatorApi$ShutdownWithHttpInfo(...)
...Other optional arguments
API response (void) with additional information such as HTTP status code, headers
clone()
The objects of this class are cloneable with this method.
ActuatorApi$clone(deep = FALSE)
deepWhether to make a deep clone.
## Not run: #################### Health #################### library(RSirius) #Actuator web endpoint 'health' api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$Health(data_file = "result.txt") result <- api_instance$actuator_api$Health() dput(result) #################### Shutdown #################### library(RSirius) #Actuator web endpoint 'shutdown' api_instance <- rsirius_api$new() api_instance$actuator_api$Shutdown() ## End(Not run)## Not run: #################### Health #################### library(RSirius) #Actuator web endpoint 'health' api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$Health(data_file = "result.txt") result <- api_instance$actuator_api$Health() dput(result) #################### Shutdown #################### library(RSirius) #Actuator web endpoint 'shutdown' api_instance <- rsirius_api$new() api_instance$actuator_api$Shutdown() ## End(Not run)
The AlignedFeature contains the ID of a feature (aligned over runs) together with some read-only information that might be displayed in some summary view.
AlignedFeature Class
An R6Class generator object
Create a new AlignedFeature
alignedFeatureIdUnique identifier of the aligned feature within the project. character [optional]
compoundIdIdentifier of the compound the feature belongs to. Features that are different adducts or isotopologues of the same molecule share it. character [optional]
nameInformative, human-readable name of the feature. character [optional]
externalFeatureIdExternally provided FeatureId (e.g. by some preprocessing tool). This FeatureId is NOT used by SIRIUS but is stored to ease mapping information back to the source. character [optional]
ionMassMass-to-charge ratio (m/z) of the precursor ion of the feature. numeric [optional]
chargeIon mode (charge) the feature has been measured in. integer
detectedAdductsAdducts that have been detected for the feature during preprocessing. Never empty: if no adduct could be detected, the unknown ion type matching the feature's charge ([M+?]+ or [M+?]-) is reported instead, so every feature is filterable by adduct. list(character)
rtStartSecondsStart of the retention time range the feature was detected in, in seconds. numeric [optional]
rtEndSecondsEnd of the retention time range the feature was detected in, in seconds. numeric [optional]
rtApexSecondsRetention time of the intensity apex of the feature, in seconds. numeric [optional]
qualityOverall quality of the feature. NOT_APPLICABLE if no quality data is available character [optional]
hasMs1If true, the feature has at least one MS1 spectrum character [optional]
hasMsMsIf true, the feature has at least one MS/MS spectrum character [optional]
msDataMsData [optional]
topAnnotationsFeatureAnnotations [optional]
topAnnotationsDeNovoFeatureAnnotations [optional]
computingWrite lock for the feature. If the feature is locked no write operations are possible. True if any computation is modifying the feature or its results. character [optional]
computedToolsComputedSubtools [optional]
qualitiesQualities per top level quality category. named list(character) [optional]
tagsKey: tagName, value: tag named list(Tag) [optional]
new()
Initialize a new AlignedFeature class.
AlignedFeature$new( charge, detectedAdducts, alignedFeatureId = NULL, compoundId = NULL, name = NULL, externalFeatureId = NULL, ionMass = NULL, rtStartSeconds = NULL, rtEndSeconds = NULL, rtApexSeconds = NULL, quality = NULL, hasMs1 = NULL, hasMsMs = NULL, msData = NULL, topAnnotations = NULL, topAnnotationsDeNovo = NULL, computing = NULL, computedTools = NULL, qualities = NULL, tags = NULL, ... )
chargeIon mode (charge) the feature has been measured in.
detectedAdductsAdducts that have been detected for the feature during preprocessing. Never empty: if no adduct could be detected, the unknown ion type matching the feature's charge ([M+?]+ or [M+?]-) is reported instead, so every feature is filterable by adduct.
alignedFeatureIdUnique identifier of the aligned feature within the project.
compoundIdIdentifier of the compound the feature belongs to. Features that are different adducts or isotopologues of the same molecule share it.
nameInformative, human-readable name of the feature.
externalFeatureIdExternally provided FeatureId (e.g. by some preprocessing tool). This FeatureId is NOT used by SIRIUS but is stored to ease mapping information back to the source.
ionMassMass-to-charge ratio (m/z) of the precursor ion of the feature.
rtStartSecondsStart of the retention time range the feature was detected in, in seconds.
rtEndSecondsEnd of the retention time range the feature was detected in, in seconds.
rtApexSecondsRetention time of the intensity apex of the feature, in seconds.
qualityOverall quality of the feature. NOT_APPLICABLE if no quality data is available
hasMs1If true, the feature has at least one MS1 spectrum
hasMsMsIf true, the feature has at least one MS/MS spectrum
msDatamsData
topAnnotationstopAnnotations
topAnnotationsDeNovotopAnnotationsDeNovo
computingWrite lock for the feature. If the feature is locked no write operations are possible. True if any computation is modifying the feature or its results.
computedToolscomputedTools
qualitiesQualities per top level quality category.
tagsKey: tagName, value: tag
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
AlignedFeature$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
AlignedFeature$toList()
AlignedFeature as a base R list.
# convert array of AlignedFeature (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert AlignedFeature to a base R type
AlignedFeature$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of AlignedFeature
AlignedFeature$fromJSON(input_json)
input_jsonthe JSON input
the instance of AlignedFeature
toJSONString()
To JSON String
AlignedFeature$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
AlignedFeature in JSON format
fromJSONString()
Deserialize JSON string into an instance of AlignedFeature
AlignedFeature$fromJSONString(input_json)
input_jsonthe JSON input
the instance of AlignedFeature
validateJSON()
Validate JSON input with respect to AlignedFeature and throw an exception if invalid
AlignedFeature$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
AlignedFeature$toString()
String representation of AlignedFeature
isValid()
Return true if the values in all fields are valid.
AlignedFeature$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
AlignedFeature$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
AlignedFeature$print()
clone()
The objects of this class are cloneable with this method.
AlignedFeature$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `AlignedFeature$toList` ## ------------------------------------------------ # convert array of AlignedFeature (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `AlignedFeature$toList` ## ------------------------------------------------ # convert array of AlignedFeature (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
AllowedFeatures Class
AllowedFeatures Class
An R6Class generator object
Create a new AllowedFeatures
clicharacter [optional]
apicharacter [optional]
deNovocharacter [optional]
importMSRunscharacter [optional]
importPeakListscharacter [optional]
importCefcharacter [optional]
transformationProductscharacter [optional]
new()
Initialize a new AllowedFeatures class.
AllowedFeatures$new( cli = NULL, api = NULL, deNovo = NULL, importMSRuns = NULL, importPeakLists = NULL, importCef = NULL, transformationProducts = NULL, ... )
clicli
apiapi
deNovodeNovo
importMSRunsimportMSRuns
importPeakListsimportPeakLists
importCefimportCef
transformationProductstransformationProducts
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
AllowedFeatures$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
AllowedFeatures$toList()
AllowedFeatures as a base R list.
# convert array of AllowedFeatures (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert AllowedFeatures to a base R type
AllowedFeatures$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of AllowedFeatures
AllowedFeatures$fromJSON(input_json)
input_jsonthe JSON input
the instance of AllowedFeatures
toJSONString()
To JSON String
AllowedFeatures$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
AllowedFeatures in JSON format
fromJSONString()
Deserialize JSON string into an instance of AllowedFeatures
AllowedFeatures$fromJSONString(input_json)
input_jsonthe JSON input
the instance of AllowedFeatures
validateJSON()
Validate JSON input with respect to AllowedFeatures and throw an exception if invalid
AllowedFeatures$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
AllowedFeatures$toString()
String representation of AllowedFeatures
isValid()
Return true if the values in all fields are valid.
AllowedFeatures$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
AllowedFeatures$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
AllowedFeatures$print()
clone()
The objects of this class are cloneable with this method.
AllowedFeatures$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `AllowedFeatures$toList` ## ------------------------------------------------ # convert array of AllowedFeatures (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `AllowedFeatures$toList` ## ------------------------------------------------ # convert array of AllowedFeatures (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
AnnotatedMsMsData Class
AnnotatedMsMsData Class
An R6Class generator object
Create a new AnnotatedMsMsData
mergedMs2ms2Spectralist(AnnotatedSpectrum)
new()
Initialize a new AnnotatedMsMsData class.
AnnotatedMsMsData$new(mergedMs2, ms2Spectra, ...)
mergedMs2mergedMs2
ms2Spectrams2Spectra
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
AnnotatedMsMsData$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
AnnotatedMsMsData$toList()
AnnotatedMsMsData as a base R list.
# convert array of AnnotatedMsMsData (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert AnnotatedMsMsData to a base R type
AnnotatedMsMsData$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of AnnotatedMsMsData
AnnotatedMsMsData$fromJSON(input_json)
input_jsonthe JSON input
the instance of AnnotatedMsMsData
toJSONString()
To JSON String
AnnotatedMsMsData$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
AnnotatedMsMsData in JSON format
fromJSONString()
Deserialize JSON string into an instance of AnnotatedMsMsData
AnnotatedMsMsData$fromJSONString(input_json)
input_jsonthe JSON input
the instance of AnnotatedMsMsData
validateJSON()
Validate JSON input with respect to AnnotatedMsMsData and throw an exception if invalid
AnnotatedMsMsData$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
AnnotatedMsMsData$toString()
String representation of AnnotatedMsMsData
isValid()
Return true if the values in all fields are valid.
AnnotatedMsMsData$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
AnnotatedMsMsData$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
AnnotatedMsMsData$print()
clone()
The objects of this class are cloneable with this method.
AnnotatedMsMsData$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `AnnotatedMsMsData$toList` ## ------------------------------------------------ # convert array of AnnotatedMsMsData (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `AnnotatedMsMsData$toList` ## ------------------------------------------------ # convert array of AnnotatedMsMsData (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
AnnotatedPeak Class
AnnotatedPeak Class
An R6Class generator object
Create a new AnnotatedPeak
mznumeric [optional]
intensitynumeric [optional]
peakAnnotationPeakAnnotation [optional]
new()
Initialize a new AnnotatedPeak class.
AnnotatedPeak$new(mz = NULL, intensity = NULL, peakAnnotation = NULL, ...)
mzmz
intensityintensity
peakAnnotationpeakAnnotation
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
AnnotatedPeak$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
AnnotatedPeak$toList()
AnnotatedPeak as a base R list.
# convert array of AnnotatedPeak (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert AnnotatedPeak to a base R type
AnnotatedPeak$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of AnnotatedPeak
AnnotatedPeak$fromJSON(input_json)
input_jsonthe JSON input
the instance of AnnotatedPeak
toJSONString()
To JSON String
AnnotatedPeak$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
AnnotatedPeak in JSON format
fromJSONString()
Deserialize JSON string into an instance of AnnotatedPeak
AnnotatedPeak$fromJSONString(input_json)
input_jsonthe JSON input
the instance of AnnotatedPeak
validateJSON()
Validate JSON input with respect to AnnotatedPeak and throw an exception if invalid
AnnotatedPeak$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
AnnotatedPeak$toString()
String representation of AnnotatedPeak
isValid()
Return true if the values in all fields are valid.
AnnotatedPeak$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
AnnotatedPeak$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
AnnotatedPeak$print()
clone()
The objects of this class are cloneable with this method.
AnnotatedPeak$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `AnnotatedPeak$toList` ## ------------------------------------------------ # convert array of AnnotatedPeak (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `AnnotatedPeak$toList` ## ------------------------------------------------ # convert array of AnnotatedPeak (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
Spectrum model with peak annotations based on the fragmentation tree and Epimetheus substructure annotations. Molecular formula and adduct of the spectrum are identical to the ones of the corresponding molecular formula candidate and FragmentationTree. Fragment molecular formulas and adducts correspond to the FragmentationTree's FragmentNodes
AnnotatedSpectrum Class
An R6Class generator object
Create a new AnnotatedSpectrum
nameOptional display name of this spectrum. character [optional]
msLevelMS level of the measured spectrum. Artificial spectra with no msLevel (e.g. Simulated Isotope patterns) use null or zero integer [optional]
collisionEnergyCollision energy used for MS/MS spectra Null for spectra where collision energy is not applicable character [optional]
instrumentInstrument information. character [optional]
precursorMzPrecursor m/z of the MS/MS spectrum Null for spectra where precursor m/z is not applicable numeric [optional]
scanNumberScan number of the spectrum. Might be null for artificial spectra with no scan number (e.g. Simulated Isotope patterns or merged spectra) integer [optional]
cosineQueryTrue if spectrum is in cosine query normalized format. Such spectrum is compatible with SpectralLibraryMatch peak assignments to reference spectra. character
precursorPeakSimplePeak [optional]
peaksThe peaks of this spectrum which might contain additional annotations such as molecular formulas. list(AnnotatedPeak)
absIntensityFactorFactor to convert relative intensities to absolute intensities. Might be null or 1 for spectra where absolute intensities are not available (e.g. artificial or merged spectra) <p> DEPRECATED: Spectra are always returned with raw intensities. Use provided normalization factors to normalize on the fly. numeric [optional]
maxNormFactorFactor to convert absolute intensities to MAX norm. numeric [optional]
sumNormFactorFactor to convert absolute intensities to SUM norm. numeric [optional]
l2NormFactorFactor to convert absolute intensities to L2 (Euclidean) norm. numeric [optional]
firstPeakNormFactorFactor to convert absolute intensities to normalize intensities by first peak intensity. numeric [optional]
spectrumAnnotationSpectrumAnnotation [optional]
new()
Initialize a new AnnotatedSpectrum class.
AnnotatedSpectrum$new( cosineQuery, peaks, name = NULL, msLevel = NULL, collisionEnergy = NULL, instrument = NULL, precursorMz = NULL, scanNumber = NULL, precursorPeak = NULL, absIntensityFactor = NULL, maxNormFactor = NULL, sumNormFactor = NULL, l2NormFactor = NULL, firstPeakNormFactor = NULL, spectrumAnnotation = NULL, ... )
cosineQueryTrue if spectrum is in cosine query normalized format. Such spectrum is compatible with SpectralLibraryMatch peak assignments to reference spectra.
peaksThe peaks of this spectrum which might contain additional annotations such as molecular formulas.
nameOptional display name of this spectrum.
msLevelMS level of the measured spectrum. Artificial spectra with no msLevel (e.g. Simulated Isotope patterns) use null or zero
collisionEnergyCollision energy used for MS/MS spectra Null for spectra where collision energy is not applicable
instrumentInstrument information.
precursorMzPrecursor m/z of the MS/MS spectrum Null for spectra where precursor m/z is not applicable
scanNumberScan number of the spectrum. Might be null for artificial spectra with no scan number (e.g. Simulated Isotope patterns or merged spectra)
precursorPeakprecursorPeak
absIntensityFactorFactor to convert relative intensities to absolute intensities. Might be null or 1 for spectra where absolute intensities are not available (e.g. artificial or merged spectra) <p> DEPRECATED: Spectra are always returned with raw intensities. Use provided normalization factors to normalize on the fly.
maxNormFactorFactor to convert absolute intensities to MAX norm.
sumNormFactorFactor to convert absolute intensities to SUM norm.
l2NormFactorFactor to convert absolute intensities to L2 (Euclidean) norm.
firstPeakNormFactorFactor to convert absolute intensities to normalize intensities by first peak intensity.
spectrumAnnotationspectrumAnnotation
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
AnnotatedSpectrum$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
AnnotatedSpectrum$toList()
AnnotatedSpectrum as a base R list.
# convert array of AnnotatedSpectrum (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert AnnotatedSpectrum to a base R type
AnnotatedSpectrum$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of AnnotatedSpectrum
AnnotatedSpectrum$fromJSON(input_json)
input_jsonthe JSON input
the instance of AnnotatedSpectrum
toJSONString()
To JSON String
AnnotatedSpectrum$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
AnnotatedSpectrum in JSON format
fromJSONString()
Deserialize JSON string into an instance of AnnotatedSpectrum
AnnotatedSpectrum$fromJSONString(input_json)
input_jsonthe JSON input
the instance of AnnotatedSpectrum
validateJSON()
Validate JSON input with respect to AnnotatedSpectrum and throw an exception if invalid
AnnotatedSpectrum$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
AnnotatedSpectrum$toString()
String representation of AnnotatedSpectrum
isValid()
Return true if the values in all fields are valid.
AnnotatedSpectrum$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
AnnotatedSpectrum$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
AnnotatedSpectrum$print()
clone()
The objects of this class are cloneable with this method.
AnnotatedSpectrum$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `AnnotatedSpectrum$toList` ## ------------------------------------------------ # convert array of AnnotatedSpectrum (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `AnnotatedSpectrum$toList` ## ------------------------------------------------ # convert array of AnnotatedSpectrum (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
AnyValue Class
An R6Class generator object
actual_instancethe object stored in this instance.
actual_typethe type of the object stored in this instance.
any_ofa list of object types defined in the anyOf schema.
new()
Initialize a new AnyValue.
AnyValue$new(instance = NULL)
instancean instance of the object defined in the anyOf schemas: "character", "integer", "numeric"
fromJSONString()
Deserialize JSON string into an instance of AnyValue. An alias to the method 'fromJSON'.
AnyValue$fromJSONString(input)
inputThe input JSON.
An instance of AnyValue.
fromJSON()
Deserialize JSON string into an instance of AnyValue.
AnyValue$fromJSON(input)
inputThe input JSON.
An instance of AnyValue.
toJSONString()
Serialize AnyValue to JSON string.
AnyValue$toJSONString()
JSON string representation of the AnyValue.
toJSON()
Serialize AnyValue to JSON.
AnyValue$toJSON()
JSON representation of the AnyValue.
validateJSON()
Validate the input JSON with respect to AnyValue and throw exception if invalid.
AnyValue$validateJSON(input)
inputThe input JSON.
toString()
Returns the string representation of the instance.
AnyValue$toString()
The string representation of the instance.
print()
Print the object
AnyValue$print()
clone()
The objects of this class are cloneable with this method.
AnyValue$clone(deep = FALSE)
deepWhether to make a deep clone.
ApiClient Class
An R6Class generator object
SIRIUS Nightsky API
REST API that provides the full functionality of SIRIUS and its web services as background service. It is intended as entry-point for scripting languages and software integration SDKs.This API is exposed by SIRIUS 6
The version of the OpenAPI document: 3.2 Generated by: https://openapi-generator.tech
ApiClient Class
Generic API client for OpenAPI client library builds. OpenAPI generic API client. This client handles the client- server communication, and is invariant across implementations. Specifics of the methods and models for each application are generated from the OpenAPI Generator templates.
NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). Ref: https://openapi-generator.tech Do not edit the class manually.
base_pathBase url
user_agentDefault user agent
default_headersDefault headers
usernameUsername for HTTP basic authentication
passwordPassword for HTTP basic authentication
api_keysAPI keys
bearer_tokenBearer token
timeoutDefault timeout in seconds
retry_status_codesvector of status codes to retry
max_retry_attemptsmaximum number of retries for the status codes
new()
Initialize a new ApiClient.
ApiClient$new( base_path = NULL, user_agent = NULL, default_headers = NULL, username = NULL, password = NULL, api_keys = NULL, access_token = NULL, bearer_token = NULL, timeout = NULL, retry_status_codes = NULL, max_retry_attempts = NULL )
base_pathBase path.
user_agentUser agent.
default_headersDefault headers.
usernameUser name.
passwordPassword.
api_keysAPI keys.
access_tokenAccess token.
bearer_tokenBearer token.
timeoutTimeout.
retry_status_codesStatus codes for retry.
max_retry_attemptsMaxmium number of retry.
CallApi()
Prepare to make an API call with the retry logic.
ApiClient$CallApi( url, method, query_params, header_params, form_params, file_params, accepts, content_types, body, is_oauth = FALSE, oauth_scopes = NULL, stream_callback = NULL, ... )
urlURL.
methodHTTP method.
query_paramsThe query parameters.
header_paramsThe header parameters.
form_paramsThe form parameters.
file_paramsThe form parameters to upload files.
acceptsThe HTTP accept headers.
content_typesThe HTTP content-type headers.
bodyThe HTTP request body.
is_oauthTrue if the endpoints required OAuth authentication.
oauth_scopesOAuth scopes.
stream_callbackCallback function to process the data stream.
...Other optional arguments.
HTTP response
Execute()
Make an API call
ApiClient$Execute( req, method, query_params, header_params, form_params, file_params, accepts, content_types, body, is_oauth = FALSE, oauth_scopes = NULL, stream_callback = NULL, ... )
reqhttr2 request.
methodHTTP method.
query_paramsThe query parameters.
header_paramsThe header parameters.
form_paramsThe form parameters.
file_paramsThe form parameters for uploading files.
acceptsThe HTTP accept headers.
content_typesThe HTTP content-type headers.
bodyThe HTTP request body.
is_oauthTrue if the endpoints required OAuth authentication.
oauth_scopesOAuth scopes.
stream_callbackCallback function to process data stream.
...Other optional arguments.
HTTP response
deserialize()
Deserialize the content of API response to the given type.
ApiClient$deserialize(raw_response, return_type, pkg_env)
raw_responseRaw response.
return_typeR return type.
pkg_envPackage environment.
Deserialized object.
deserializeObj()
Deserialize the response from jsonlite object based on the given type. by handling complex and nested types by iterating recursively Example return_types will be like "array[integer]", "map(Pet)", "array[map(Tag)]", etc.
ApiClient$deserializeObj(obj, return_type, pkg_env)
objResponse object.
return_typeR return type.
pkg_envPackage environment.
Deserialized object.
select_header()
Return a property header (for accept or content-type). If JSON-related MIME is found, return it. Otherwise, return the first one, if any.
ApiClient$select_header(headers)
headersA list of headers
A header (e.g. 'application/json')
clone()
The objects of this class are cloneable with this method.
ApiClient$clone(deep = FALSE)
deepWhether to make a deep clone.
ApiResponse Class
An R6Class generator object
SIRIUS Nightsky API
REST API that provides the full functionality of SIRIUS and its web services as background service. It is intended as entry-point for scripting languages and software integration SDKs.This API is exposed by SIRIUS 6
The version of the OpenAPI document: 3.2 Generated by: https://openapi-generator.tech
contentThe deserialized response body.
responseThe raw response from the endpoint.
status_codeThe HTTP response status code.
status_code_descThe brief description of the HTTP response status code.
headersThe HTTP response headers.
new()
Initialize a new ApiResponse class.
ApiResponse$new( content = NULL, response = NULL, status_code = NULL, status_code_desc = NULL, headers = NULL )
contentThe deserialized response body.
responseThe raw response from the endpoint.
status_codeThe HTTP response status code.
status_code_descThe brief description of the HTTP response status code.
headersThe HTTP response headers.
response_as_text()
The response is stored as a raw vector. Use this to access the response after converting it to text. If the response is not coercible to text NA is returned.
ApiResponse$response_as_text(from_encoding = "", to_encoding = "UTF-8")
from_encodingThe encoding of the raw response.
to_encodingThe target encoding of the return value.
clone()
The objects of this class are cloneable with this method.
ApiResponse$clone(deep = FALSE)
deepWhether to make a deep clone.
BackgroundComputationsStateEvent Class
BackgroundComputationsStateEvent Class
An R6Class generator object
Create a new BackgroundComputationsStateEvent
affectedJobslist(Job)
numberOfJobsinteger
numberOfRunningJobsinteger
numberOfFinishedJobsinteger
new()
Initialize a new BackgroundComputationsStateEvent class.
BackgroundComputationsStateEvent$new( affectedJobs, numberOfJobs, numberOfRunningJobs, numberOfFinishedJobs, ... )
affectedJobsaffectedJobs
numberOfJobsnumberOfJobs
numberOfRunningJobsnumberOfRunningJobs
numberOfFinishedJobsnumberOfFinishedJobs
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
BackgroundComputationsStateEvent$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
BackgroundComputationsStateEvent$toList()
BackgroundComputationsStateEvent as a base R list.
# convert array of BackgroundComputationsStateEvent (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert BackgroundComputationsStateEvent to a base R type
BackgroundComputationsStateEvent$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of BackgroundComputationsStateEvent
BackgroundComputationsStateEvent$fromJSON(input_json)
input_jsonthe JSON input
the instance of BackgroundComputationsStateEvent
toJSONString()
To JSON String
BackgroundComputationsStateEvent$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
BackgroundComputationsStateEvent in JSON format
fromJSONString()
Deserialize JSON string into an instance of BackgroundComputationsStateEvent
BackgroundComputationsStateEvent$fromJSONString(input_json)
input_jsonthe JSON input
the instance of BackgroundComputationsStateEvent
validateJSON()
Validate JSON input with respect to BackgroundComputationsStateEvent and throw an exception if invalid
BackgroundComputationsStateEvent$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
BackgroundComputationsStateEvent$toString()
String representation of BackgroundComputationsStateEvent
isValid()
Return true if the values in all fields are valid.
BackgroundComputationsStateEvent$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
BackgroundComputationsStateEvent$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
BackgroundComputationsStateEvent$print()
clone()
The objects of this class are cloneable with this method.
BackgroundComputationsStateEvent$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `BackgroundComputationsStateEvent$toList` ## ------------------------------------------------ # convert array of BackgroundComputationsStateEvent (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `BackgroundComputationsStateEvent$toList` ## ------------------------------------------------ # convert array of BackgroundComputationsStateEvent (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
BasicSpectrum Class
BasicSpectrum Class
An R6Class generator object
Create a new BasicSpectrum
nameOptional display name of this spectrum. character [optional]
msLevelMS level of the measured spectrum. Artificial spectra with no msLevel (e.g. Simulated Isotope patterns) use null or zero integer [optional]
collisionEnergyCollision energy used for MS/MS spectra Null for spectra where collision energy is not applicable character [optional]
instrumentInstrument information. character [optional]
precursorMzPrecursor m/z of the MS/MS spectrum Null for spectra where precursor m/z is not applicable numeric [optional]
scanNumberScan number of the spectrum. Might be null for artificial spectra with no scan number (e.g. Simulated Isotope patterns or merged spectra) integer [optional]
cosineQueryTrue if spectrum is in cosine query normalized format. Such spectrum is compatible with SpectralLibraryMatch peak assignments to reference spectra. character
precursorPeakSimplePeak [optional]
peaksThe peaks of this spectrum which might contain additional annotations such as molecular formulas. list(SimplePeak)
absIntensityFactorFactor to convert relative intensities to absolute intensities. Might be null or 1 for spectra where absolute intensities are not available (e.g. artificial or merged spectra) <p> DEPRECATED: Spectra are always returned with raw intensities. Use provided normalization factors to normalize on the fly. numeric [optional]
maxNormFactorFactor to convert absolute intensities to MAX norm. numeric [optional]
sumNormFactorFactor to convert absolute intensities to SUM norm. numeric [optional]
l2NormFactorFactor to convert absolute intensities to L2 (Euclidean) norm. numeric [optional]
firstPeakNormFactorFactor to convert absolute intensities to normalize intensities by first peak intensity. numeric [optional]
new()
Initialize a new BasicSpectrum class.
BasicSpectrum$new( cosineQuery, peaks, name = NULL, msLevel = NULL, collisionEnergy = NULL, instrument = NULL, precursorMz = NULL, scanNumber = NULL, precursorPeak = NULL, absIntensityFactor = NULL, maxNormFactor = NULL, sumNormFactor = NULL, l2NormFactor = NULL, firstPeakNormFactor = NULL, ... )
cosineQueryTrue if spectrum is in cosine query normalized format. Such spectrum is compatible with SpectralLibraryMatch peak assignments to reference spectra.
peaksThe peaks of this spectrum which might contain additional annotations such as molecular formulas.
nameOptional display name of this spectrum.
msLevelMS level of the measured spectrum. Artificial spectra with no msLevel (e.g. Simulated Isotope patterns) use null or zero
collisionEnergyCollision energy used for MS/MS spectra Null for spectra where collision energy is not applicable
instrumentInstrument information.
precursorMzPrecursor m/z of the MS/MS spectrum Null for spectra where precursor m/z is not applicable
scanNumberScan number of the spectrum. Might be null for artificial spectra with no scan number (e.g. Simulated Isotope patterns or merged spectra)
precursorPeakprecursorPeak
absIntensityFactorFactor to convert relative intensities to absolute intensities. Might be null or 1 for spectra where absolute intensities are not available (e.g. artificial or merged spectra) <p> DEPRECATED: Spectra are always returned with raw intensities. Use provided normalization factors to normalize on the fly.
maxNormFactorFactor to convert absolute intensities to MAX norm.
sumNormFactorFactor to convert absolute intensities to SUM norm.
l2NormFactorFactor to convert absolute intensities to L2 (Euclidean) norm.
firstPeakNormFactorFactor to convert absolute intensities to normalize intensities by first peak intensity.
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
BasicSpectrum$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
BasicSpectrum$toList()
BasicSpectrum as a base R list.
# convert array of BasicSpectrum (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert BasicSpectrum to a base R type
BasicSpectrum$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of BasicSpectrum
BasicSpectrum$fromJSON(input_json)
input_jsonthe JSON input
the instance of BasicSpectrum
toJSONString()
To JSON String
BasicSpectrum$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
BasicSpectrum in JSON format
fromJSONString()
Deserialize JSON string into an instance of BasicSpectrum
BasicSpectrum$fromJSONString(input_json)
input_jsonthe JSON input
the instance of BasicSpectrum
validateJSON()
Validate JSON input with respect to BasicSpectrum and throw an exception if invalid
BasicSpectrum$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
BasicSpectrum$toString()
String representation of BasicSpectrum
isValid()
Return true if the values in all fields are valid.
BasicSpectrum$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
BasicSpectrum$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
BasicSpectrum$print()
clone()
The objects of this class are cloneable with this method.
BasicSpectrum$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `BasicSpectrum$toList` ## ------------------------------------------------ # convert array of BasicSpectrum (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `BasicSpectrum$toList` ## ------------------------------------------------ # convert array of BasicSpectrum (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
BinaryFingerprint Class
BinaryFingerprint Class
An R6Class generator object
Create a new BinaryFingerprint
bitsSetArray that contains all RELATIVE indices (masked FP) of bits that are set (are 1) list(integer) [optional]
lengthSize of the fingerprint (masked fp), e.g. to reconstruct the binary array from the array of set bits integer [optional]
new()
Initialize a new BinaryFingerprint class.
BinaryFingerprint$new(bitsSet = NULL, length = NULL, ...)
bitsSetArray that contains all RELATIVE indices (masked FP) of bits that are set (are 1)
lengthSize of the fingerprint (masked fp), e.g. to reconstruct the binary array from the array of set bits
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
BinaryFingerprint$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
BinaryFingerprint$toList()
BinaryFingerprint as a base R list.
# convert array of BinaryFingerprint (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert BinaryFingerprint to a base R type
BinaryFingerprint$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of BinaryFingerprint
BinaryFingerprint$fromJSON(input_json)
input_jsonthe JSON input
the instance of BinaryFingerprint
toJSONString()
To JSON String
BinaryFingerprint$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
BinaryFingerprint in JSON format
fromJSONString()
Deserialize JSON string into an instance of BinaryFingerprint
BinaryFingerprint$fromJSONString(input_json)
input_jsonthe JSON input
the instance of BinaryFingerprint
validateJSON()
Validate JSON input with respect to BinaryFingerprint and throw an exception if invalid
BinaryFingerprint$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
BinaryFingerprint$toString()
String representation of BinaryFingerprint
isValid()
Return true if the values in all fields are valid.
BinaryFingerprint$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
BinaryFingerprint$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
BinaryFingerprint$print()
clone()
The objects of this class are cloneable with this method.
BinaryFingerprint$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `BinaryFingerprint$toList` ## ------------------------------------------------ # convert array of BinaryFingerprint (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `BinaryFingerprint$toList` ## ------------------------------------------------ # convert array of BinaryFingerprint (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
BioTransformerParameters Class
BioTransformerParameters Class
An R6Class generator object
Create a new BioTransformerParameters
cyp450ModeSpecify the Phase I/Cyp450 mode for all provided BioTransformerSequenceSteps. Will only be applied to Steps that require the Cyp450 mode as parameter. Can be null in cases where only BioTransformerSequenceSteps are specified that do not need the Cyp450 mode. character
p2ModeSpecify the Phase II mode for all provided BioTransformerSequenceSteps. Will only be applied to Steps that require the Phase II mode as parameter. Can be null in cases where only BioTransformerSequenceSteps are specified that do not need the Phase II mode. character
useDBSpecify whether structures should additionally be retrieved from the HMDB database. character [optional]
bioTransformerSequenceStepsSpecify BioTransformerSequenceSteps to be applied to input structures. MultiStep MetabolicTransformations can only be used as singletons (list size of one). list(BioTransformerSequenceStep)
new()
Initialize a new BioTransformerParameters class.
BioTransformerParameters$new( cyp450Mode, p2Mode, bioTransformerSequenceSteps, useDB = TRUE, ... )
cyp450ModeSpecify the Phase I/Cyp450 mode for all provided BioTransformerSequenceSteps. Will only be applied to Steps that require the Cyp450 mode as parameter. Can be null in cases where only BioTransformerSequenceSteps are specified that do not need the Cyp450 mode.
p2ModeSpecify the Phase II mode for all provided BioTransformerSequenceSteps. Will only be applied to Steps that require the Phase II mode as parameter. Can be null in cases where only BioTransformerSequenceSteps are specified that do not need the Phase II mode.
bioTransformerSequenceStepsSpecify BioTransformerSequenceSteps to be applied to input structures. MultiStep MetabolicTransformations can only be used as singletons (list size of one).
useDBSpecify whether structures should additionally be retrieved from the HMDB database.. Default to TRUE.
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
BioTransformerParameters$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
BioTransformerParameters$toList()
BioTransformerParameters as a base R list.
# convert array of BioTransformerParameters (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert BioTransformerParameters to a base R type
BioTransformerParameters$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of BioTransformerParameters
BioTransformerParameters$fromJSON(input_json)
input_jsonthe JSON input
the instance of BioTransformerParameters
toJSONString()
To JSON String
BioTransformerParameters$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
BioTransformerParameters in JSON format
fromJSONString()
Deserialize JSON string into an instance of BioTransformerParameters
BioTransformerParameters$fromJSONString(input_json)
input_jsonthe JSON input
the instance of BioTransformerParameters
validateJSON()
Validate JSON input with respect to BioTransformerParameters and throw an exception if invalid
BioTransformerParameters$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
BioTransformerParameters$toString()
String representation of BioTransformerParameters
isValid()
Return true if the values in all fields are valid.
BioTransformerParameters$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
BioTransformerParameters$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
BioTransformerParameters$print()
clone()
The objects of this class are cloneable with this method.
BioTransformerParameters$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `BioTransformerParameters$toList` ## ------------------------------------------------ # convert array of BioTransformerParameters (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `BioTransformerParameters$toList` ## ------------------------------------------------ # convert array of BioTransformerParameters (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
BioTransformerSequenceStep Class
BioTransformerSequenceStep Class
An R6Class generator object
Create a new BioTransformerSequenceStep
metabolicTransformationcharacter [optional]
iterationsinteger [optional]
new()
Initialize a new BioTransformerSequenceStep class.
BioTransformerSequenceStep$new( metabolicTransformation = NULL, iterations = NULL, ... )
metabolicTransformationmetabolicTransformation
iterationsiterations
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
BioTransformerSequenceStep$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
BioTransformerSequenceStep$toList()
BioTransformerSequenceStep as a base R list.
# convert array of BioTransformerSequenceStep (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert BioTransformerSequenceStep to a base R type
BioTransformerSequenceStep$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of BioTransformerSequenceStep
BioTransformerSequenceStep$fromJSON(input_json)
input_jsonthe JSON input
the instance of BioTransformerSequenceStep
toJSONString()
To JSON String
BioTransformerSequenceStep$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
BioTransformerSequenceStep in JSON format
fromJSONString()
Deserialize JSON string into an instance of BioTransformerSequenceStep
BioTransformerSequenceStep$fromJSONString(input_json)
input_jsonthe JSON input
the instance of BioTransformerSequenceStep
validateJSON()
Validate JSON input with respect to BioTransformerSequenceStep and throw an exception if invalid
BioTransformerSequenceStep$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
BioTransformerSequenceStep$toString()
String representation of BioTransformerSequenceStep
isValid()
Return true if the values in all fields are valid.
BioTransformerSequenceStep$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
BioTransformerSequenceStep$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
BioTransformerSequenceStep$print()
clone()
The objects of this class are cloneable with this method.
BioTransformerSequenceStep$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `BioTransformerSequenceStep$toList` ## ------------------------------------------------ # convert array of BioTransformerSequenceStep (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `BioTransformerSequenceStep$toList` ## ------------------------------------------------ # convert array of BioTransformerSequenceStep (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
User/developer friendly parameter subset for the CANOPUS tool CANOPUS is parameter-free, so this object is just a flag that CANOPUS should be executed. Needs results from the FingerprintPrediction tool.
Canopus Class
An R6Class generator object
Create a new Canopus
enabledIndicates whether the tool is enabled. character [optional]
new()
Initialize a new Canopus class.
Canopus$new(enabled = NULL, ...)
enabledIndicates whether the tool is enabled.
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
Canopus$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
Canopus$toList()
Canopus as a base R list.
# convert array of Canopus (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert Canopus to a base R type
Canopus$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of Canopus
Canopus$fromJSON(input_json)
input_jsonthe JSON input
the instance of Canopus
toJSONString()
To JSON String
Canopus$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
Canopus in JSON format
fromJSONString()
Deserialize JSON string into an instance of Canopus
Canopus$fromJSONString(input_json)
input_jsonthe JSON input
the instance of Canopus
validateJSON()
Validate JSON input with respect to Canopus and throw an exception if invalid
Canopus$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
Canopus$toString()
String representation of Canopus
isValid()
Return true if the values in all fields are valid.
Canopus$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
Canopus$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
Canopus$print()
clone()
The objects of this class are cloneable with this method.
Canopus$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `Canopus$toList` ## ------------------------------------------------ # convert array of Canopus (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `Canopus$toList` ## ------------------------------------------------ # convert array of Canopus (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
Container class that holds the CANOPUS compound class predictions for all predictable compound classes. This is the full CANOPUS result.
CanopusPrediction Class
An R6Class generator object
Create a new CanopusPrediction
classyFireClassesAll predicted ClassyFire classes list(CompoundClass) [optional]
npcClassesAll predicted NPC classes list(CompoundClass) [optional]
new()
Initialize a new CanopusPrediction class.
CanopusPrediction$new(classyFireClasses = NULL, npcClasses = NULL, ...)
classyFireClassesAll predicted ClassyFire classes
npcClassesAll predicted NPC classes
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
CanopusPrediction$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
CanopusPrediction$toList()
CanopusPrediction as a base R list.
# convert array of CanopusPrediction (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert CanopusPrediction to a base R type
CanopusPrediction$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of CanopusPrediction
CanopusPrediction$fromJSON(input_json)
input_jsonthe JSON input
the instance of CanopusPrediction
toJSONString()
To JSON String
CanopusPrediction$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
CanopusPrediction in JSON format
fromJSONString()
Deserialize JSON string into an instance of CanopusPrediction
CanopusPrediction$fromJSONString(input_json)
input_jsonthe JSON input
the instance of CanopusPrediction
validateJSON()
Validate JSON input with respect to CanopusPrediction and throw an exception if invalid
CanopusPrediction$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
CanopusPrediction$toString()
String representation of CanopusPrediction
isValid()
Return true if the values in all fields are valid.
CanopusPrediction$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
CanopusPrediction$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
CanopusPrediction$print()
clone()
The objects of this class are cloneable with this method.
CanopusPrediction$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `CanopusPrediction$toList` ## ------------------------------------------------ # convert array of CanopusPrediction (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `CanopusPrediction$toList` ## ------------------------------------------------ # convert array of CanopusPrediction (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
Compound Class
Compound Class
An R6Class generator object
Create a new Compound
compoundIdUnique id of the compound entity. character [optional]
nameSome (optional) human-readable name character [optional]
rtStartSecondsThe merged/consensus retention time start (earliest rt) of the compound numeric [optional]
rtEndSecondsThe merged/consensus retention time end (latest rt) of the compound numeric [optional]
neutralMassNeutral mass of the compound. Ion mass minus the mass of the assigned adduct of each feature of the compound should result in the same neutral mass numeric [optional]
featuresList of aligned features (adducts) that belong to the compound list(AlignedFeature) [optional]
consensusAnnotationsConsensusAnnotationsCSI [optional]
consensusAnnotationsDeNovoConsensusAnnotationsDeNovo [optional]
customAnnotationsConsensusAnnotationsCSI [optional]
tagsKey: tagName, value: tag named list(Tag) [optional]
new()
Initialize a new Compound class.
Compound$new( compoundId = NULL, name = NULL, rtStartSeconds = NULL, rtEndSeconds = NULL, neutralMass = NULL, features = NULL, consensusAnnotations = NULL, consensusAnnotationsDeNovo = NULL, customAnnotations = NULL, tags = NULL, ... )
compoundIdUnique id of the compound entity.
nameSome (optional) human-readable name
rtStartSecondsThe merged/consensus retention time start (earliest rt) of the compound
rtEndSecondsThe merged/consensus retention time end (latest rt) of the compound
neutralMassNeutral mass of the compound. Ion mass minus the mass of the assigned adduct of each feature of the compound should result in the same neutral mass
featuresList of aligned features (adducts) that belong to the compound
consensusAnnotationsconsensusAnnotations
consensusAnnotationsDeNovoconsensusAnnotationsDeNovo
customAnnotationscustomAnnotations
tagsKey: tagName, value: tag
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
Compound$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
Compound$toList()
Compound as a base R list.
# convert array of Compound (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert Compound to a base R type
Compound$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of Compound
Compound$fromJSON(input_json)
input_jsonthe JSON input
the instance of Compound
toJSONString()
To JSON String
Compound$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
Compound in JSON format
fromJSONString()
Deserialize JSON string into an instance of Compound
Compound$fromJSONString(input_json)
input_jsonthe JSON input
the instance of Compound
validateJSON()
Validate JSON input with respect to Compound and throw an exception if invalid
Compound$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
Compound$toString()
String representation of Compound
isValid()
Return true if the values in all fields are valid.
Compound$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
Compound$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
Compound$print()
clone()
The objects of this class are cloneable with this method.
Compound$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `Compound$toList` ## ------------------------------------------------ # convert array of Compound (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `Compound$toList` ## ------------------------------------------------ # convert array of Compound (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
Predicted compound class with name, probability and id if available. (ClassyFire and NPC). This can be seen as the set of classes a feature most likely belongs to
CompoundClass Class
An R6Class generator object
Create a new CompoundClass
typeSpecifies the classification ontology the CompoundClass belongs to. character [optional]
levelName of the level this compound class belongs to character [optional]
levelIndexIndex of the level this compound class belongs to integer [optional]
nameName of the compound class. character [optional]
descriptionDescription of the compound class. character [optional]
idUnique id of the class. Might be undefined for certain classification ontologies. integer [optional]
probabilityPrediction probability. numeric [optional]
indexAbsolute index of this property in the predicted vector/embedding integer [optional]
parentIdUnique id of the parent class. Might be undefined for certain classification ontologies. integer [optional]
parentNameName of the parent compound class. character [optional]
new()
Initialize a new CompoundClass class.
CompoundClass$new( type = NULL, level = NULL, levelIndex = NULL, name = NULL, description = NULL, id = NULL, probability = NULL, index = NULL, parentId = NULL, parentName = NULL, ... )
typeSpecifies the classification ontology the CompoundClass belongs to.
levelName of the level this compound class belongs to
levelIndexIndex of the level this compound class belongs to
nameName of the compound class.
descriptionDescription of the compound class.
idUnique id of the class. Might be undefined for certain classification ontologies.
probabilityPrediction probability.
indexAbsolute index of this property in the predicted vector/embedding
parentIdUnique id of the parent class. Might be undefined for certain classification ontologies.
parentNameName of the parent compound class.
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
CompoundClass$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
CompoundClass$toList()
CompoundClass as a base R list.
# convert array of CompoundClass (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert CompoundClass to a base R type
CompoundClass$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of CompoundClass
CompoundClass$fromJSON(input_json)
input_jsonthe JSON input
the instance of CompoundClass
toJSONString()
To JSON String
CompoundClass$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
CompoundClass in JSON format
fromJSONString()
Deserialize JSON string into an instance of CompoundClass
CompoundClass$fromJSONString(input_json)
input_jsonthe JSON input
the instance of CompoundClass
validateJSON()
Validate JSON input with respect to CompoundClass and throw an exception if invalid
CompoundClass$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
CompoundClass$toString()
String representation of CompoundClass
isValid()
Return true if the values in all fields are valid.
CompoundClass$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
CompoundClass$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
CompoundClass$print()
clone()
The objects of this class are cloneable with this method.
CompoundClass$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `CompoundClass$toList` ## ------------------------------------------------ # convert array of CompoundClass (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `CompoundClass$toList` ## ------------------------------------------------ # convert array of CompoundClass (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
Container class that holds the most likely compound class for different levels of each ontology for a certain Compound/Feature/FormulaCandidate/PredictedFingerprint.
CompoundClasses Class
An R6Class generator object
Create a new CompoundClasses
npcPathwayCompoundClass [optional]
npcSuperclassCompoundClass [optional]
npcClassCompoundClass [optional]
classyFireLineageMost likely ClassyFire lineage, ordered from least specific to most specific class classyFireLineage.get(classyFireLineage.size() - 1) gives the most specific ClassyFire compound class annotation list(CompoundClass) [optional]
classyFireAlternativesAlternative ClassyFire classes with high probability that do not fit into the lineage list(CompoundClass) [optional]
new()
Initialize a new CompoundClasses class.
CompoundClasses$new( npcPathway = NULL, npcSuperclass = NULL, npcClass = NULL, classyFireLineage = NULL, classyFireAlternatives = NULL, ... )
npcPathwaynpcPathway
npcSuperclassnpcSuperclass
npcClassnpcClass
classyFireLineageMost likely ClassyFire lineage, ordered from least specific to most specific class classyFireLineage.get(classyFireLineage.size() - 1) gives the most specific ClassyFire compound class annotation
classyFireAlternativesAlternative ClassyFire classes with high probability that do not fit into the lineage
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
CompoundClasses$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
CompoundClasses$toList()
CompoundClasses as a base R list.
# convert array of CompoundClasses (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert CompoundClasses to a base R type
CompoundClasses$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of CompoundClasses
CompoundClasses$fromJSON(input_json)
input_jsonthe JSON input
the instance of CompoundClasses
toJSONString()
To JSON String
CompoundClasses$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
CompoundClasses in JSON format
fromJSONString()
Deserialize JSON string into an instance of CompoundClasses
CompoundClasses$fromJSONString(input_json)
input_jsonthe JSON input
the instance of CompoundClasses
validateJSON()
Validate JSON input with respect to CompoundClasses and throw an exception if invalid
CompoundClasses$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
CompoundClasses$toString()
String representation of CompoundClasses
isValid()
Return true if the values in all fields are valid.
CompoundClasses$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
CompoundClasses$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
CompoundClasses$print()
clone()
The objects of this class are cloneable with this method.
CompoundClasses$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `CompoundClasses$toList` ## ------------------------------------------------ # convert array of CompoundClasses (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `CompoundClasses$toList` ## ------------------------------------------------ # convert array of CompoundClasses (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
CompoundImport Class
CompoundImport Class
An R6Class generator object
Create a new CompoundImport
nameSome (optional) human-readable name character [optional]
featuresThe features this compound consists of. list(FeatureImport)
new()
Initialize a new CompoundImport class.
CompoundImport$new(features, name = NULL, ...)
featuresThe features this compound consists of.
nameSome (optional) human-readable name
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
CompoundImport$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
CompoundImport$toList()
CompoundImport as a base R list.
# convert array of CompoundImport (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert CompoundImport to a base R type
CompoundImport$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of CompoundImport
CompoundImport$fromJSON(input_json)
input_jsonthe JSON input
the instance of CompoundImport
toJSONString()
To JSON String
CompoundImport$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
CompoundImport in JSON format
fromJSONString()
Deserialize JSON string into an instance of CompoundImport
CompoundImport$fromJSONString(input_json)
input_jsonthe JSON input
the instance of CompoundImport
validateJSON()
Validate JSON input with respect to CompoundImport and throw an exception if invalid
CompoundImport$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
CompoundImport$toString()
String representation of CompoundImport
isValid()
Return true if the values in all fields are valid.
CompoundImport$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
CompoundImport$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
CompoundImport$print()
clone()
The objects of this class are cloneable with this method.
CompoundImport$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `CompoundImport$toList` ## ------------------------------------------------ # convert array of CompoundImport (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `CompoundImport$toList` ## ------------------------------------------------ # convert array of CompoundImport (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
CompoundsApi
An R6Class generator object
SIRIUS Nightsky API
REST API that provides the full functionality of SIRIUS and its web services as background service. It is intended as entry-point for scripting languages and software integration SDKs.This API is exposed by SIRIUS 6
The version of the OpenAPI document: 3.2 Generated by: https://openapi-generator.tech
api_clientHandles the client-server communication.
new()
Initialize a new CompoundsApi.
CompoundsApi$new(api_client)
api_clientAn instance of API client.
AddCompounds()
Import compounds and their contained features.
CompoundsApi$AddCompounds(
project_id,
compound_import,
profile = NULL,
opt_fields = list("none"),
opt_fields_features = list("none"),
data_file = NULL,
...
)project_idproject-space to import into.
compound_importthe compound data to be imported
profile(optional) profile describing the instrument used to measure the data. Used to merge spectra.
opt_fields(optional) set of optional fields to be included. Use 'none' to override defaults. (default value: ["none"])
opt_fields_features(optional) set of optional fields of the nested features to be included. Use 'none' to override defaults. (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
array[Compound]
AddCompoundsWithHttpInfo()
Import compounds and their contained features.
CompoundsApi$AddCompoundsWithHttpInfo(
project_id,
compound_import,
profile = NULL,
opt_fields = list("none"),
opt_fields_features = list("none"),
data_file = NULL,
...
)project_idproject-space to import into.
compound_importthe compound data to be imported
profile(optional) profile describing the instrument used to measure the data. Used to merge spectra.
opt_fields(optional) set of optional fields to be included. Use 'none' to override defaults. (default value: ["none"])
opt_fields_features(optional) set of optional fields of the nested features to be included. Use 'none' to override defaults. (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (array[Compound]) with additional information such as HTTP status code, headers
DeleteCompound()
Delete compound (group of ion identities) with the given identifier (and the included features) from the specified project-space.
CompoundsApi$DeleteCompound(project_id, compound_id, ...)
project_idproject-space to delete from.
compound_ididentifier of the compound to delete.
...Other optional arguments
void
DeleteCompoundWithHttpInfo()
Delete compound (group of ion identities) with the given identifier (and the included features) from the specified project-space.
CompoundsApi$DeleteCompoundWithHttpInfo(project_id, compound_id, ...)
project_idproject-space to delete from.
compound_ididentifier of the compound to delete.
...Other optional arguments
API response (void) with additional information such as HTTP status code, headers
GetCompound()
Get compound (group of ion identities) with the given identifier from the specified project-space.
CompoundsApi$GetCompound(
project_id,
compound_id,
ms_data_search_prepared = FALSE,
opt_fields = list("none"),
opt_fields_features = list("none"),
data_file = NULL,
...
)project_idproject-space to read from.
compound_ididentifier of the compound (group of ion identities) to access.
ms_data_search_prepared(optional) Returns all fragment spectra in a preprocessed form as used for fast Cosine/Modified Cosine computation. Gives you spectra compatible with SpectralLibraryMatch peak assignments and reference spectra. (default value: FALSE)
opt_fields(optional) set of optional fields to be included. Use 'none' only to override defaults. (default value: ["none"])
opt_fields_features(optional) No description (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
Compound
GetCompoundWithHttpInfo()
Get compound (group of ion identities) with the given identifier from the specified project-space.
CompoundsApi$GetCompoundWithHttpInfo(
project_id,
compound_id,
ms_data_search_prepared = FALSE,
opt_fields = list("none"),
opt_fields_features = list("none"),
data_file = NULL,
...
)project_idproject-space to read from.
compound_ididentifier of the compound (group of ion identities) to access.
ms_data_search_prepared(optional) Returns all fragment spectra in a preprocessed form as used for fast Cosine/Modified Cosine computation. Gives you spectra compatible with SpectralLibraryMatch peak assignments and reference spectra. (default value: FALSE)
opt_fields(optional) set of optional fields to be included. Use 'none' only to override defaults. (default value: ["none"])
opt_fields_features(optional) No description (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (Compound) with additional information such as HTTP status code, headers
GetCompoundQuantTable()
Returns the full quantification table of compounds
CompoundsApi$GetCompoundQuantTable(
project_id,
search_query = NULL,
type = "APEX_INTENSITY",
opt_fields = list("none"),
data_file = NULL,
...
)project_idproject-space to read from.
search_query(optional) Optional query in lucene syntax selecting compounds by id. Omit this parameter to quantify all compounds.
type(optional) quantification type. (default value: "APEX_INTENSITY")
opt_fields(optional) No description (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
QuantTable
GetCompoundQuantTableWithHttpInfo()
Returns the full quantification table of compounds
CompoundsApi$GetCompoundQuantTableWithHttpInfo(
project_id,
search_query = NULL,
type = "APEX_INTENSITY",
opt_fields = list("none"),
data_file = NULL,
...
)project_idproject-space to read from.
search_query(optional) Optional query in lucene syntax selecting compounds by id. Omit this parameter to quantify all compounds.
type(optional) quantification type. (default value: "APEX_INTENSITY")
opt_fields(optional) No description (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (QuantTable) with additional information such as HTTP status code, headers
GetCompounds()
[DEPRECATED] List of all available compounds (group of ion identities) in the given project-space
CompoundsApi$GetCompounds(
project_id,
ms_data_search_prepared = FALSE,
opt_fields = list("none"),
opt_fields_features = list("none"),
data_file = NULL,
...
)project_idproject-space to read from.
ms_data_search_prepared(optional) Returns all fragment spectra in a preprocessed form as used for fast Cosine/Modified Cosine computation. Gives you spectra compatible with SpectralLibraryMatch peak assignments and reference spectra. (default value: FALSE)
opt_fields(optional) set of optional fields to be included. Use 'none' only to override defaults. (default value: ["none"])
opt_fields_features(optional) No description (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
array[Compound]
GetCompoundsWithHttpInfo()
[DEPRECATED] List of all available compounds (group of ion identities) in the given project-space
CompoundsApi$GetCompoundsWithHttpInfo(
project_id,
ms_data_search_prepared = FALSE,
opt_fields = list("none"),
opt_fields_features = list("none"),
data_file = NULL,
...
)project_idproject-space to read from.
ms_data_search_prepared(optional) Returns all fragment spectra in a preprocessed form as used for fast Cosine/Modified Cosine computation. Gives you spectra compatible with SpectralLibraryMatch peak assignments and reference spectra. (default value: FALSE)
opt_fields(optional) set of optional fields to be included. Use 'none' only to override defaults. (default value: ["none"])
opt_fields_features(optional) No description (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (array[Compound]) with additional information such as HTTP status code, headers
GetCompoundsPage()
Page of available compounds (group of ion identities) in the given project-space
CompoundsApi$GetCompoundsPage(
project_id,
search_query = NULL,
page = 0,
size = 20,
sort = NULL,
ms_data_search_prepared = FALSE,
opt_fields = list("none"),
opt_fields_features = list("none"),
data_file = NULL,
...
)project_idproject-space to read from.
search_query(optional) Optional search query in lucene syntax. Not yet supported for compounds; a non-empty query responds with 405 METHOD_NOT_ALLOWED. Omit this parameter to page over all compounds.
page(optional) Zero-based page index (0..N) (default value: 0)
size(optional) The size of the page to be returned (default value: 20)
sort(optional) Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
ms_data_search_prepared(optional) Returns all fragment spectra in a preprocessed form as used for fast Cosine/Modified Cosine computation. Gives you spectra compatible with SpectralLibraryMatch peak assignments and reference spectra. (default value: FALSE)
opt_fields(optional) set of optional fields to be included. Use 'none' only to override defaults. (default value: ["none"])
opt_fields_features(optional) No description (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
PagedModelCompound
GetCompoundsPageWithHttpInfo()
Page of available compounds (group of ion identities) in the given project-space
CompoundsApi$GetCompoundsPageWithHttpInfo(
project_id,
search_query = NULL,
page = 0,
size = 20,
sort = NULL,
ms_data_search_prepared = FALSE,
opt_fields = list("none"),
opt_fields_features = list("none"),
data_file = NULL,
...
)project_idproject-space to read from.
search_query(optional) Optional search query in lucene syntax. Not yet supported for compounds; a non-empty query responds with 405 METHOD_NOT_ALLOWED. Omit this parameter to page over all compounds.
page(optional) Zero-based page index (0..N) (default value: 0)
size(optional) The size of the page to be returned (default value: 20)
sort(optional) Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
ms_data_search_prepared(optional) Returns all fragment spectra in a preprocessed form as used for fast Cosine/Modified Cosine computation. Gives you spectra compatible with SpectralLibraryMatch peak assignments and reference spectra. (default value: FALSE)
opt_fields(optional) set of optional fields to be included. Use 'none' only to override defaults. (default value: ["none"])
opt_fields_features(optional) No description (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (PagedModelCompound) with additional information such as HTTP status code, headers
GetCompoundsSearchableFields()
Get all fields that can be used in the searchQuery parameter of compound endpoints
CompoundsApi$GetCompoundsSearchableFields(project_id, data_file = NULL, ...)
project_idproject space to read the searchable compound fields from.
data_file(optional) name of the data file to save the result
...Other optional arguments
array[SearchableField]
GetCompoundsSearchableFieldsWithHttpInfo()
Get all fields that can be used in the searchQuery parameter of compound endpoints
CompoundsApi$GetCompoundsSearchableFieldsWithHttpInfo( project_id, data_file = NULL, ... )
project_idproject space to read the searchable compound fields from.
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (array[SearchableField]) with additional information such as HTTP status code, headers
clone()
The objects of this class are cloneable with this method.
CompoundsApi$clone(deep = FALSE)
deepWhether to make a deep clone.
## Not run: #################### AddCompounds #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to import into. var_compound_import <- c(CompoundImport$new(c(FeatureImport$new(123, 123, "name_example", "externalFeatureId_example", c("detectedAdducts_example"), 123, 123, 123, "NOT_APPLICABLE", BasicSpectrum$new("cosineQuery_example", c(SimplePeak$new(123, 123)), "name_example", 123, "collisionEnergy_example", "instrument_example", 123, 123, SimplePeak$new(123, 123), 123, 123, 123, 123, 123), c(BasicSpectrum$new("cosineQuery_example", c(SimplePeak$new(..., ...)), "name_example", 123, "collisionEnergy_example", "instrument_example", 123, 123, SimplePeak$new(123, 123), 123, 123, 123, 123, 123)), c(BasicSpectrum$new("cosineQuery_example", c(SimplePeak$new(..., ...)), "name_example", 123, "collisionEnergy_example", "instrument_example", 123, 123, SimplePeak$new(123, 123), 123, 123, 123, 123, 123)))), "name_example")) # array[CompoundImport] | the compound data to be imported var_profile <- "profile_example" # character | profile describing the instrument used to measure the data. Used to merge spectra. (Optional) var_opt_fields <- c("none") # array[character] | set of optional fields to be included. Use 'none' to override defaults. (Optional) var_opt_fields_features <- c("none") # array[character] | set of optional fields of the nested features to be included. Use 'none' to override defaults. (Optional) #Import compounds and their contained features. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$AddCompounds(var_project_id, var_compound_import, profile = var_profile, opt_fields = var_opt_fields, opt_fields_features = var_opt_fields_featuresdata_file = "result.txt") result <- api_instance$compounds_api$AddCompounds(var_project_id, var_compound_import, profile = var_profile, opt_fields = var_opt_fields, opt_fields_features = var_opt_fields_features) dput(result) #################### DeleteCompound #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to delete from. var_compound_id <- "compound_id_example" # character | identifier of the compound to delete. #Delete compound (group of ion identities) with the given identifier (and the included features) from the specified project-space. api_instance <- rsirius_api$new() api_instance$compounds_api$DeleteCompound(var_project_id, var_compound_id) #################### GetCompound #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_compound_id <- "compound_id_example" # character | identifier of the compound (group of ion identities) to access. var_ms_data_search_prepared <- FALSE # character | Returns all fragment spectra in a preprocessed form as used for fast Cosine/Modified Cosine computation. Gives you spectra compatible with SpectralLibraryMatch peak assignments and reference spectra. (Optional) var_opt_fields <- c("none") # array[character] | set of optional fields to be included. Use 'none' only to override defaults. (Optional) var_opt_fields_features <- c("none") # array[character] | (Optional) #Get compound (group of ion identities) with the given identifier from the specified project-space. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetCompound(var_project_id, var_compound_id, ms_data_search_prepared = var_ms_data_search_prepared, opt_fields = var_opt_fields, opt_fields_features = var_opt_fields_featuresdata_file = "result.txt") result <- api_instance$compounds_api$GetCompound(var_project_id, var_compound_id, ms_data_search_prepared = var_ms_data_search_prepared, opt_fields = var_opt_fields, opt_fields_features = var_opt_fields_features) dput(result) #################### GetCompoundQuantTable #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_search_query <- "search_query_example" # character | Optional query in lucene syntax selecting compounds by id. Omit this parameter to quantify all compounds. (Optional) var_type <- "APEX_INTENSITY" # character | quantification type. (Optional) var_opt_fields <- c(QuantTableOptField$new()) # array[QuantTableOptField] | (Optional) #Returns the full quantification table of compounds api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetCompoundQuantTable(var_project_id, search_query = var_search_query, type = var_type, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$compounds_api$GetCompoundQuantTable(var_project_id, search_query = var_search_query, type = var_type, opt_fields = var_opt_fields) dput(result) #################### GetCompounds #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_ms_data_search_prepared <- FALSE # character | Returns all fragment spectra in a preprocessed form as used for fast Cosine/Modified Cosine computation. Gives you spectra compatible with SpectralLibraryMatch peak assignments and reference spectra. (Optional) var_opt_fields <- c("none") # array[character] | set of optional fields to be included. Use 'none' only to override defaults. (Optional) var_opt_fields_features <- c("none") # array[character] | (Optional) #[DEPRECATED] List of all available compounds (group of ion identities) in the given project-space api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetCompounds(var_project_id, ms_data_search_prepared = var_ms_data_search_prepared, opt_fields = var_opt_fields, opt_fields_features = var_opt_fields_featuresdata_file = "result.txt") result <- api_instance$compounds_api$GetCompounds(var_project_id, ms_data_search_prepared = var_ms_data_search_prepared, opt_fields = var_opt_fields, opt_fields_features = var_opt_fields_features) dput(result) #################### GetCompoundsPage #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_search_query <- "search_query_example" # character | Optional search query in lucene syntax. Not yet supported for compounds; a non-empty query responds with 405 METHOD_NOT_ALLOWED. Omit this parameter to page over all compounds. (Optional) var_page <- 0 # integer | Zero-based page index (0..N) (Optional) var_size <- 20 # integer | The size of the page to be returned (Optional) var_sort <- c("inner_example") # array[character] | Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. (Optional) var_ms_data_search_prepared <- FALSE # character | Returns all fragment spectra in a preprocessed form as used for fast Cosine/Modified Cosine computation. Gives you spectra compatible with SpectralLibraryMatch peak assignments and reference spectra. (Optional) var_opt_fields <- c("none") # array[character] | set of optional fields to be included. Use 'none' only to override defaults. (Optional) var_opt_fields_features <- c("none") # array[character] | (Optional) #Page of available compounds (group of ion identities) in the given project-space api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetCompoundsPage(var_project_id, search_query = var_search_query, page = var_page, size = var_size, sort = var_sort, ms_data_search_prepared = var_ms_data_search_prepared, opt_fields = var_opt_fields, opt_fields_features = var_opt_fields_featuresdata_file = "result.txt") result <- api_instance$compounds_api$GetCompoundsPage(var_project_id, search_query = var_search_query, page = var_page, size = var_size, sort = var_sort, ms_data_search_prepared = var_ms_data_search_prepared, opt_fields = var_opt_fields, opt_fields_features = var_opt_fields_features) dput(result) #################### GetCompoundsSearchableFields #################### library(RSirius) var_project_id <- "project_id_example" # character | project space to read the searchable compound fields from. #Get all fields that can be used in the searchQuery parameter of compound endpoints api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetCompoundsSearchableFields(var_project_iddata_file = "result.txt") result <- api_instance$compounds_api$GetCompoundsSearchableFields(var_project_id) dput(result) ## End(Not run)## Not run: #################### AddCompounds #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to import into. var_compound_import <- c(CompoundImport$new(c(FeatureImport$new(123, 123, "name_example", "externalFeatureId_example", c("detectedAdducts_example"), 123, 123, 123, "NOT_APPLICABLE", BasicSpectrum$new("cosineQuery_example", c(SimplePeak$new(123, 123)), "name_example", 123, "collisionEnergy_example", "instrument_example", 123, 123, SimplePeak$new(123, 123), 123, 123, 123, 123, 123), c(BasicSpectrum$new("cosineQuery_example", c(SimplePeak$new(..., ...)), "name_example", 123, "collisionEnergy_example", "instrument_example", 123, 123, SimplePeak$new(123, 123), 123, 123, 123, 123, 123)), c(BasicSpectrum$new("cosineQuery_example", c(SimplePeak$new(..., ...)), "name_example", 123, "collisionEnergy_example", "instrument_example", 123, 123, SimplePeak$new(123, 123), 123, 123, 123, 123, 123)))), "name_example")) # array[CompoundImport] | the compound data to be imported var_profile <- "profile_example" # character | profile describing the instrument used to measure the data. Used to merge spectra. (Optional) var_opt_fields <- c("none") # array[character] | set of optional fields to be included. Use 'none' to override defaults. (Optional) var_opt_fields_features <- c("none") # array[character] | set of optional fields of the nested features to be included. Use 'none' to override defaults. (Optional) #Import compounds and their contained features. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$AddCompounds(var_project_id, var_compound_import, profile = var_profile, opt_fields = var_opt_fields, opt_fields_features = var_opt_fields_featuresdata_file = "result.txt") result <- api_instance$compounds_api$AddCompounds(var_project_id, var_compound_import, profile = var_profile, opt_fields = var_opt_fields, opt_fields_features = var_opt_fields_features) dput(result) #################### DeleteCompound #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to delete from. var_compound_id <- "compound_id_example" # character | identifier of the compound to delete. #Delete compound (group of ion identities) with the given identifier (and the included features) from the specified project-space. api_instance <- rsirius_api$new() api_instance$compounds_api$DeleteCompound(var_project_id, var_compound_id) #################### GetCompound #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_compound_id <- "compound_id_example" # character | identifier of the compound (group of ion identities) to access. var_ms_data_search_prepared <- FALSE # character | Returns all fragment spectra in a preprocessed form as used for fast Cosine/Modified Cosine computation. Gives you spectra compatible with SpectralLibraryMatch peak assignments and reference spectra. (Optional) var_opt_fields <- c("none") # array[character] | set of optional fields to be included. Use 'none' only to override defaults. (Optional) var_opt_fields_features <- c("none") # array[character] | (Optional) #Get compound (group of ion identities) with the given identifier from the specified project-space. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetCompound(var_project_id, var_compound_id, ms_data_search_prepared = var_ms_data_search_prepared, opt_fields = var_opt_fields, opt_fields_features = var_opt_fields_featuresdata_file = "result.txt") result <- api_instance$compounds_api$GetCompound(var_project_id, var_compound_id, ms_data_search_prepared = var_ms_data_search_prepared, opt_fields = var_opt_fields, opt_fields_features = var_opt_fields_features) dput(result) #################### GetCompoundQuantTable #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_search_query <- "search_query_example" # character | Optional query in lucene syntax selecting compounds by id. Omit this parameter to quantify all compounds. (Optional) var_type <- "APEX_INTENSITY" # character | quantification type. (Optional) var_opt_fields <- c(QuantTableOptField$new()) # array[QuantTableOptField] | (Optional) #Returns the full quantification table of compounds api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetCompoundQuantTable(var_project_id, search_query = var_search_query, type = var_type, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$compounds_api$GetCompoundQuantTable(var_project_id, search_query = var_search_query, type = var_type, opt_fields = var_opt_fields) dput(result) #################### GetCompounds #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_ms_data_search_prepared <- FALSE # character | Returns all fragment spectra in a preprocessed form as used for fast Cosine/Modified Cosine computation. Gives you spectra compatible with SpectralLibraryMatch peak assignments and reference spectra. (Optional) var_opt_fields <- c("none") # array[character] | set of optional fields to be included. Use 'none' only to override defaults. (Optional) var_opt_fields_features <- c("none") # array[character] | (Optional) #[DEPRECATED] List of all available compounds (group of ion identities) in the given project-space api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetCompounds(var_project_id, ms_data_search_prepared = var_ms_data_search_prepared, opt_fields = var_opt_fields, opt_fields_features = var_opt_fields_featuresdata_file = "result.txt") result <- api_instance$compounds_api$GetCompounds(var_project_id, ms_data_search_prepared = var_ms_data_search_prepared, opt_fields = var_opt_fields, opt_fields_features = var_opt_fields_features) dput(result) #################### GetCompoundsPage #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_search_query <- "search_query_example" # character | Optional search query in lucene syntax. Not yet supported for compounds; a non-empty query responds with 405 METHOD_NOT_ALLOWED. Omit this parameter to page over all compounds. (Optional) var_page <- 0 # integer | Zero-based page index (0..N) (Optional) var_size <- 20 # integer | The size of the page to be returned (Optional) var_sort <- c("inner_example") # array[character] | Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. (Optional) var_ms_data_search_prepared <- FALSE # character | Returns all fragment spectra in a preprocessed form as used for fast Cosine/Modified Cosine computation. Gives you spectra compatible with SpectralLibraryMatch peak assignments and reference spectra. (Optional) var_opt_fields <- c("none") # array[character] | set of optional fields to be included. Use 'none' only to override defaults. (Optional) var_opt_fields_features <- c("none") # array[character] | (Optional) #Page of available compounds (group of ion identities) in the given project-space api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetCompoundsPage(var_project_id, search_query = var_search_query, page = var_page, size = var_size, sort = var_sort, ms_data_search_prepared = var_ms_data_search_prepared, opt_fields = var_opt_fields, opt_fields_features = var_opt_fields_featuresdata_file = "result.txt") result <- api_instance$compounds_api$GetCompoundsPage(var_project_id, search_query = var_search_query, page = var_page, size = var_size, sort = var_sort, ms_data_search_prepared = var_ms_data_search_prepared, opt_fields = var_opt_fields, opt_fields_features = var_opt_fields_features) dput(result) #################### GetCompoundsSearchableFields #################### library(RSirius) var_project_id <- "project_id_example" # character | project space to read the searchable compound fields from. #Get all fields that can be used in the searchQuery parameter of compound endpoints api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetCompoundsSearchableFields(var_project_iddata_file = "result.txt") result <- api_instance$compounds_api$GetCompoundsSearchableFields(var_project_id) dput(result) ## End(Not run)
Specifies which tools have been executed for the feature. Can be used to estimate which results can be expected. Null if it was not requested and non-null otherwise.
ComputedSubtools Class
An R6Class generator object
Create a new ComputedSubtools
librarySearchcharacter [optional]
formulaSearchcharacter [optional]
zodiaccharacter [optional]
fingerprintcharacter [optional]
canopuscharacter [optional]
structureSearchcharacter [optional]
deNovoSearchcharacter [optional]
new()
Initialize a new ComputedSubtools class.
ComputedSubtools$new( librarySearch = NULL, formulaSearch = NULL, zodiac = NULL, fingerprint = NULL, canopus = NULL, structureSearch = NULL, deNovoSearch = NULL, ... )
librarySearchlibrarySearch
formulaSearchformulaSearch
zodiaczodiac
fingerprintfingerprint
canopuscanopus
structureSearchstructureSearch
deNovoSearchdeNovoSearch
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
ComputedSubtools$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
ComputedSubtools$toList()
ComputedSubtools as a base R list.
# convert array of ComputedSubtools (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert ComputedSubtools to a base R type
ComputedSubtools$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of ComputedSubtools
ComputedSubtools$fromJSON(input_json)
input_jsonthe JSON input
the instance of ComputedSubtools
toJSONString()
To JSON String
ComputedSubtools$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
ComputedSubtools in JSON format
fromJSONString()
Deserialize JSON string into an instance of ComputedSubtools
ComputedSubtools$fromJSONString(input_json)
input_jsonthe JSON input
the instance of ComputedSubtools
validateJSON()
Validate JSON input with respect to ComputedSubtools and throw an exception if invalid
ComputedSubtools$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
ComputedSubtools$toString()
String representation of ComputedSubtools
isValid()
Return true if the values in all fields are valid.
ComputedSubtools$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
ComputedSubtools$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
ComputedSubtools$print()
clone()
The objects of this class are cloneable with this method.
ComputedSubtools$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `ComputedSubtools$toList` ## ------------------------------------------------ # convert array of ComputedSubtools (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `ComputedSubtools$toList` ## ------------------------------------------------ # convert array of ComputedSubtools (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
ConnectionCheck Class
ConnectionCheck Class
An R6Class generator object
Create a new ConnectionCheck
licenseInfoerrorsList of errors ordered by significance. First error should be reported and addressed first. Following errors might just be follow-up errors list(ConnectionError)
new()
Initialize a new ConnectionCheck class.
ConnectionCheck$new(licenseInfo, errors, ...)
licenseInfolicenseInfo
errorsList of errors ordered by significance. First error should be reported and addressed first. Following errors might just be follow-up errors
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
ConnectionCheck$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
ConnectionCheck$toList()
ConnectionCheck as a base R list.
# convert array of ConnectionCheck (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert ConnectionCheck to a base R type
ConnectionCheck$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of ConnectionCheck
ConnectionCheck$fromJSON(input_json)
input_jsonthe JSON input
the instance of ConnectionCheck
toJSONString()
To JSON String
ConnectionCheck$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
ConnectionCheck in JSON format
fromJSONString()
Deserialize JSON string into an instance of ConnectionCheck
ConnectionCheck$fromJSONString(input_json)
input_jsonthe JSON input
the instance of ConnectionCheck
validateJSON()
Validate JSON input with respect to ConnectionCheck and throw an exception if invalid
ConnectionCheck$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
ConnectionCheck$toString()
String representation of ConnectionCheck
isValid()
Return true if the values in all fields are valid.
ConnectionCheck$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
ConnectionCheck$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
ConnectionCheck$print()
clone()
The objects of this class are cloneable with this method.
ConnectionCheck$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `ConnectionCheck$toList` ## ------------------------------------------------ # convert array of ConnectionCheck (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `ConnectionCheck$toList` ## ------------------------------------------------ # convert array of ConnectionCheck (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
ConnectionError Class
ConnectionError Class
An R6Class generator object
Create a new ConnectionError
errorTypecharacter
errorKlasscharacter
siriusErrorCodeinteger
siriusMessagecharacter
serverResponseErrorCodeinteger [optional]
serverResponseErrorMessagecharacter [optional]
errorcharacter [optional]
warningcharacter [optional]
new()
Initialize a new ConnectionError class.
ConnectionError$new( errorType, errorKlass, siriusErrorCode, siriusMessage, serverResponseErrorCode = NULL, serverResponseErrorMessage = NULL, error = NULL, warning = NULL, ... )
errorTypeerrorType
errorKlasserrorKlass
siriusErrorCodesiriusErrorCode
siriusMessagesiriusMessage
serverResponseErrorCodeserverResponseErrorCode
serverResponseErrorMessageserverResponseErrorMessage
errorerror
warningwarning
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
ConnectionError$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
ConnectionError$toList()
ConnectionError as a base R list.
# convert array of ConnectionError (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert ConnectionError to a base R type
ConnectionError$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of ConnectionError
ConnectionError$fromJSON(input_json)
input_jsonthe JSON input
the instance of ConnectionError
toJSONString()
To JSON String
ConnectionError$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
ConnectionError in JSON format
fromJSONString()
Deserialize JSON string into an instance of ConnectionError
ConnectionError$fromJSONString(input_json)
input_jsonthe JSON input
the instance of ConnectionError
validateJSON()
Validate JSON input with respect to ConnectionError and throw an exception if invalid
ConnectionError$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
ConnectionError$toString()
String representation of ConnectionError
isValid()
Return true if the values in all fields are valid.
ConnectionError$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
ConnectionError$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
ConnectionError$print()
clone()
The objects of this class are cloneable with this method.
ConnectionError$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `ConnectionError$toList` ## ------------------------------------------------ # convert array of ConnectionError (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `ConnectionError$toList` ## ------------------------------------------------ # convert array of ConnectionError (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
ConsensusAnnotationsCSI Class
ConsensusAnnotationsCSI Class
An R6Class generator object
Create a new ConsensusAnnotationsCSI
selectionCriterionNull if this is a custom selection character [optional]
csiFingerIdStructureStructureCandidate [optional]
confidenceExactMatchConfidence value that represents the certainty that reported consensus structure is exactly the measured one If multiple features support this consensus structure the maximum confidence is reported numeric [optional]
confidenceApproxMatchConfidence value that represents the certainty that the exact consensus structure or a very similar structure (e.g. measured by Maximum Common Edge Subgraph Distance) is the measured one. If multiple features support this consensus structure the maximum confidence is reported numeric [optional]
molecularFormulaMolecular formula of the consensus annotation Might be null if no consensus formula is available. character [optional]
compoundClassesCompoundClasses [optional]
supportingFeatureIdsFeatureIds where the topAnnotation supports this annotation. list(character) [optional]
new()
Initialize a new ConsensusAnnotationsCSI class.
ConsensusAnnotationsCSI$new( selectionCriterion = NULL, csiFingerIdStructure = NULL, confidenceExactMatch = NULL, confidenceApproxMatch = NULL, molecularFormula = NULL, compoundClasses = NULL, supportingFeatureIds = NULL, ... )
selectionCriterionNull if this is a custom selection
csiFingerIdStructurecsiFingerIdStructure
confidenceExactMatchConfidence value that represents the certainty that reported consensus structure is exactly the measured one If multiple features support this consensus structure the maximum confidence is reported
confidenceApproxMatchConfidence value that represents the certainty that the exact consensus structure or a very similar structure (e.g. measured by Maximum Common Edge Subgraph Distance) is the measured one. If multiple features support this consensus structure the maximum confidence is reported
molecularFormulaMolecular formula of the consensus annotation Might be null if no consensus formula is available.
compoundClassescompoundClasses
supportingFeatureIdsFeatureIds where the topAnnotation supports this annotation.
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
ConsensusAnnotationsCSI$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
ConsensusAnnotationsCSI$toList()
ConsensusAnnotationsCSI as a base R list.
# convert array of ConsensusAnnotationsCSI (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert ConsensusAnnotationsCSI to a base R type
ConsensusAnnotationsCSI$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of ConsensusAnnotationsCSI
ConsensusAnnotationsCSI$fromJSON(input_json)
input_jsonthe JSON input
the instance of ConsensusAnnotationsCSI
toJSONString()
To JSON String
ConsensusAnnotationsCSI$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
ConsensusAnnotationsCSI in JSON format
fromJSONString()
Deserialize JSON string into an instance of ConsensusAnnotationsCSI
ConsensusAnnotationsCSI$fromJSONString(input_json)
input_jsonthe JSON input
the instance of ConsensusAnnotationsCSI
validateJSON()
Validate JSON input with respect to ConsensusAnnotationsCSI and throw an exception if invalid
ConsensusAnnotationsCSI$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
ConsensusAnnotationsCSI$toString()
String representation of ConsensusAnnotationsCSI
isValid()
Return true if the values in all fields are valid.
ConsensusAnnotationsCSI$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
ConsensusAnnotationsCSI$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
ConsensusAnnotationsCSI$print()
clone()
The objects of this class are cloneable with this method.
ConsensusAnnotationsCSI$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `ConsensusAnnotationsCSI$toList` ## ------------------------------------------------ # convert array of ConsensusAnnotationsCSI (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `ConsensusAnnotationsCSI$toList` ## ------------------------------------------------ # convert array of ConsensusAnnotationsCSI (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
ConsensusAnnotationsDeNovo Class
ConsensusAnnotationsDeNovo Class
An R6Class generator object
Create a new ConsensusAnnotationsDeNovo
selectionCriterionCriterion that was used to select the consensus annotation. character [optional]
molecularFormulaMolecular formula of the consensus annotation Might be null if no consensus formula is available. character [optional]
compoundClassesCompoundClasses [optional]
supportingFeatureIdsFeatureIds where the topAnnotation supports this annotation. list(character) [optional]
new()
Initialize a new ConsensusAnnotationsDeNovo class.
ConsensusAnnotationsDeNovo$new( selectionCriterion = NULL, molecularFormula = NULL, compoundClasses = NULL, supportingFeatureIds = NULL, ... )
selectionCriterionCriterion that was used to select the consensus annotation.
molecularFormulaMolecular formula of the consensus annotation Might be null if no consensus formula is available.
compoundClassescompoundClasses
supportingFeatureIdsFeatureIds where the topAnnotation supports this annotation.
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
ConsensusAnnotationsDeNovo$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
ConsensusAnnotationsDeNovo$toList()
ConsensusAnnotationsDeNovo as a base R list.
# convert array of ConsensusAnnotationsDeNovo (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert ConsensusAnnotationsDeNovo to a base R type
ConsensusAnnotationsDeNovo$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of ConsensusAnnotationsDeNovo
ConsensusAnnotationsDeNovo$fromJSON(input_json)
input_jsonthe JSON input
the instance of ConsensusAnnotationsDeNovo
toJSONString()
To JSON String
ConsensusAnnotationsDeNovo$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
ConsensusAnnotationsDeNovo in JSON format
fromJSONString()
Deserialize JSON string into an instance of ConsensusAnnotationsDeNovo
ConsensusAnnotationsDeNovo$fromJSONString(input_json)
input_jsonthe JSON input
the instance of ConsensusAnnotationsDeNovo
validateJSON()
Validate JSON input with respect to ConsensusAnnotationsDeNovo and throw an exception if invalid
ConsensusAnnotationsDeNovo$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
ConsensusAnnotationsDeNovo$toString()
String representation of ConsensusAnnotationsDeNovo
isValid()
Return true if the values in all fields are valid.
ConsensusAnnotationsDeNovo$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
ConsensusAnnotationsDeNovo$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
ConsensusAnnotationsDeNovo$print()
clone()
The objects of this class are cloneable with this method.
ConsensusAnnotationsDeNovo$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `ConsensusAnnotationsDeNovo$toList` ## ------------------------------------------------ # convert array of ConsensusAnnotationsDeNovo (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `ConsensusAnnotationsDeNovo$toList` ## ------------------------------------------------ # convert array of ConsensusAnnotationsDeNovo (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
DataImportEvent Class
DataImportEvent Class
An R6Class generator object
Create a new DataImportEvent
importJobIdcharacter [optional]
importedCompoundIdslist(character)
importedFeatureIdslist(character)
new()
Initialize a new DataImportEvent class.
DataImportEvent$new( importedCompoundIds, importedFeatureIds, importJobId = NULL, ... )
importedCompoundIdsimportedCompoundIds
importedFeatureIdsimportedFeatureIds
importJobIdimportJobId
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
DataImportEvent$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
DataImportEvent$toList()
DataImportEvent as a base R list.
# convert array of DataImportEvent (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert DataImportEvent to a base R type
DataImportEvent$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of DataImportEvent
DataImportEvent$fromJSON(input_json)
input_jsonthe JSON input
the instance of DataImportEvent
toJSONString()
To JSON String
DataImportEvent$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
DataImportEvent in JSON format
fromJSONString()
Deserialize JSON string into an instance of DataImportEvent
DataImportEvent$fromJSONString(input_json)
input_jsonthe JSON input
the instance of DataImportEvent
validateJSON()
Validate JSON input with respect to DataImportEvent and throw an exception if invalid
DataImportEvent$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
DataImportEvent$toString()
String representation of DataImportEvent
isValid()
Return true if the values in all fields are valid.
DataImportEvent$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
DataImportEvent$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
DataImportEvent$print()
clone()
The objects of this class are cloneable with this method.
DataImportEvent$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `DataImportEvent$toList` ## ------------------------------------------------ # convert array of DataImportEvent (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `DataImportEvent$toList` ## ------------------------------------------------ # convert array of DataImportEvent (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
DBLink Class
DBLink Class
An R6Class generator object
Create a new DBLink
namecharacter
idcharacter [optional]
new()
Initialize a new DBLink class.
DBLink$new(name, id = NULL, ...)
namename
idid
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
DBLink$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
DBLink$toList()
DBLink as a base R list.
# convert array of DBLink (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert DBLink to a base R type
DBLink$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of DBLink
DBLink$fromJSON(input_json)
input_jsonthe JSON input
the instance of DBLink
toJSONString()
To JSON String
DBLink$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
DBLink in JSON format
fromJSONString()
Deserialize JSON string into an instance of DBLink
DBLink$fromJSONString(input_json)
input_jsonthe JSON input
the instance of DBLink
validateJSON()
Validate JSON input with respect to DBLink and throw an exception if invalid
DBLink$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
DBLink$toString()
String representation of DBLink
isValid()
Return true if the values in all fields are valid.
DBLink$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
DBLink$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
DBLink$print()
clone()
The objects of this class are cloneable with this method.
DBLink$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `DBLink$toList` ## ------------------------------------------------ # convert array of DBLink (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `DBLink$toList` ## ------------------------------------------------ # convert array of DBLink (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
Deviation Class
Deviation Class
An R6Class generator object
Create a new Deviation
ppmnumeric [optional]
absolutenumeric [optional]
new()
Initialize a new Deviation class.
Deviation$new(ppm = NULL, absolute = NULL, ...)
ppmppm
absoluteabsolute
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
Deviation$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
Deviation$toList()
Deviation as a base R list.
# convert array of Deviation (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert Deviation to a base R type
Deviation$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of Deviation
Deviation$fromJSON(input_json)
input_jsonthe JSON input
the instance of Deviation
toJSONString()
To JSON String
Deviation$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
Deviation in JSON format
fromJSONString()
Deserialize JSON string into an instance of Deviation
Deviation$fromJSONString(input_json)
input_jsonthe JSON input
the instance of Deviation
validateJSON()
Validate JSON input with respect to Deviation and throw an exception if invalid
Deviation$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
Deviation$toString()
String representation of Deviation
isValid()
Return true if the values in all fields are valid.
Deviation$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
Deviation$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
Deviation$print()
clone()
The objects of this class are cloneable with this method.
Deviation$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `Deviation$toList` ## ------------------------------------------------ # convert array of Deviation (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `Deviation$toList` ## ------------------------------------------------ # convert array of Deviation (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
A feature as it has been detected in one single run, in contrast to an AlignedFeature which combines the features of the same compound over all runs it was detected in. <p> It provides the properties that are specific to the run it was detected in, such as its position on the retention time axis of that run and its quantity within that run.
Feature Class
An R6Class generator object
Create a new Feature
featureIdIdentifier character [optional]
alignedFeatureIdID of the AlignedFeature this feature belongs to character [optional]
runIdID of the run this feature belongs to character [optional]
averageMzAverage m/z over the whole feature numeric [optional]
apexMzm/z at the apex of the feature, the m/z this feature was measured at in its run numeric [optional]
rtStartSecondsStart of the feature on the retention time axis in seconds numeric [optional]
rtEndSecondsEnd of the feature on the retention time axis in seconds numeric [optional]
rtApexSecondsApex of the feature on the retention time axis in seconds numeric [optional]
rtFwhmSecondsFull width at half maximum of the feature on the retention time axis in seconds numeric [optional]
apexIntensityFeature quantity measured as the intensity of the apex of the feature numeric [optional]
areaUnderCurveFeature quantity measured as the area under the curve of the whole feature numeric [optional]
new()
Initialize a new Feature class.
Feature$new( featureId = NULL, alignedFeatureId = NULL, runId = NULL, averageMz = NULL, apexMz = NULL, rtStartSeconds = NULL, rtEndSeconds = NULL, rtApexSeconds = NULL, rtFwhmSeconds = NULL, apexIntensity = NULL, areaUnderCurve = NULL, ... )
featureIdIdentifier
alignedFeatureIdID of the AlignedFeature this feature belongs to
runIdID of the run this feature belongs to
averageMzAverage m/z over the whole feature
apexMzm/z at the apex of the feature, the m/z this feature was measured at in its run
rtStartSecondsStart of the feature on the retention time axis in seconds
rtEndSecondsEnd of the feature on the retention time axis in seconds
rtApexSecondsApex of the feature on the retention time axis in seconds
rtFwhmSecondsFull width at half maximum of the feature on the retention time axis in seconds
apexIntensityFeature quantity measured as the intensity of the apex of the feature
areaUnderCurveFeature quantity measured as the area under the curve of the whole feature
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
Feature$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
Feature$toList()
Feature as a base R list.
# convert array of Feature (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert Feature to a base R type
Feature$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of Feature
Feature$fromJSON(input_json)
input_jsonthe JSON input
the instance of Feature
toJSONString()
To JSON String
Feature$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
Feature in JSON format
fromJSONString()
Deserialize JSON string into an instance of Feature
Feature$fromJSONString(input_json)
input_jsonthe JSON input
the instance of Feature
validateJSON()
Validate JSON input with respect to Feature and throw an exception if invalid
Feature$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
Feature$toString()
String representation of Feature
isValid()
Return true if the values in all fields are valid.
Feature$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
Feature$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
Feature$print()
clone()
The objects of this class are cloneable with this method.
Feature$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `Feature$toList` ## ------------------------------------------------ # convert array of Feature (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `Feature$toList` ## ------------------------------------------------ # convert array of Feature (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
Summary of the results of a feature (aligned over runs). Can be added to a AlignedFeature. The different annotation fields within this summary object are null if the corresponding feature does not contain the represented results. If fields are non-null the corresponding result has been computed but might still be empty.
FeatureAnnotations Class
An R6Class generator object
Create a new FeatureAnnotations
formulaAnnotationFormulaCandidate [optional]
structureAnnotationStructureCandidateScored [optional]
compoundClassAnnotationCompoundClasses [optional]
confidenceExactMatchConfidence Score that represents the confidence whether the top hit is correct. numeric [optional]
confidenceApproxMatchConfidence Score that represents the confidence whether the top hit or a very similar hit (estimated by MCES distance) is correct. numeric [optional]
expansiveSearchStateResult that shows if structure annotation was expanded by using PubChem as fallback and if so, which confidence mode was used (as per input parameter) character [optional]
specifiedDatabasesList of databases that have been specified for structure db search. Null if no structure db search has been performed. list(character) [optional]
expandedDatabasesList of databases that have been used to expand search space during expansive search. Null if no structure db search has been performed. list(character) [optional]
new()
Initialize a new FeatureAnnotations class.
FeatureAnnotations$new( formulaAnnotation = NULL, structureAnnotation = NULL, compoundClassAnnotation = NULL, confidenceExactMatch = NULL, confidenceApproxMatch = NULL, expansiveSearchState = NULL, specifiedDatabases = NULL, expandedDatabases = NULL, ... )
formulaAnnotationformulaAnnotation
structureAnnotationstructureAnnotation
compoundClassAnnotationcompoundClassAnnotation
confidenceExactMatchConfidence Score that represents the confidence whether the top hit is correct.
confidenceApproxMatchConfidence Score that represents the confidence whether the top hit or a very similar hit (estimated by MCES distance) is correct.
expansiveSearchStateResult that shows if structure annotation was expanded by using PubChem as fallback and if so, which confidence mode was used (as per input parameter)
specifiedDatabasesList of databases that have been specified for structure db search. Null if no structure db search has been performed.
expandedDatabasesList of databases that have been used to expand search space during expansive search. Null if no structure db search has been performed.
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
FeatureAnnotations$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
FeatureAnnotations$toList()
FeatureAnnotations as a base R list.
# convert array of FeatureAnnotations (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert FeatureAnnotations to a base R type
FeatureAnnotations$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of FeatureAnnotations
FeatureAnnotations$fromJSON(input_json)
input_jsonthe JSON input
the instance of FeatureAnnotations
toJSONString()
To JSON String
FeatureAnnotations$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
FeatureAnnotations in JSON format
fromJSONString()
Deserialize JSON string into an instance of FeatureAnnotations
FeatureAnnotations$fromJSONString(input_json)
input_jsonthe JSON input
the instance of FeatureAnnotations
validateJSON()
Validate JSON input with respect to FeatureAnnotations and throw an exception if invalid
FeatureAnnotations$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
FeatureAnnotations$toString()
String representation of FeatureAnnotations
isValid()
Return true if the values in all fields are valid.
FeatureAnnotations$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
FeatureAnnotations$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
FeatureAnnotations$print()
clone()
The objects of this class are cloneable with this method.
FeatureAnnotations$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `FeatureAnnotations$toList` ## ------------------------------------------------ # convert array of FeatureAnnotations (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `FeatureAnnotations$toList` ## ------------------------------------------------ # convert array of FeatureAnnotations (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
Represents an (aligned) feature to be imported into a SIRIUS project. At least one of the Mass Spec data sources (e.g. mergedMs1, ms1Spectra, ms2Spectra) needs to be given. Otherwise, the import will fail.
FeatureImport Class
An R6Class generator object
Create a new FeatureImport
namecharacter [optional]
externalFeatureIdExternally provided FeatureId (by some preprocessing tool). This FeatureId is NOT used by SIRIUS but is stored to ease mapping information back to the source. character [optional]
ionMassnumeric
chargeinteger
detectedAdductsDetected adducts of this feature. Can be NULL or empty if no adducts are known. list(character) [optional]
rtStartSecondsnumeric [optional]
rtEndSecondsnumeric [optional]
rtApexSecondsnumeric [optional]
dataQualityA optional feature quality flag that can be used to filter features to be shown in the gui or to be considered for further analysis. character [optional]
mergedMs1BasicSpectrum [optional]
ms1SpectraList of MS1Spectra belonging to this feature. These spectra will be merged and only a representative mergedMs1 spectrum will be stored in SIRIUS. At least one of these spectra should contain the isotope pattern of the precursor ion. Note: Will be ignored if 'mergedMs1' is given. list(BasicSpectrum) [optional]
ms2SpectraList of MS/MS spectra that belong to this feature. list(BasicSpectrum) [optional]
new()
Initialize a new FeatureImport class.
FeatureImport$new( ionMass, charge, name = NULL, externalFeatureId = NULL, detectedAdducts = NULL, rtStartSeconds = NULL, rtEndSeconds = NULL, rtApexSeconds = NULL, dataQuality = NULL, mergedMs1 = NULL, ms1Spectra = NULL, ms2Spectra = NULL, ... )
ionMassionMass
chargecharge
namename
externalFeatureIdExternally provided FeatureId (by some preprocessing tool). This FeatureId is NOT used by SIRIUS but is stored to ease mapping information back to the source.
detectedAdductsDetected adducts of this feature. Can be NULL or empty if no adducts are known.
rtStartSecondsrtStartSeconds
rtEndSecondsrtEndSeconds
rtApexSecondsrtApexSeconds
dataQualityA optional feature quality flag that can be used to filter features to be shown in the gui or to be considered for further analysis.
mergedMs1mergedMs1
ms1SpectraList of MS1Spectra belonging to this feature. These spectra will be merged and only a representative mergedMs1 spectrum will be stored in SIRIUS. At least one of these spectra should contain the isotope pattern of the precursor ion. Note: Will be ignored if 'mergedMs1' is given.
ms2SpectraList of MS/MS spectra that belong to this feature.
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
FeatureImport$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
FeatureImport$toList()
FeatureImport as a base R list.
# convert array of FeatureImport (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert FeatureImport to a base R type
FeatureImport$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of FeatureImport
FeatureImport$fromJSON(input_json)
input_jsonthe JSON input
the instance of FeatureImport
toJSONString()
To JSON String
FeatureImport$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
FeatureImport in JSON format
fromJSONString()
Deserialize JSON string into an instance of FeatureImport
FeatureImport$fromJSONString(input_json)
input_jsonthe JSON input
the instance of FeatureImport
validateJSON()
Validate JSON input with respect to FeatureImport and throw an exception if invalid
FeatureImport$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
FeatureImport$toString()
String representation of FeatureImport
isValid()
Return true if the values in all fields are valid.
FeatureImport$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
FeatureImport$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
FeatureImport$print()
clone()
The objects of this class are cloneable with this method.
FeatureImport$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `FeatureImport$toList` ## ------------------------------------------------ # convert array of FeatureImport (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `FeatureImport$toList` ## ------------------------------------------------ # convert array of FeatureImport (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
FeaturesApi
An R6Class generator object
SIRIUS Nightsky API
REST API that provides the full functionality of SIRIUS and its web services as background service. It is intended as entry-point for scripting languages and software integration SDKs.This API is exposed by SIRIUS 6
The version of the OpenAPI document: 3.2 Generated by: https://openapi-generator.tech
api_clientHandles the client-server communication.
FeaturesApi$GetAlignedFeaturesSearchableFieldsWithHttpInfo()
FeaturesApi$GetDeNovoStructureCandidatesByFormulaWithHttpInfo()
FeaturesApi$GetDeNovoStructureCandidatesByFormulaPageWithHttpInfo()
FeaturesApi$GetStructureCandidatesByFormulaPageWithHttpInfo()
new()
Initialize a new FeaturesApi.
FeaturesApi$new(api_client)
api_clientAn instance of API client.
AddAlignedFeatures()
Import (aligned) features into the project.
FeaturesApi$AddAlignedFeatures(
project_id,
feature_import,
profile = NULL,
opt_fields = list("none"),
data_file = NULL,
...
)project_idproject-space to import into.
feature_importthe feature data to be imported
profile(optional) profile describing the instrument used to measure the data. Used to merge spectra.
opt_fields(optional) set of optional fields to be included. Use 'none' to override defaults. (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
array[AlignedFeature]
AddAlignedFeaturesWithHttpInfo()
Import (aligned) features into the project.
FeaturesApi$AddAlignedFeaturesWithHttpInfo(
project_id,
feature_import,
profile = NULL,
opt_fields = list("none"),
data_file = NULL,
...
)project_idproject-space to import into.
feature_importthe feature data to be imported
profile(optional) profile describing the instrument used to measure the data. Used to merge spectra.
opt_fields(optional) set of optional fields to be included. Use 'none' to override defaults. (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (array[AlignedFeature]) with additional information such as HTTP status code, headers
DeleteAlignedFeature()
Delete feature (aligned over runs) with the given identifier from the specified project-space.
FeaturesApi$DeleteAlignedFeature(project_id, aligned_feature_id, ...)
project_idproject-space to delete from.
aligned_feature_ididentifier of feature (aligned over runs) to delete.
...Other optional arguments
void
DeleteAlignedFeatureWithHttpInfo()
Delete feature (aligned over runs) with the given identifier from the specified project-space.
FeaturesApi$DeleteAlignedFeatureWithHttpInfo( project_id, aligned_feature_id, ... )
project_idproject-space to delete from.
aligned_feature_ididentifier of feature (aligned over runs) to delete.
...Other optional arguments
API response (void) with additional information such as HTTP status code, headers
DeleteAlignedFeatures()
Delete feature (aligned over runs) with the given identifier from the specified project-space.
FeaturesApi$DeleteAlignedFeatures(project_id, request_body, ...)
project_idproject-space to delete from.
request_body...Other optional arguments
void
DeleteAlignedFeaturesWithHttpInfo()
Delete feature (aligned over runs) with the given identifier from the specified project-space.
FeaturesApi$DeleteAlignedFeaturesWithHttpInfo(project_id, request_body, ...)
project_idproject-space to delete from.
request_body...Other optional arguments
API response (void) with additional information such as HTTP status code, headers
DeleteAlignedFeaturesByQuery()
Delete all features (aligned over runs) that match the given lucene search query from the specified project-space.
FeaturesApi$DeleteAlignedFeaturesByQuery(project_id, search_query, ...)
project_idproject-space to delete from.
search_querytag/text/range query in lucene syntax; must be non-empty (a blank query would match every feature).
...Other optional arguments
void
DeleteAlignedFeaturesByQueryWithHttpInfo()
Delete all features (aligned over runs) that match the given lucene search query from the specified project-space.
FeaturesApi$DeleteAlignedFeaturesByQueryWithHttpInfo( project_id, search_query, ... )
project_idproject-space to delete from.
search_querytag/text/range query in lucene syntax; must be non-empty (a blank query would match every feature).
...Other optional arguments
API response (void) with additional information such as HTTP status code, headers
GetAlignedFeature()
Get feature (aligned over runs) with the given identifier from the specified project-space.
FeaturesApi$GetAlignedFeature(
project_id,
aligned_feature_id,
ms_data_search_prepared = FALSE,
opt_fields = list("none"),
data_file = NULL,
...
)project_idproject-space to read from.
aligned_feature_ididentifier of feature (aligned over runs) to access.
ms_data_search_prepared(optional) Returns all fragment spectra in a preprocessed form as used for fast Cosine/Modified Cosine computation. Gives you spectra compatible with SpectralLibraryMatch peak assignments and reference spectra. (default value: FALSE)
opt_fields(optional) set of optional fields to be included. Use 'none' only to override defaults. (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
AlignedFeature
GetAlignedFeatureWithHttpInfo()
Get feature (aligned over runs) with the given identifier from the specified project-space.
FeaturesApi$GetAlignedFeatureWithHttpInfo(
project_id,
aligned_feature_id,
ms_data_search_prepared = FALSE,
opt_fields = list("none"),
data_file = NULL,
...
)project_idproject-space to read from.
aligned_feature_ididentifier of feature (aligned over runs) to access.
ms_data_search_prepared(optional) Returns all fragment spectra in a preprocessed form as used for fast Cosine/Modified Cosine computation. Gives you spectra compatible with SpectralLibraryMatch peak assignments and reference spectra. (default value: FALSE)
opt_fields(optional) set of optional fields to be included. Use 'none' only to override defaults. (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (AlignedFeature) with additional information such as HTTP status code, headers
GetAlignedFeatures()
[DEPRECATED] Get all available features (aligned over runs) in the given project-space
FeaturesApi$GetAlignedFeatures(
project_id,
ms_data_search_prepared = FALSE,
opt_fields = list("none"),
data_file = NULL,
...
)project_idproject-space to read from.
ms_data_search_prepared(optional) Returns all fragment spectra in a preprocessed form as used for fast Cosine/Modified Cosine computation. Gives you spectra compatible with SpectralLibraryMatch peak assignments and reference spectra. (default value: FALSE)
opt_fields(optional) set of optional fields to be included. Use 'none' only to override defaults. (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
array[AlignedFeature]
GetAlignedFeaturesWithHttpInfo()
[DEPRECATED] Get all available features (aligned over runs) in the given project-space
FeaturesApi$GetAlignedFeaturesWithHttpInfo(
project_id,
ms_data_search_prepared = FALSE,
opt_fields = list("none"),
data_file = NULL,
...
)project_idproject-space to read from.
ms_data_search_prepared(optional) Returns all fragment spectra in a preprocessed form as used for fast Cosine/Modified Cosine computation. Gives you spectra compatible with SpectralLibraryMatch peak assignments and reference spectra. (default value: FALSE)
opt_fields(optional) set of optional fields to be included. Use 'none' only to override defaults. (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (array[AlignedFeature]) with additional information such as HTTP status code, headers
GetAlignedFeaturesPage()
Get features (aligned over runs) in the given project-space
FeaturesApi$GetAlignedFeaturesPage(
project_id,
page = 0,
size = 20,
sort = NULL,
search_query = NULL,
ms_data_search_prepared = FALSE,
opt_fields = list("computedTools", "qualities", "tags"),
data_file = NULL,
...
)project_idproject space to get features (aligned over runs) from.
page(optional) Zero-based page index (0..N) (default value: 0)
size(optional) The size of the page to be returned (default value: 20)
sort(optional) Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
search_query(optional) Optional search query in lucene syntax. Omit this parameter to page over all features.
ms_data_search_prepared(optional) Returns all fragment spectra in a preprocessed form as used for fast Cosine/Modified Cosine computation. Gives you spectra compatible with SpectralLibraryMatch peak assignments and reference spectra. (default value: FALSE)
opt_fields(optional) set of optional fields to be included. Use 'none' only to override defaults. (default value: ["computedTools","qualities","tags"])
data_file(optional) name of the data file to save the result
...Other optional arguments
PagedModelAlignedFeature
GetAlignedFeaturesPageWithHttpInfo()
Get features (aligned over runs) in the given project-space
FeaturesApi$GetAlignedFeaturesPageWithHttpInfo(
project_id,
page = 0,
size = 20,
sort = NULL,
search_query = NULL,
ms_data_search_prepared = FALSE,
opt_fields = list("computedTools", "qualities", "tags"),
data_file = NULL,
...
)project_idproject space to get features (aligned over runs) from.
page(optional) Zero-based page index (0..N) (default value: 0)
size(optional) The size of the page to be returned (default value: 20)
sort(optional) Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
search_query(optional) Optional search query in lucene syntax. Omit this parameter to page over all features.
ms_data_search_prepared(optional) Returns all fragment spectra in a preprocessed form as used for fast Cosine/Modified Cosine computation. Gives you spectra compatible with SpectralLibraryMatch peak assignments and reference spectra. (default value: FALSE)
opt_fields(optional) set of optional fields to be included. Use 'none' only to override defaults. (default value: ["computedTools","qualities","tags"])
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (PagedModelAlignedFeature) with additional information such as HTTP status code, headers
GetAlignedFeaturesSearchableFields()
Get all fields that can be used in the searchQuery parameter of feature (aligned over runs) endpoints
FeaturesApi$GetAlignedFeaturesSearchableFields( project_id, data_file = NULL, ... )
project_idproject space to read the searchable feature fields from.
data_file(optional) name of the data file to save the result
...Other optional arguments
array[SearchableField]
GetAlignedFeaturesSearchableFieldsWithHttpInfo()
Get all fields that can be used in the searchQuery parameter of feature (aligned over runs) endpoints
FeaturesApi$GetAlignedFeaturesSearchableFieldsWithHttpInfo( project_id, data_file = NULL, ... )
project_idproject space to read the searchable feature fields from.
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (array[SearchableField]) with additional information such as HTTP status code, headers
GetBestMatchingCompoundClasses()
Return Best matching compound classes for given formulaId
FeaturesApi$GetBestMatchingCompoundClasses( project_id, aligned_feature_id, formula_id, data_file = NULL, ... )
project_idproject-space to read from.
aligned_feature_idfeature (aligned over runs) the formula result belongs to.
formula_ididentifier of the requested formula result
data_file(optional) name of the data file to save the result
...Other optional arguments
CompoundClasses
GetBestMatchingCompoundClassesWithHttpInfo()
Return Best matching compound classes for given formulaId
FeaturesApi$GetBestMatchingCompoundClassesWithHttpInfo( project_id, aligned_feature_id, formula_id, data_file = NULL, ... )
project_idproject-space to read from.
aligned_feature_idfeature (aligned over runs) the formula result belongs to.
formula_ididentifier of the requested formula result
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (CompoundClasses) with additional information such as HTTP status code, headers
GetCanopusPrediction()
All predicted compound classes (CANOPUS) from ClassyFire and NPC and their probabilities,
FeaturesApi$GetCanopusPrediction( project_id, aligned_feature_id, formula_id, data_file = NULL, ... )
project_idproject-space to read from.
aligned_feature_idfeature (aligned over runs) the formula result belongs to.
formula_ididentifier of the requested formula result
data_file(optional) name of the data file to save the result
...Other optional arguments
CanopusPrediction
GetCanopusPredictionWithHttpInfo()
All predicted compound classes (CANOPUS) from ClassyFire and NPC and their probabilities,
FeaturesApi$GetCanopusPredictionWithHttpInfo( project_id, aligned_feature_id, formula_id, data_file = NULL, ... )
project_idproject-space to read from.
aligned_feature_idfeature (aligned over runs) the formula result belongs to.
formula_ididentifier of the requested formula result
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (CanopusPrediction) with additional information such as HTTP status code, headers
GetDeNovoStructureCandidates()
[DEPRECATED] List of de novo structure candidates (e
FeaturesApi$GetDeNovoStructureCandidates(
project_id,
aligned_feature_id,
opt_fields = list("none"),
data_file = NULL,
...
)project_idproject-space to read from.
aligned_feature_idfeature (aligned over runs) the structure candidates belong to.
opt_fields(optional) set of optional fields to be included. Use 'none' only to override defaults. (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
array[StructureCandidateFormula]
GetDeNovoStructureCandidatesWithHttpInfo()
[DEPRECATED] List of de novo structure candidates (e
FeaturesApi$GetDeNovoStructureCandidatesWithHttpInfo(
project_id,
aligned_feature_id,
opt_fields = list("none"),
data_file = NULL,
...
)project_idproject-space to read from.
aligned_feature_idfeature (aligned over runs) the structure candidates belong to.
opt_fields(optional) set of optional fields to be included. Use 'none' only to override defaults. (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (array[StructureCandidateFormula]) with additional information such as HTTP status code, headers
GetDeNovoStructureCandidatesByFormula()
[DEPRECATED] List of de novo structure candidates (e
FeaturesApi$GetDeNovoStructureCandidatesByFormula(
project_id,
aligned_feature_id,
formula_id,
opt_fields = list("none"),
data_file = NULL,
...
)project_idproject-space to read from.
aligned_feature_idfeature (aligned over runs) the formula result belongs to.
formula_ididentifier of the requested formula result
opt_fields(optional) set of optional fields to be included. Use 'none' only to override defaults. (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
array[StructureCandidateScored]
GetDeNovoStructureCandidatesByFormulaWithHttpInfo()
[DEPRECATED] List of de novo structure candidates (e
FeaturesApi$GetDeNovoStructureCandidatesByFormulaWithHttpInfo(
project_id,
aligned_feature_id,
formula_id,
opt_fields = list("none"),
data_file = NULL,
...
)project_idproject-space to read from.
aligned_feature_idfeature (aligned over runs) the formula result belongs to.
formula_ididentifier of the requested formula result
opt_fields(optional) set of optional fields to be included. Use 'none' only to override defaults. (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (array[StructureCandidateScored]) with additional information such as HTTP status code, headers
GetDeNovoStructureCandidatesByFormulaPage()
Page of de novo structure candidates (e.g. generated by MsNovelist) ranked by CSI:FingerID score for the given 'formulaId' with minimal information. StructureCandidates can be enriched with molecular fingerprint.
FeaturesApi$GetDeNovoStructureCandidatesByFormulaPage(
project_id,
aligned_feature_id,
formula_id,
page = 0,
size = 20,
sort = NULL,
opt_fields = list("none"),
data_file = NULL,
...
)project_idproject-space to read from.
aligned_feature_idfeature (aligned over runs) the formula result belongs to.
formula_ididentifier of the requested formula result
page(optional) Zero-based page index (0..N) (default value: 0)
size(optional) The size of the page to be returned (default value: 20)
sort(optional) Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
opt_fields(optional) set of optional fields to be included. Use 'none' only to override defaults. (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
PagedModelStructureCandidateScored
GetDeNovoStructureCandidatesByFormulaPageWithHttpInfo()
Page of de novo structure candidates (e.g. generated by MsNovelist) ranked by CSI:FingerID score for the given 'formulaId' with minimal information. StructureCandidates can be enriched with molecular fingerprint.
FeaturesApi$GetDeNovoStructureCandidatesByFormulaPageWithHttpInfo(
project_id,
aligned_feature_id,
formula_id,
page = 0,
size = 20,
sort = NULL,
opt_fields = list("none"),
data_file = NULL,
...
)project_idproject-space to read from.
aligned_feature_idfeature (aligned over runs) the formula result belongs to.
formula_ididentifier of the requested formula result
page(optional) Zero-based page index (0..N) (default value: 0)
size(optional) The size of the page to be returned (default value: 20)
sort(optional) Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
opt_fields(optional) set of optional fields to be included. Use 'none' only to override defaults. (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (PagedModelStructureCandidateScored) with additional information such as HTTP status code, headers
GetDeNovoStructureCandidatesPage()
Page of de novo structure candidates (e.g. generated by MsNovelist) ranked by CSI:FingerID score for the given 'alignedFeatureId' with minimal information. StructureCandidates can be enriched with molecular fingerprint.
FeaturesApi$GetDeNovoStructureCandidatesPage(
project_id,
aligned_feature_id,
page = 0,
size = 20,
sort = NULL,
opt_fields = list("none"),
data_file = NULL,
...
)project_idproject-space to read from.
aligned_feature_idfeature (aligned over runs) the structure candidates belong to.
page(optional) Zero-based page index (0..N) (default value: 0)
size(optional) The size of the page to be returned (default value: 20)
sort(optional) Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
opt_fields(optional) set of optional fields to be included. Use 'none' only to override defaults. (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
PagedModelStructureCandidateFormula
GetDeNovoStructureCandidatesPageWithHttpInfo()
Page of de novo structure candidates (e.g. generated by MsNovelist) ranked by CSI:FingerID score for the given 'alignedFeatureId' with minimal information. StructureCandidates can be enriched with molecular fingerprint.
FeaturesApi$GetDeNovoStructureCandidatesPageWithHttpInfo(
project_id,
aligned_feature_id,
page = 0,
size = 20,
sort = NULL,
opt_fields = list("none"),
data_file = NULL,
...
)project_idproject-space to read from.
aligned_feature_idfeature (aligned over runs) the structure candidates belong to.
page(optional) Zero-based page index (0..N) (default value: 0)
size(optional) The size of the page to be returned (default value: 20)
sort(optional) Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
opt_fields(optional) set of optional fields to be included. Use 'none' only to override defaults. (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (PagedModelStructureCandidateFormula) with additional information such as HTTP status code, headers
GetFeatureQuantTable()
Returns the full quantification table of features
FeaturesApi$GetFeatureQuantTable(
project_id,
search_query = NULL,
type = "APEX_INTENSITY",
opt_fields = list("none"),
data_file = NULL,
...
)project_idproject-space to read from.
search_query(optional) Optional search query in lucene syntax. Omit this parameter to quantify all features.
type(optional) quantification type. (default value: "APEX_INTENSITY")
opt_fields(optional) No description (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
QuantTable
GetFeatureQuantTableWithHttpInfo()
Returns the full quantification table of features
FeaturesApi$GetFeatureQuantTableWithHttpInfo(
project_id,
search_query = NULL,
type = "APEX_INTENSITY",
opt_fields = list("none"),
data_file = NULL,
...
)project_idproject-space to read from.
search_query(optional) Optional search query in lucene syntax. Omit this parameter to quantify all features.
type(optional) quantification type. (default value: "APEX_INTENSITY")
opt_fields(optional) No description (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (QuantTable) with additional information such as HTTP status code, headers
GetFeatures()
[DEPRECATED] Get all features the given feature (aligned over runs) was aligned from
FeaturesApi$GetFeatures(project_id, aligned_feature_id, data_file = NULL, ...)
project_idproject-space to read from.
aligned_feature_idfeature (aligned over runs) whose features to read.
data_file(optional) name of the data file to save the result
...Other optional arguments
array[Feature]
GetFeaturesWithHttpInfo()
[DEPRECATED] Get all features the given feature (aligned over runs) was aligned from
FeaturesApi$GetFeaturesWithHttpInfo( project_id, aligned_feature_id, data_file = NULL, ... )
project_idproject-space to read from.
aligned_feature_idfeature (aligned over runs) whose features to read.
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (array[Feature]) with additional information such as HTTP status code, headers
GetFeaturesPage()
Page of features the given feature (aligned over runs) was aligned from, one per run it has been detected in
FeaturesApi$GetFeaturesPage( project_id, aligned_feature_id, page = 0, size = 20, sort = NULL, data_file = NULL, ... )
project_idproject-space to read from.
aligned_feature_idfeature (aligned over runs) whose features to read.
page(optional) Zero-based page index (0..N) (default value: 0)
size(optional) The size of the page to be returned (default value: 20)
sort(optional) Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
data_file(optional) name of the data file to save the result
...Other optional arguments
PagedModelFeature
GetFeaturesPageWithHttpInfo()
Page of features the given feature (aligned over runs) was aligned from, one per run it has been detected in
FeaturesApi$GetFeaturesPageWithHttpInfo( project_id, aligned_feature_id, page = 0, size = 20, sort = NULL, data_file = NULL, ... )
project_idproject-space to read from.
aligned_feature_idfeature (aligned over runs) whose features to read.
page(optional) Zero-based page index (0..N) (default value: 0)
size(optional) The size of the page to be returned (default value: 20)
sort(optional) Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (PagedModelFeature) with additional information such as HTTP status code, headers
GetFingerprintPrediction()
Returns predicted fingerprint (CSI:FingerID) for the given formula result identifier (formulaId)
FeaturesApi$GetFingerprintPrediction( project_id, aligned_feature_id, formula_id, data_file = NULL, ... )
project_idproject-space to read from.
aligned_feature_idfeature (aligned over runs) the formula result belongs to.
formula_ididentifier of the requested formula result
data_file(optional) name of the data file to save the result
...Other optional arguments
array[numeric]
GetFingerprintPredictionWithHttpInfo()
Returns predicted fingerprint (CSI:FingerID) for the given formula result identifier (formulaId)
FeaturesApi$GetFingerprintPredictionWithHttpInfo( project_id, aligned_feature_id, formula_id, data_file = NULL, ... )
project_idproject-space to read from.
aligned_feature_idfeature (aligned over runs) the formula result belongs to.
formula_ididentifier of the requested formula result
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (array[numeric]) with additional information such as HTTP status code, headers
GetFormulaAnnotatedMsMsData()
Returns MS/MS Spectrum annotated with fragments and losses for provided formulaId
FeaturesApi$GetFormulaAnnotatedMsMsData( project_id, aligned_feature_id, formula_id, ms_data_search_prepared = FALSE, data_file = NULL, ... )
project_idproject-space to read from.
aligned_feature_idfeature (aligned over runs) the formula result belongs to.
formula_ididentifier of the requested formula result
ms_data_search_prepared(optional) Returns all fragment spectra in a preprocessed form as used for fast Cosine/Modified Cosine computation. Gives you spectra compatible with SpectralLibraryMatch peak assignments and reference spectra. (default value: FALSE)
data_file(optional) name of the data file to save the result
...Other optional arguments
AnnotatedMsMsData
GetFormulaAnnotatedMsMsDataWithHttpInfo()
Returns MS/MS Spectrum annotated with fragments and losses for provided formulaId
FeaturesApi$GetFormulaAnnotatedMsMsDataWithHttpInfo( project_id, aligned_feature_id, formula_id, ms_data_search_prepared = FALSE, data_file = NULL, ... )
project_idproject-space to read from.
aligned_feature_idfeature (aligned over runs) the formula result belongs to.
formula_ididentifier of the requested formula result
ms_data_search_prepared(optional) Returns all fragment spectra in a preprocessed form as used for fast Cosine/Modified Cosine computation. Gives you spectra compatible with SpectralLibraryMatch peak assignments and reference spectra. (default value: FALSE)
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (AnnotatedMsMsData) with additional information such as HTTP status code, headers
GetFormulaAnnotatedSpectrum()
Returns a fragmentation spectrum (e
FeaturesApi$GetFormulaAnnotatedSpectrum( project_id, aligned_feature_id, formula_id, spectrum_index = -1, search_prepared = FALSE, data_file = NULL, ... )
project_idproject-space to read from.
aligned_feature_idfeature (aligned over runs) the formula result belongs to.
formula_ididentifier of the requested formula result
spectrum_index(optional) index of the spectrum to be annotated. Merged MS/MS will be used if spectrumIndex < 0 (default) (default value: -1)
search_prepared(optional) Returns all fragment spectra in a preprocessed form as used for fast Cosine/Modified Cosine computation. Gives you spectra compatible with SpectralLibraryMatch peak assignments and reference spectra. (default value: FALSE)
data_file(optional) name of the data file to save the result
...Other optional arguments
AnnotatedSpectrum
GetFormulaAnnotatedSpectrumWithHttpInfo()
Returns a fragmentation spectrum (e
FeaturesApi$GetFormulaAnnotatedSpectrumWithHttpInfo( project_id, aligned_feature_id, formula_id, spectrum_index = -1, search_prepared = FALSE, data_file = NULL, ... )
project_idproject-space to read from.
aligned_feature_idfeature (aligned over runs) the formula result belongs to.
formula_ididentifier of the requested formula result
spectrum_index(optional) index of the spectrum to be annotated. Merged MS/MS will be used if spectrumIndex < 0 (default) (default value: -1)
search_prepared(optional) Returns all fragment spectra in a preprocessed form as used for fast Cosine/Modified Cosine computation. Gives you spectra compatible with SpectralLibraryMatch peak assignments and reference spectra. (default value: FALSE)
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (AnnotatedSpectrum) with additional information such as HTTP status code, headers
GetFormulaCandidate()
FormulaResultContainers for the given 'formulaId' with minimal information.
FeaturesApi$GetFormulaCandidate(
project_id,
aligned_feature_id,
formula_id,
ms_data_search_prepared = FALSE,
opt_fields = list("none"),
data_file = NULL,
...
)project_idproject-space to read from.
aligned_feature_idfeature (aligned over runs) the formula result belongs to.
formula_ididentifier of the requested formula result
ms_data_search_prepared(optional) Returns all fragment spectra in a preprocessed form as used for fast Cosine/Modified Cosine computation. Gives you spectra compatible with SpectralLibraryMatch peak assignments and reference spectra. (default value: FALSE)
opt_fields(optional) set of optional fields to be included. Use 'none' only to override defaults. (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
FormulaCandidate
GetFormulaCandidateWithHttpInfo()
FormulaResultContainers for the given 'formulaId' with minimal information.
FeaturesApi$GetFormulaCandidateWithHttpInfo(
project_id,
aligned_feature_id,
formula_id,
ms_data_search_prepared = FALSE,
opt_fields = list("none"),
data_file = NULL,
...
)project_idproject-space to read from.
aligned_feature_idfeature (aligned over runs) the formula result belongs to.
formula_ididentifier of the requested formula result
ms_data_search_prepared(optional) Returns all fragment spectra in a preprocessed form as used for fast Cosine/Modified Cosine computation. Gives you spectra compatible with SpectralLibraryMatch peak assignments and reference spectra. (default value: FALSE)
opt_fields(optional) set of optional fields to be included. Use 'none' only to override defaults. (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (FormulaCandidate) with additional information such as HTTP status code, headers
GetFormulaCandidates()
[DEPRECATED] List of FormulaResultContainers available for this feature with minimal information
FeaturesApi$GetFormulaCandidates(
project_id,
aligned_feature_id,
ms_data_search_prepared = FALSE,
opt_fields = list("none"),
data_file = NULL,
...
)project_idproject-space to read from.
aligned_feature_idfeature (aligned over runs) the formula result belongs to.
ms_data_search_prepared(optional) Returns all fragment spectra in a preprocessed form as used for fast Cosine/Modified Cosine computation. Gives you spectra compatible with SpectralLibraryMatch peak assignments and reference spectra. (default value: FALSE)
opt_fields(optional) set of optional fields to be included. Use 'none' only to override defaults. (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
array[FormulaCandidate]
GetFormulaCandidatesWithHttpInfo()
[DEPRECATED] List of FormulaResultContainers available for this feature with minimal information
FeaturesApi$GetFormulaCandidatesWithHttpInfo(
project_id,
aligned_feature_id,
ms_data_search_prepared = FALSE,
opt_fields = list("none"),
data_file = NULL,
...
)project_idproject-space to read from.
aligned_feature_idfeature (aligned over runs) the formula result belongs to.
ms_data_search_prepared(optional) Returns all fragment spectra in a preprocessed form as used for fast Cosine/Modified Cosine computation. Gives you spectra compatible with SpectralLibraryMatch peak assignments and reference spectra. (default value: FALSE)
opt_fields(optional) set of optional fields to be included. Use 'none' only to override defaults. (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (array[FormulaCandidate]) with additional information such as HTTP status code, headers
GetFormulaCandidatesPage()
Page of FormulaResultContainers available for this feature with minimal information.
FeaturesApi$GetFormulaCandidatesPage(
project_id,
aligned_feature_id,
page = 0,
size = 20,
sort = NULL,
ms_data_search_prepared = FALSE,
opt_fields = list("none"),
data_file = NULL,
...
)project_idproject-space to read from.
aligned_feature_idfeature (aligned over runs) the formula result belongs to.
page(optional) Zero-based page index (0..N) (default value: 0)
size(optional) The size of the page to be returned (default value: 20)
sort(optional) Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
ms_data_search_prepared(optional) Returns all fragment spectra in a preprocessed form as used for fast Cosine/Modified Cosine computation. Gives you spectra compatible with SpectralLibraryMatch peak assignments and reference spectra. (default value: FALSE)
opt_fields(optional) set of optional fields to be included. Use 'none' only to override defaults. (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
PagedModelFormulaCandidate
GetFormulaCandidatesPageWithHttpInfo()
Page of FormulaResultContainers available for this feature with minimal information.
FeaturesApi$GetFormulaCandidatesPageWithHttpInfo(
project_id,
aligned_feature_id,
page = 0,
size = 20,
sort = NULL,
ms_data_search_prepared = FALSE,
opt_fields = list("none"),
data_file = NULL,
...
)project_idproject-space to read from.
aligned_feature_idfeature (aligned over runs) the formula result belongs to.
page(optional) Zero-based page index (0..N) (default value: 0)
size(optional) The size of the page to be returned (default value: 20)
sort(optional) Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
ms_data_search_prepared(optional) Returns all fragment spectra in a preprocessed form as used for fast Cosine/Modified Cosine computation. Gives you spectra compatible with SpectralLibraryMatch peak assignments and reference spectra. (default value: FALSE)
opt_fields(optional) set of optional fields to be included. Use 'none' only to override defaults. (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (PagedModelFormulaCandidate) with additional information such as HTTP status code, headers
GetFragTree()
Returns fragmentation tree (SIRIUS) for the given formula result identifier
FeaturesApi$GetFragTree( project_id, aligned_feature_id, formula_id, data_file = NULL, ... )
project_idproject-space to read from.
aligned_feature_idfeature (aligned over runs) the formula result belongs to.
formula_ididentifier of the requested formula result
data_file(optional) name of the data file to save the result
...Other optional arguments
FragmentationTree
GetFragTreeWithHttpInfo()
Returns fragmentation tree (SIRIUS) for the given formula result identifier
FeaturesApi$GetFragTreeWithHttpInfo( project_id, aligned_feature_id, formula_id, data_file = NULL, ... )
project_idproject-space to read from.
aligned_feature_idfeature (aligned over runs) the formula result belongs to.
formula_ididentifier of the requested formula result
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (FragmentationTree) with additional information such as HTTP status code, headers
GetIsotopePatternAnnotation()
Returns Isotope pattern information for given formulaId
FeaturesApi$GetIsotopePatternAnnotation( project_id, aligned_feature_id, formula_id, data_file = NULL, ... )
project_idproject-space to read from.
aligned_feature_idfeature (aligned over runs) the formula result belongs to.
formula_ididentifier of the requested formula result
data_file(optional) name of the data file to save the result
...Other optional arguments
IsotopePatternAnnotation
GetIsotopePatternAnnotationWithHttpInfo()
Returns Isotope pattern information for given formulaId
FeaturesApi$GetIsotopePatternAnnotationWithHttpInfo( project_id, aligned_feature_id, formula_id, data_file = NULL, ... )
project_idproject-space to read from.
aligned_feature_idfeature (aligned over runs) the formula result belongs to.
formula_ididentifier of the requested formula result
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (IsotopePatternAnnotation) with additional information such as HTTP status code, headers
GetLipidAnnotation()
Returns Lipid annotation (ElGordo) for the given formulaId
FeaturesApi$GetLipidAnnotation( project_id, aligned_feature_id, formula_id, data_file = NULL, ... )
project_idproject-space to read from.
aligned_feature_idfeature (aligned over runs) the formula result belongs to.
formula_ididentifier of the requested formula result
data_file(optional) name of the data file to save the result
...Other optional arguments
LipidAnnotation
GetLipidAnnotationWithHttpInfo()
Returns Lipid annotation (ElGordo) for the given formulaId
FeaturesApi$GetLipidAnnotationWithHttpInfo( project_id, aligned_feature_id, formula_id, data_file = NULL, ... )
project_idproject-space to read from.
aligned_feature_idfeature (aligned over runs) the formula result belongs to.
formula_ididentifier of the requested formula result
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (LipidAnnotation) with additional information such as HTTP status code, headers
GetMsData()
Mass Spec data (input data) for the given 'alignedFeatureId' .
FeaturesApi$GetMsData( project_id, aligned_feature_id, ms_data_search_prepared = FALSE, data_file = NULL, ... )
project_idproject-space to read from.
aligned_feature_idfeature (aligned over runs) the Mass Spec data belongs to.
ms_data_search_prepared(optional) Returns all fragment spectra in a preprocessed form as used for fast Cosine/Modified Cosine computation. Gives you spectra compatible with SpectralLibraryMatch peak assignments and reference spectra. (default value: FALSE)
data_file(optional) name of the data file to save the result
...Other optional arguments
MsData
GetMsDataWithHttpInfo()
Mass Spec data (input data) for the given 'alignedFeatureId' .
FeaturesApi$GetMsDataWithHttpInfo( project_id, aligned_feature_id, ms_data_search_prepared = FALSE, data_file = NULL, ... )
project_idproject-space to read from.
aligned_feature_idfeature (aligned over runs) the Mass Spec data belongs to.
ms_data_search_prepared(optional) Returns all fragment spectra in a preprocessed form as used for fast Cosine/Modified Cosine computation. Gives you spectra compatible with SpectralLibraryMatch peak assignments and reference spectra. (default value: FALSE)
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (MsData) with additional information such as HTTP status code, headers
GetSpectralLibraryMatch()
Spectral library match for the given 'alignedFeatureId'.
FeaturesApi$GetSpectralLibraryMatch(
project_id,
aligned_feature_id,
match_id,
opt_fields = list("none"),
data_file = NULL,
...
)project_idproject-space to read from.
aligned_feature_idfeature (aligned over runs) the structure candidates belong to.
match_idid of the library match to be returned.
opt_fields(optional) No description (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
SpectralLibraryMatch
GetSpectralLibraryMatchWithHttpInfo()
Spectral library match for the given 'alignedFeatureId'.
FeaturesApi$GetSpectralLibraryMatchWithHttpInfo(
project_id,
aligned_feature_id,
match_id,
opt_fields = list("none"),
data_file = NULL,
...
)project_idproject-space to read from.
aligned_feature_idfeature (aligned over runs) the structure candidates belong to.
match_idid of the library match to be returned.
opt_fields(optional) No description (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (SpectralLibraryMatch) with additional information such as HTTP status code, headers
GetSpectralLibraryMatches()
[DEPRECATED] List of spectral library matches for the given 'alignedFeatureId'
FeaturesApi$GetSpectralLibraryMatches(
project_id,
aligned_feature_id,
min_shared_peaks = 1,
min_similarity = 0.2,
inchi_key = "",
opt_fields = list("none"),
data_file = NULL,
...
)project_idproject-space to read from.
aligned_feature_idfeature (aligned over runs) the structure candidates belong to.
min_shared_peaks(optional) No description (default value: 1)
min_similarity(optional) No description (default value: 0.2)
inchi_key(optional) No description (default value: "")
opt_fields(optional) No description (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
array[SpectralLibraryMatch]
GetSpectralLibraryMatchesWithHttpInfo()
[DEPRECATED] List of spectral library matches for the given 'alignedFeatureId'
FeaturesApi$GetSpectralLibraryMatchesWithHttpInfo(
project_id,
aligned_feature_id,
min_shared_peaks = 1,
min_similarity = 0.2,
inchi_key = "",
opt_fields = list("none"),
data_file = NULL,
...
)project_idproject-space to read from.
aligned_feature_idfeature (aligned over runs) the structure candidates belong to.
min_shared_peaks(optional) No description (default value: 1)
min_similarity(optional) No description (default value: 0.2)
inchi_key(optional) No description (default value: "")
opt_fields(optional) No description (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (array[SpectralLibraryMatch]) with additional information such as HTTP status code, headers
GetSpectralLibraryMatchesPage()
Page of spectral library matches for the given 'alignedFeatureId'.
FeaturesApi$GetSpectralLibraryMatchesPage(
project_id,
aligned_feature_id,
page = 0,
size = 20,
sort = NULL,
min_shared_peaks = 1,
min_similarity = 0.2,
inchi_key = "",
opt_fields = list("none"),
data_file = NULL,
...
)project_idproject-space to read from.
aligned_feature_idfeature (aligned over runs) the structure candidates belong to.
page(optional) Zero-based page index (0..N) (default value: 0)
size(optional) The size of the page to be returned (default value: 20)
sort(optional) Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
min_shared_peaks(optional) No description (default value: 1)
min_similarity(optional) No description (default value: 0.2)
inchi_key(optional) No description (default value: "")
opt_fields(optional) No description (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
PagedModelSpectralLibraryMatch
GetSpectralLibraryMatchesPageWithHttpInfo()
Page of spectral library matches for the given 'alignedFeatureId'.
FeaturesApi$GetSpectralLibraryMatchesPageWithHttpInfo(
project_id,
aligned_feature_id,
page = 0,
size = 20,
sort = NULL,
min_shared_peaks = 1,
min_similarity = 0.2,
inchi_key = "",
opt_fields = list("none"),
data_file = NULL,
...
)project_idproject-space to read from.
aligned_feature_idfeature (aligned over runs) the structure candidates belong to.
page(optional) Zero-based page index (0..N) (default value: 0)
size(optional) The size of the page to be returned (default value: 20)
sort(optional) Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
min_shared_peaks(optional) No description (default value: 1)
min_similarity(optional) No description (default value: 0.2)
inchi_key(optional) No description (default value: "")
opt_fields(optional) No description (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (PagedModelSpectralLibraryMatch) with additional information such as HTTP status code, headers
GetSpectralLibraryMatchesSummary()
Summarize matched reference spectra for the given 'alignedFeatureId'.
FeaturesApi$GetSpectralLibraryMatchesSummary( project_id, aligned_feature_id, min_shared_peaks = 1, min_similarity = 0.2, inchi_key = "", data_file = NULL, ... )
project_idproject-space to read from.
aligned_feature_idfeature (aligned over runs) the structure candidates belong to.
min_shared_peaks(optional) min threshold of shared peaks. (default value: 1)
min_similarity(optional) min spectral similarity threshold. (default value: 0.2)
inchi_key(optional) 2D inchi key of the compound in the structure database. (default value: "")
data_file(optional) name of the data file to save the result
...Other optional arguments
SpectralLibraryMatchSummary
GetSpectralLibraryMatchesSummaryWithHttpInfo()
Summarize matched reference spectra for the given 'alignedFeatureId'.
FeaturesApi$GetSpectralLibraryMatchesSummaryWithHttpInfo( project_id, aligned_feature_id, min_shared_peaks = 1, min_similarity = 0.2, inchi_key = "", data_file = NULL, ... )
project_idproject-space to read from.
aligned_feature_idfeature (aligned over runs) the structure candidates belong to.
min_shared_peaks(optional) min threshold of shared peaks. (default value: 1)
min_similarity(optional) min spectral similarity threshold. (default value: 0.2)
inchi_key(optional) 2D inchi key of the compound in the structure database. (default value: "")
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (SpectralLibraryMatchSummary) with additional information such as HTTP status code, headers
GetStructureCandidates()
[DEPRECATED] List of structure database search candidates ranked by CSI:FingerID score for the given 'alignedFeatureId' with minimal information
FeaturesApi$GetStructureCandidates(
project_id,
aligned_feature_id,
opt_fields = list("none"),
data_file = NULL,
...
)project_idproject-space to read from.
aligned_feature_idfeature (aligned over runs) the structure candidates belong to.
opt_fields(optional) set of optional fields to be included. Use 'none' only to override defaults. (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
array[StructureCandidateFormula]
GetStructureCandidatesWithHttpInfo()
[DEPRECATED] List of structure database search candidates ranked by CSI:FingerID score for the given 'alignedFeatureId' with minimal information
FeaturesApi$GetStructureCandidatesWithHttpInfo(
project_id,
aligned_feature_id,
opt_fields = list("none"),
data_file = NULL,
...
)project_idproject-space to read from.
aligned_feature_idfeature (aligned over runs) the structure candidates belong to.
opt_fields(optional) set of optional fields to be included. Use 'none' only to override defaults. (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (array[StructureCandidateFormula]) with additional information such as HTTP status code, headers
GetStructureCandidatesByFormula()
[DEPRECATED] List of CSI:FingerID structure database search candidates for the given 'formulaId' with minimal information
FeaturesApi$GetStructureCandidatesByFormula(
project_id,
aligned_feature_id,
formula_id,
opt_fields = list("none"),
data_file = NULL,
...
)project_idproject-space to read from.
aligned_feature_idfeature (aligned over runs) the formula result belongs to.
formula_ididentifier of the requested formula result
opt_fields(optional) set of optional fields to be included. Use 'none' only to override defaults. (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
array[StructureCandidateScored]
GetStructureCandidatesByFormulaWithHttpInfo()
[DEPRECATED] List of CSI:FingerID structure database search candidates for the given 'formulaId' with minimal information
FeaturesApi$GetStructureCandidatesByFormulaWithHttpInfo(
project_id,
aligned_feature_id,
formula_id,
opt_fields = list("none"),
data_file = NULL,
...
)project_idproject-space to read from.
aligned_feature_idfeature (aligned over runs) the formula result belongs to.
formula_ididentifier of the requested formula result
opt_fields(optional) set of optional fields to be included. Use 'none' only to override defaults. (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (array[StructureCandidateScored]) with additional information such as HTTP status code, headers
GetStructureCandidatesByFormulaPage()
Page of CSI:FingerID structure database search candidates for the given 'formulaId' with minimal information.
FeaturesApi$GetStructureCandidatesByFormulaPage(
project_id,
aligned_feature_id,
formula_id,
page = 0,
size = 20,
sort = NULL,
opt_fields = list("none"),
data_file = NULL,
...
)project_idproject-space to read from.
aligned_feature_idfeature (aligned over runs) the formula result belongs to.
formula_ididentifier of the requested formula result
page(optional) Zero-based page index (0..N) (default value: 0)
size(optional) The size of the page to be returned (default value: 20)
sort(optional) Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
opt_fields(optional) set of optional fields to be included. Use 'none' only to override defaults. (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
PagedModelStructureCandidateScored
GetStructureCandidatesByFormulaPageWithHttpInfo()
Page of CSI:FingerID structure database search candidates for the given 'formulaId' with minimal information.
FeaturesApi$GetStructureCandidatesByFormulaPageWithHttpInfo(
project_id,
aligned_feature_id,
formula_id,
page = 0,
size = 20,
sort = NULL,
opt_fields = list("none"),
data_file = NULL,
...
)project_idproject-space to read from.
aligned_feature_idfeature (aligned over runs) the formula result belongs to.
formula_ididentifier of the requested formula result
page(optional) Zero-based page index (0..N) (default value: 0)
size(optional) The size of the page to be returned (default value: 20)
sort(optional) Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
opt_fields(optional) set of optional fields to be included. Use 'none' only to override defaults. (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (PagedModelStructureCandidateScored) with additional information such as HTTP status code, headers
GetStructureCandidatesPage()
Page of structure database search candidates ranked by CSI:FingerID score for the given 'alignedFeatureId' with minimal information.
FeaturesApi$GetStructureCandidatesPage(
project_id,
aligned_feature_id,
page = 0,
size = 20,
sort = NULL,
opt_fields = list("none"),
data_file = NULL,
...
)project_idproject-space to read from.
aligned_feature_idfeature (aligned over runs) the structure candidates belong to.
page(optional) Zero-based page index (0..N) (default value: 0)
size(optional) The size of the page to be returned (default value: 20)
sort(optional) Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
opt_fields(optional) set of optional fields to be included. Use 'none' only to override defaults. (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
PagedModelStructureCandidateFormula
GetStructureCandidatesPageWithHttpInfo()
Page of structure database search candidates ranked by CSI:FingerID score for the given 'alignedFeatureId' with minimal information.
FeaturesApi$GetStructureCandidatesPageWithHttpInfo(
project_id,
aligned_feature_id,
page = 0,
size = 20,
sort = NULL,
opt_fields = list("none"),
data_file = NULL,
...
)project_idproject-space to read from.
aligned_feature_idfeature (aligned over runs) the structure candidates belong to.
page(optional) Zero-based page index (0..N) (default value: 0)
size(optional) The size of the page to be returned (default value: 20)
sort(optional) Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
opt_fields(optional) set of optional fields to be included. Use 'none' only to override defaults. (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (PagedModelStructureCandidateFormula) with additional information such as HTTP status code, headers
clone()
The objects of this class are cloneable with this method.
FeaturesApi$clone(deep = FALSE)
deepWhether to make a deep clone.
## Not run: #################### AddAlignedFeatures #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to import into. var_feature_import <- c(FeatureImport$new(123, 123, "name_example", "externalFeatureId_example", c("detectedAdducts_example"), 123, 123, 123, "NOT_APPLICABLE", BasicSpectrum$new("cosineQuery_example", c(SimplePeak$new(123, 123)), "name_example", 123, "collisionEnergy_example", "instrument_example", 123, 123, SimplePeak$new(123, 123), 123, 123, 123, 123, 123), c(BasicSpectrum$new("cosineQuery_example", c(SimplePeak$new(123, 123)), "name_example", 123, "collisionEnergy_example", "instrument_example", 123, 123, SimplePeak$new(123, 123), 123, 123, 123, 123, 123)), c(BasicSpectrum$new("cosineQuery_example", c(SimplePeak$new(123, 123)), "name_example", 123, "collisionEnergy_example", "instrument_example", 123, 123, SimplePeak$new(123, 123), 123, 123, 123, 123, 123)))) # array[FeatureImport] | the feature data to be imported var_profile <- "profile_example" # character | profile describing the instrument used to measure the data. Used to merge spectra. (Optional) var_opt_fields <- c("none") # array[character] | set of optional fields to be included. Use 'none' to override defaults. (Optional) #Import (aligned) features into the project. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$AddAlignedFeatures(var_project_id, var_feature_import, profile = var_profile, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$features_api$AddAlignedFeatures(var_project_id, var_feature_import, profile = var_profile, opt_fields = var_opt_fields) dput(result) #################### DeleteAlignedFeature #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to delete from. var_aligned_feature_id <- "aligned_feature_id_example" # character | identifier of feature (aligned over runs) to delete. #Delete feature (aligned over runs) with the given identifier from the specified project-space. api_instance <- rsirius_api$new() api_instance$features_api$DeleteAlignedFeature(var_project_id, var_aligned_feature_id) #################### DeleteAlignedFeatures #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to delete from. var_request_body <- c("property_example") # array[character] | #Delete feature (aligned over runs) with the given identifier from the specified project-space. api_instance <- rsirius_api$new() api_instance$features_api$DeleteAlignedFeatures(var_project_id, var_request_body) #################### DeleteAlignedFeaturesByQuery #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to delete from. var_search_query <- "search_query_example" # character | tag/text/range query in lucene syntax; must be non-empty (a blank query would match every feature). #Delete all features (aligned over runs) that match the given lucene search query from the specified project-space. api_instance <- rsirius_api$new() api_instance$features_api$DeleteAlignedFeaturesByQuery(var_project_id, var_search_query) #################### GetAlignedFeature #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_aligned_feature_id <- "aligned_feature_id_example" # character | identifier of feature (aligned over runs) to access. var_ms_data_search_prepared <- FALSE # character | Returns all fragment spectra in a preprocessed form as used for fast Cosine/Modified Cosine computation. Gives you spectra compatible with SpectralLibraryMatch peak assignments and reference spectra. (Optional) var_opt_fields <- c("none") # array[character] | set of optional fields to be included. Use 'none' only to override defaults. (Optional) #Get feature (aligned over runs) with the given identifier from the specified project-space. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetAlignedFeature(var_project_id, var_aligned_feature_id, ms_data_search_prepared = var_ms_data_search_prepared, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$features_api$GetAlignedFeature(var_project_id, var_aligned_feature_id, ms_data_search_prepared = var_ms_data_search_prepared, opt_fields = var_opt_fields) dput(result) #################### GetAlignedFeatures #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_ms_data_search_prepared <- FALSE # character | Returns all fragment spectra in a preprocessed form as used for fast Cosine/Modified Cosine computation. Gives you spectra compatible with SpectralLibraryMatch peak assignments and reference spectra. (Optional) var_opt_fields <- c("none") # array[character] | set of optional fields to be included. Use 'none' only to override defaults. (Optional) #[DEPRECATED] Get all available features (aligned over runs) in the given project-space api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetAlignedFeatures(var_project_id, ms_data_search_prepared = var_ms_data_search_prepared, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$features_api$GetAlignedFeatures(var_project_id, ms_data_search_prepared = var_ms_data_search_prepared, opt_fields = var_opt_fields) dput(result) #################### GetAlignedFeaturesPage #################### library(RSirius) var_project_id <- "project_id_example" # character | project space to get features (aligned over runs) from. var_page <- 0 # integer | Zero-based page index (0..N) (Optional) var_size <- 20 # integer | The size of the page to be returned (Optional) var_sort <- c("inner_example") # array[character] | Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. (Optional) var_search_query <- "search_query_example" # character | Optional search query in lucene syntax. Omit this parameter to page over all features. (Optional) var_ms_data_search_prepared <- FALSE # character | Returns all fragment spectra in a preprocessed form as used for fast Cosine/Modified Cosine computation. Gives you spectra compatible with SpectralLibraryMatch peak assignments and reference spectra. (Optional) var_opt_fields <- c("none") # array[character] | set of optional fields to be included. Use 'none' only to override defaults. (Optional) #Get features (aligned over runs) in the given project-space api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetAlignedFeaturesPage(var_project_id, page = var_page, size = var_size, sort = var_sort, search_query = var_search_query, ms_data_search_prepared = var_ms_data_search_prepared, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$features_api$GetAlignedFeaturesPage(var_project_id, page = var_page, size = var_size, sort = var_sort, search_query = var_search_query, ms_data_search_prepared = var_ms_data_search_prepared, opt_fields = var_opt_fields) dput(result) #################### GetAlignedFeaturesSearchableFields #################### library(RSirius) var_project_id <- "project_id_example" # character | project space to read the searchable feature fields from. #Get all fields that can be used in the searchQuery parameter of feature (aligned over runs) endpoints api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetAlignedFeaturesSearchableFields(var_project_iddata_file = "result.txt") result <- api_instance$features_api$GetAlignedFeaturesSearchableFields(var_project_id) dput(result) #################### GetBestMatchingCompoundClasses #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_aligned_feature_id <- "aligned_feature_id_example" # character | feature (aligned over runs) the formula result belongs to. var_formula_id <- "formula_id_example" # character | identifier of the requested formula result #Return Best matching compound classes for given formulaId api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetBestMatchingCompoundClasses(var_project_id, var_aligned_feature_id, var_formula_iddata_file = "result.txt") result <- api_instance$features_api$GetBestMatchingCompoundClasses(var_project_id, var_aligned_feature_id, var_formula_id) dput(result) #################### GetCanopusPrediction #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_aligned_feature_id <- "aligned_feature_id_example" # character | feature (aligned over runs) the formula result belongs to. var_formula_id <- "formula_id_example" # character | identifier of the requested formula result #All predicted compound classes (CANOPUS) from ClassyFire and NPC and their probabilities, api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetCanopusPrediction(var_project_id, var_aligned_feature_id, var_formula_iddata_file = "result.txt") result <- api_instance$features_api$GetCanopusPrediction(var_project_id, var_aligned_feature_id, var_formula_id) dput(result) #################### GetDeNovoStructureCandidates #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_aligned_feature_id <- "aligned_feature_id_example" # character | feature (aligned over runs) the structure candidates belong to. var_opt_fields <- c("none") # array[character] | set of optional fields to be included. Use 'none' only to override defaults. (Optional) #[DEPRECATED] List of de novo structure candidates (e api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetDeNovoStructureCandidates(var_project_id, var_aligned_feature_id, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$features_api$GetDeNovoStructureCandidates(var_project_id, var_aligned_feature_id, opt_fields = var_opt_fields) dput(result) #################### GetDeNovoStructureCandidatesByFormula #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_aligned_feature_id <- "aligned_feature_id_example" # character | feature (aligned over runs) the formula result belongs to. var_formula_id <- "formula_id_example" # character | identifier of the requested formula result var_opt_fields <- c("none") # array[character] | set of optional fields to be included. Use 'none' only to override defaults. (Optional) #[DEPRECATED] List of de novo structure candidates (e api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetDeNovoStructureCandidatesByFormula(var_project_id, var_aligned_feature_id, var_formula_id, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$features_api$GetDeNovoStructureCandidatesByFormula(var_project_id, var_aligned_feature_id, var_formula_id, opt_fields = var_opt_fields) dput(result) #################### GetDeNovoStructureCandidatesByFormulaPage #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_aligned_feature_id <- "aligned_feature_id_example" # character | feature (aligned over runs) the formula result belongs to. var_formula_id <- "formula_id_example" # character | identifier of the requested formula result var_page <- 0 # integer | Zero-based page index (0..N) (Optional) var_size <- 20 # integer | The size of the page to be returned (Optional) var_sort <- c("inner_example") # array[character] | Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. (Optional) var_opt_fields <- c("none") # array[character] | set of optional fields to be included. Use 'none' only to override defaults. (Optional) #Page of de novo structure candidates (e.g. generated by MsNovelist) ranked by CSI:FingerID score for the given 'formulaId' with minimal information. StructureCandidates can be enriched with molecular fingerprint. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetDeNovoStructureCandidatesByFormulaPage(var_project_id, var_aligned_feature_id, var_formula_id, page = var_page, size = var_size, sort = var_sort, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$features_api$GetDeNovoStructureCandidatesByFormulaPage(var_project_id, var_aligned_feature_id, var_formula_id, page = var_page, size = var_size, sort = var_sort, opt_fields = var_opt_fields) dput(result) #################### GetDeNovoStructureCandidatesPage #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_aligned_feature_id <- "aligned_feature_id_example" # character | feature (aligned over runs) the structure candidates belong to. var_page <- 0 # integer | Zero-based page index (0..N) (Optional) var_size <- 20 # integer | The size of the page to be returned (Optional) var_sort <- c("inner_example") # array[character] | Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. (Optional) var_opt_fields <- c("none") # array[character] | set of optional fields to be included. Use 'none' only to override defaults. (Optional) #Page of de novo structure candidates (e.g. generated by MsNovelist) ranked by CSI:FingerID score for the given 'alignedFeatureId' with minimal information. StructureCandidates can be enriched with molecular fingerprint. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetDeNovoStructureCandidatesPage(var_project_id, var_aligned_feature_id, page = var_page, size = var_size, sort = var_sort, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$features_api$GetDeNovoStructureCandidatesPage(var_project_id, var_aligned_feature_id, page = var_page, size = var_size, sort = var_sort, opt_fields = var_opt_fields) dput(result) #################### GetFeatureQuantTable #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_search_query <- "search_query_example" # character | Optional search query in lucene syntax. Omit this parameter to quantify all features. (Optional) var_type <- "APEX_INTENSITY" # character | quantification type. (Optional) var_opt_fields <- c(QuantTableOptField$new()) # array[QuantTableOptField] | (Optional) #Returns the full quantification table of features api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetFeatureQuantTable(var_project_id, search_query = var_search_query, type = var_type, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$features_api$GetFeatureQuantTable(var_project_id, search_query = var_search_query, type = var_type, opt_fields = var_opt_fields) dput(result) #################### GetFeatures #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_aligned_feature_id <- "aligned_feature_id_example" # character | feature (aligned over runs) whose features to read. #[DEPRECATED] Get all features the given feature (aligned over runs) was aligned from api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetFeatures(var_project_id, var_aligned_feature_iddata_file = "result.txt") result <- api_instance$features_api$GetFeatures(var_project_id, var_aligned_feature_id) dput(result) #################### GetFeaturesPage #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_aligned_feature_id <- "aligned_feature_id_example" # character | feature (aligned over runs) whose features to read. var_page <- 0 # integer | Zero-based page index (0..N) (Optional) var_size <- 20 # integer | The size of the page to be returned (Optional) var_sort <- c("inner_example") # array[character] | Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. (Optional) #Page of features the given feature (aligned over runs) was aligned from, one per run it has been detected in api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetFeaturesPage(var_project_id, var_aligned_feature_id, page = var_page, size = var_size, sort = var_sortdata_file = "result.txt") result <- api_instance$features_api$GetFeaturesPage(var_project_id, var_aligned_feature_id, page = var_page, size = var_size, sort = var_sort) dput(result) #################### GetFingerprintPrediction #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_aligned_feature_id <- "aligned_feature_id_example" # character | feature (aligned over runs) the formula result belongs to. var_formula_id <- "formula_id_example" # character | identifier of the requested formula result #Returns predicted fingerprint (CSI:FingerID) for the given formula result identifier (formulaId) api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetFingerprintPrediction(var_project_id, var_aligned_feature_id, var_formula_iddata_file = "result.txt") result <- api_instance$features_api$GetFingerprintPrediction(var_project_id, var_aligned_feature_id, var_formula_id) dput(result) #################### GetFormulaAnnotatedMsMsData #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_aligned_feature_id <- "aligned_feature_id_example" # character | feature (aligned over runs) the formula result belongs to. var_formula_id <- "formula_id_example" # character | identifier of the requested formula result var_ms_data_search_prepared <- FALSE # character | Returns all fragment spectra in a preprocessed form as used for fast Cosine/Modified Cosine computation. Gives you spectra compatible with SpectralLibraryMatch peak assignments and reference spectra. (Optional) #Returns MS/MS Spectrum annotated with fragments and losses for provided formulaId api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetFormulaAnnotatedMsMsData(var_project_id, var_aligned_feature_id, var_formula_id, ms_data_search_prepared = var_ms_data_search_prepareddata_file = "result.txt") result <- api_instance$features_api$GetFormulaAnnotatedMsMsData(var_project_id, var_aligned_feature_id, var_formula_id, ms_data_search_prepared = var_ms_data_search_prepared) dput(result) #################### GetFormulaAnnotatedSpectrum #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_aligned_feature_id <- "aligned_feature_id_example" # character | feature (aligned over runs) the formula result belongs to. var_formula_id <- "formula_id_example" # character | identifier of the requested formula result var_spectrum_index <- -1 # integer | index of the spectrum to be annotated. Merged MS/MS will be used if spectrumIndex < 0 (default) (Optional) var_search_prepared <- FALSE # character | Returns all fragment spectra in a preprocessed form as used for fast Cosine/Modified Cosine computation. Gives you spectra compatible with SpectralLibraryMatch peak assignments and reference spectra. (Optional) #Returns a fragmentation spectrum (e api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetFormulaAnnotatedSpectrum(var_project_id, var_aligned_feature_id, var_formula_id, spectrum_index = var_spectrum_index, search_prepared = var_search_prepareddata_file = "result.txt") result <- api_instance$features_api$GetFormulaAnnotatedSpectrum(var_project_id, var_aligned_feature_id, var_formula_id, spectrum_index = var_spectrum_index, search_prepared = var_search_prepared) dput(result) #################### GetFormulaCandidate #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_aligned_feature_id <- "aligned_feature_id_example" # character | feature (aligned over runs) the formula result belongs to. var_formula_id <- "formula_id_example" # character | identifier of the requested formula result var_ms_data_search_prepared <- FALSE # character | Returns all fragment spectra in a preprocessed form as used for fast Cosine/Modified Cosine computation. Gives you spectra compatible with SpectralLibraryMatch peak assignments and reference spectra. (Optional) var_opt_fields <- c("none") # array[character] | set of optional fields to be included. Use 'none' only to override defaults. (Optional) #FormulaResultContainers for the given 'formulaId' with minimal information. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetFormulaCandidate(var_project_id, var_aligned_feature_id, var_formula_id, ms_data_search_prepared = var_ms_data_search_prepared, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$features_api$GetFormulaCandidate(var_project_id, var_aligned_feature_id, var_formula_id, ms_data_search_prepared = var_ms_data_search_prepared, opt_fields = var_opt_fields) dput(result) #################### GetFormulaCandidates #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_aligned_feature_id <- "aligned_feature_id_example" # character | feature (aligned over runs) the formula result belongs to. var_ms_data_search_prepared <- FALSE # character | Returns all fragment spectra in a preprocessed form as used for fast Cosine/Modified Cosine computation. Gives you spectra compatible with SpectralLibraryMatch peak assignments and reference spectra. (Optional) var_opt_fields <- c("none") # array[character] | set of optional fields to be included. Use 'none' only to override defaults. (Optional) #[DEPRECATED] List of FormulaResultContainers available for this feature with minimal information api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetFormulaCandidates(var_project_id, var_aligned_feature_id, ms_data_search_prepared = var_ms_data_search_prepared, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$features_api$GetFormulaCandidates(var_project_id, var_aligned_feature_id, ms_data_search_prepared = var_ms_data_search_prepared, opt_fields = var_opt_fields) dput(result) #################### GetFormulaCandidatesPage #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_aligned_feature_id <- "aligned_feature_id_example" # character | feature (aligned over runs) the formula result belongs to. var_page <- 0 # integer | Zero-based page index (0..N) (Optional) var_size <- 20 # integer | The size of the page to be returned (Optional) var_sort <- c("inner_example") # array[character] | Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. (Optional) var_ms_data_search_prepared <- FALSE # character | Returns all fragment spectra in a preprocessed form as used for fast Cosine/Modified Cosine computation. Gives you spectra compatible with SpectralLibraryMatch peak assignments and reference spectra. (Optional) var_opt_fields <- c("none") # array[character] | set of optional fields to be included. Use 'none' only to override defaults. (Optional) #Page of FormulaResultContainers available for this feature with minimal information. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetFormulaCandidatesPage(var_project_id, var_aligned_feature_id, page = var_page, size = var_size, sort = var_sort, ms_data_search_prepared = var_ms_data_search_prepared, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$features_api$GetFormulaCandidatesPage(var_project_id, var_aligned_feature_id, page = var_page, size = var_size, sort = var_sort, ms_data_search_prepared = var_ms_data_search_prepared, opt_fields = var_opt_fields) dput(result) #################### GetFragTree #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_aligned_feature_id <- "aligned_feature_id_example" # character | feature (aligned over runs) the formula result belongs to. var_formula_id <- "formula_id_example" # character | identifier of the requested formula result #Returns fragmentation tree (SIRIUS) for the given formula result identifier api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetFragTree(var_project_id, var_aligned_feature_id, var_formula_iddata_file = "result.txt") result <- api_instance$features_api$GetFragTree(var_project_id, var_aligned_feature_id, var_formula_id) dput(result) #################### GetIsotopePatternAnnotation #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_aligned_feature_id <- "aligned_feature_id_example" # character | feature (aligned over runs) the formula result belongs to. var_formula_id <- "formula_id_example" # character | identifier of the requested formula result #Returns Isotope pattern information for given formulaId api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetIsotopePatternAnnotation(var_project_id, var_aligned_feature_id, var_formula_iddata_file = "result.txt") result <- api_instance$features_api$GetIsotopePatternAnnotation(var_project_id, var_aligned_feature_id, var_formula_id) dput(result) #################### GetLipidAnnotation #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_aligned_feature_id <- "aligned_feature_id_example" # character | feature (aligned over runs) the formula result belongs to. var_formula_id <- "formula_id_example" # character | identifier of the requested formula result #Returns Lipid annotation (ElGordo) for the given formulaId api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetLipidAnnotation(var_project_id, var_aligned_feature_id, var_formula_iddata_file = "result.txt") result <- api_instance$features_api$GetLipidAnnotation(var_project_id, var_aligned_feature_id, var_formula_id) dput(result) #################### GetMsData #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_aligned_feature_id <- "aligned_feature_id_example" # character | feature (aligned over runs) the Mass Spec data belongs to. var_ms_data_search_prepared <- FALSE # character | Returns all fragment spectra in a preprocessed form as used for fast Cosine/Modified Cosine computation. Gives you spectra compatible with SpectralLibraryMatch peak assignments and reference spectra. (Optional) #Mass Spec data (input data) for the given 'alignedFeatureId' . api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetMsData(var_project_id, var_aligned_feature_id, ms_data_search_prepared = var_ms_data_search_prepareddata_file = "result.txt") result <- api_instance$features_api$GetMsData(var_project_id, var_aligned_feature_id, ms_data_search_prepared = var_ms_data_search_prepared) dput(result) #################### GetSpectralLibraryMatch #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_aligned_feature_id <- "aligned_feature_id_example" # character | feature (aligned over runs) the structure candidates belong to. var_match_id <- "match_id_example" # character | id of the library match to be returned. var_opt_fields <- c("none") # array[character] | (Optional) #Spectral library match for the given 'alignedFeatureId'. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetSpectralLibraryMatch(var_project_id, var_aligned_feature_id, var_match_id, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$features_api$GetSpectralLibraryMatch(var_project_id, var_aligned_feature_id, var_match_id, opt_fields = var_opt_fields) dput(result) #################### GetSpectralLibraryMatches #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_aligned_feature_id <- "aligned_feature_id_example" # character | feature (aligned over runs) the structure candidates belong to. var_min_shared_peaks <- 1 # integer | (Optional) var_min_similarity <- 0.2 # numeric | (Optional) var_inchi_key <- "" # character | (Optional) var_opt_fields <- c("none") # array[character] | (Optional) #[DEPRECATED] List of spectral library matches for the given 'alignedFeatureId' api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetSpectralLibraryMatches(var_project_id, var_aligned_feature_id, min_shared_peaks = var_min_shared_peaks, min_similarity = var_min_similarity, inchi_key = var_inchi_key, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$features_api$GetSpectralLibraryMatches(var_project_id, var_aligned_feature_id, min_shared_peaks = var_min_shared_peaks, min_similarity = var_min_similarity, inchi_key = var_inchi_key, opt_fields = var_opt_fields) dput(result) #################### GetSpectralLibraryMatchesPage #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_aligned_feature_id <- "aligned_feature_id_example" # character | feature (aligned over runs) the structure candidates belong to. var_page <- 0 # integer | Zero-based page index (0..N) (Optional) var_size <- 20 # integer | The size of the page to be returned (Optional) var_sort <- c("inner_example") # array[character] | Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. (Optional) var_min_shared_peaks <- 1 # integer | (Optional) var_min_similarity <- 0.2 # numeric | (Optional) var_inchi_key <- "" # character | (Optional) var_opt_fields <- c("none") # array[character] | (Optional) #Page of spectral library matches for the given 'alignedFeatureId'. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetSpectralLibraryMatchesPage(var_project_id, var_aligned_feature_id, page = var_page, size = var_size, sort = var_sort, min_shared_peaks = var_min_shared_peaks, min_similarity = var_min_similarity, inchi_key = var_inchi_key, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$features_api$GetSpectralLibraryMatchesPage(var_project_id, var_aligned_feature_id, page = var_page, size = var_size, sort = var_sort, min_shared_peaks = var_min_shared_peaks, min_similarity = var_min_similarity, inchi_key = var_inchi_key, opt_fields = var_opt_fields) dput(result) #################### GetSpectralLibraryMatchesSummary #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_aligned_feature_id <- "aligned_feature_id_example" # character | feature (aligned over runs) the structure candidates belong to. var_min_shared_peaks <- 1 # integer | min threshold of shared peaks. (Optional) var_min_similarity <- 0.2 # numeric | min spectral similarity threshold. (Optional) var_inchi_key <- "" # character | 2D inchi key of the compound in the structure database. (Optional) #Summarize matched reference spectra for the given 'alignedFeatureId'. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetSpectralLibraryMatchesSummary(var_project_id, var_aligned_feature_id, min_shared_peaks = var_min_shared_peaks, min_similarity = var_min_similarity, inchi_key = var_inchi_keydata_file = "result.txt") result <- api_instance$features_api$GetSpectralLibraryMatchesSummary(var_project_id, var_aligned_feature_id, min_shared_peaks = var_min_shared_peaks, min_similarity = var_min_similarity, inchi_key = var_inchi_key) dput(result) #################### GetStructureCandidates #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_aligned_feature_id <- "aligned_feature_id_example" # character | feature (aligned over runs) the structure candidates belong to. var_opt_fields <- c("none") # array[character] | set of optional fields to be included. Use 'none' only to override defaults. (Optional) #[DEPRECATED] List of structure database search candidates ranked by CSI:FingerID score for the given 'alignedFeatureId' with minimal information api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetStructureCandidates(var_project_id, var_aligned_feature_id, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$features_api$GetStructureCandidates(var_project_id, var_aligned_feature_id, opt_fields = var_opt_fields) dput(result) #################### GetStructureCandidatesByFormula #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_aligned_feature_id <- "aligned_feature_id_example" # character | feature (aligned over runs) the formula result belongs to. var_formula_id <- "formula_id_example" # character | identifier of the requested formula result var_opt_fields <- c("none") # array[character] | set of optional fields to be included. Use 'none' only to override defaults. (Optional) #[DEPRECATED] List of CSI:FingerID structure database search candidates for the given 'formulaId' with minimal information api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetStructureCandidatesByFormula(var_project_id, var_aligned_feature_id, var_formula_id, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$features_api$GetStructureCandidatesByFormula(var_project_id, var_aligned_feature_id, var_formula_id, opt_fields = var_opt_fields) dput(result) #################### GetStructureCandidatesByFormulaPage #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_aligned_feature_id <- "aligned_feature_id_example" # character | feature (aligned over runs) the formula result belongs to. var_formula_id <- "formula_id_example" # character | identifier of the requested formula result var_page <- 0 # integer | Zero-based page index (0..N) (Optional) var_size <- 20 # integer | The size of the page to be returned (Optional) var_sort <- c("inner_example") # array[character] | Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. (Optional) var_opt_fields <- c("none") # array[character] | set of optional fields to be included. Use 'none' only to override defaults. (Optional) #Page of CSI:FingerID structure database search candidates for the given 'formulaId' with minimal information. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetStructureCandidatesByFormulaPage(var_project_id, var_aligned_feature_id, var_formula_id, page = var_page, size = var_size, sort = var_sort, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$features_api$GetStructureCandidatesByFormulaPage(var_project_id, var_aligned_feature_id, var_formula_id, page = var_page, size = var_size, sort = var_sort, opt_fields = var_opt_fields) dput(result) #################### GetStructureCandidatesPage #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_aligned_feature_id <- "aligned_feature_id_example" # character | feature (aligned over runs) the structure candidates belong to. var_page <- 0 # integer | Zero-based page index (0..N) (Optional) var_size <- 20 # integer | The size of the page to be returned (Optional) var_sort <- c("inner_example") # array[character] | Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. (Optional) var_opt_fields <- c("none") # array[character] | set of optional fields to be included. Use 'none' only to override defaults. (Optional) #Page of structure database search candidates ranked by CSI:FingerID score for the given 'alignedFeatureId' with minimal information. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetStructureCandidatesPage(var_project_id, var_aligned_feature_id, page = var_page, size = var_size, sort = var_sort, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$features_api$GetStructureCandidatesPage(var_project_id, var_aligned_feature_id, page = var_page, size = var_size, sort = var_sort, opt_fields = var_opt_fields) dput(result) ## End(Not run)## Not run: #################### AddAlignedFeatures #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to import into. var_feature_import <- c(FeatureImport$new(123, 123, "name_example", "externalFeatureId_example", c("detectedAdducts_example"), 123, 123, 123, "NOT_APPLICABLE", BasicSpectrum$new("cosineQuery_example", c(SimplePeak$new(123, 123)), "name_example", 123, "collisionEnergy_example", "instrument_example", 123, 123, SimplePeak$new(123, 123), 123, 123, 123, 123, 123), c(BasicSpectrum$new("cosineQuery_example", c(SimplePeak$new(123, 123)), "name_example", 123, "collisionEnergy_example", "instrument_example", 123, 123, SimplePeak$new(123, 123), 123, 123, 123, 123, 123)), c(BasicSpectrum$new("cosineQuery_example", c(SimplePeak$new(123, 123)), "name_example", 123, "collisionEnergy_example", "instrument_example", 123, 123, SimplePeak$new(123, 123), 123, 123, 123, 123, 123)))) # array[FeatureImport] | the feature data to be imported var_profile <- "profile_example" # character | profile describing the instrument used to measure the data. Used to merge spectra. (Optional) var_opt_fields <- c("none") # array[character] | set of optional fields to be included. Use 'none' to override defaults. (Optional) #Import (aligned) features into the project. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$AddAlignedFeatures(var_project_id, var_feature_import, profile = var_profile, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$features_api$AddAlignedFeatures(var_project_id, var_feature_import, profile = var_profile, opt_fields = var_opt_fields) dput(result) #################### DeleteAlignedFeature #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to delete from. var_aligned_feature_id <- "aligned_feature_id_example" # character | identifier of feature (aligned over runs) to delete. #Delete feature (aligned over runs) with the given identifier from the specified project-space. api_instance <- rsirius_api$new() api_instance$features_api$DeleteAlignedFeature(var_project_id, var_aligned_feature_id) #################### DeleteAlignedFeatures #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to delete from. var_request_body <- c("property_example") # array[character] | #Delete feature (aligned over runs) with the given identifier from the specified project-space. api_instance <- rsirius_api$new() api_instance$features_api$DeleteAlignedFeatures(var_project_id, var_request_body) #################### DeleteAlignedFeaturesByQuery #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to delete from. var_search_query <- "search_query_example" # character | tag/text/range query in lucene syntax; must be non-empty (a blank query would match every feature). #Delete all features (aligned over runs) that match the given lucene search query from the specified project-space. api_instance <- rsirius_api$new() api_instance$features_api$DeleteAlignedFeaturesByQuery(var_project_id, var_search_query) #################### GetAlignedFeature #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_aligned_feature_id <- "aligned_feature_id_example" # character | identifier of feature (aligned over runs) to access. var_ms_data_search_prepared <- FALSE # character | Returns all fragment spectra in a preprocessed form as used for fast Cosine/Modified Cosine computation. Gives you spectra compatible with SpectralLibraryMatch peak assignments and reference spectra. (Optional) var_opt_fields <- c("none") # array[character] | set of optional fields to be included. Use 'none' only to override defaults. (Optional) #Get feature (aligned over runs) with the given identifier from the specified project-space. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetAlignedFeature(var_project_id, var_aligned_feature_id, ms_data_search_prepared = var_ms_data_search_prepared, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$features_api$GetAlignedFeature(var_project_id, var_aligned_feature_id, ms_data_search_prepared = var_ms_data_search_prepared, opt_fields = var_opt_fields) dput(result) #################### GetAlignedFeatures #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_ms_data_search_prepared <- FALSE # character | Returns all fragment spectra in a preprocessed form as used for fast Cosine/Modified Cosine computation. Gives you spectra compatible with SpectralLibraryMatch peak assignments and reference spectra. (Optional) var_opt_fields <- c("none") # array[character] | set of optional fields to be included. Use 'none' only to override defaults. (Optional) #[DEPRECATED] Get all available features (aligned over runs) in the given project-space api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetAlignedFeatures(var_project_id, ms_data_search_prepared = var_ms_data_search_prepared, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$features_api$GetAlignedFeatures(var_project_id, ms_data_search_prepared = var_ms_data_search_prepared, opt_fields = var_opt_fields) dput(result) #################### GetAlignedFeaturesPage #################### library(RSirius) var_project_id <- "project_id_example" # character | project space to get features (aligned over runs) from. var_page <- 0 # integer | Zero-based page index (0..N) (Optional) var_size <- 20 # integer | The size of the page to be returned (Optional) var_sort <- c("inner_example") # array[character] | Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. (Optional) var_search_query <- "search_query_example" # character | Optional search query in lucene syntax. Omit this parameter to page over all features. (Optional) var_ms_data_search_prepared <- FALSE # character | Returns all fragment spectra in a preprocessed form as used for fast Cosine/Modified Cosine computation. Gives you spectra compatible with SpectralLibraryMatch peak assignments and reference spectra. (Optional) var_opt_fields <- c("none") # array[character] | set of optional fields to be included. Use 'none' only to override defaults. (Optional) #Get features (aligned over runs) in the given project-space api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetAlignedFeaturesPage(var_project_id, page = var_page, size = var_size, sort = var_sort, search_query = var_search_query, ms_data_search_prepared = var_ms_data_search_prepared, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$features_api$GetAlignedFeaturesPage(var_project_id, page = var_page, size = var_size, sort = var_sort, search_query = var_search_query, ms_data_search_prepared = var_ms_data_search_prepared, opt_fields = var_opt_fields) dput(result) #################### GetAlignedFeaturesSearchableFields #################### library(RSirius) var_project_id <- "project_id_example" # character | project space to read the searchable feature fields from. #Get all fields that can be used in the searchQuery parameter of feature (aligned over runs) endpoints api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetAlignedFeaturesSearchableFields(var_project_iddata_file = "result.txt") result <- api_instance$features_api$GetAlignedFeaturesSearchableFields(var_project_id) dput(result) #################### GetBestMatchingCompoundClasses #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_aligned_feature_id <- "aligned_feature_id_example" # character | feature (aligned over runs) the formula result belongs to. var_formula_id <- "formula_id_example" # character | identifier of the requested formula result #Return Best matching compound classes for given formulaId api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetBestMatchingCompoundClasses(var_project_id, var_aligned_feature_id, var_formula_iddata_file = "result.txt") result <- api_instance$features_api$GetBestMatchingCompoundClasses(var_project_id, var_aligned_feature_id, var_formula_id) dput(result) #################### GetCanopusPrediction #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_aligned_feature_id <- "aligned_feature_id_example" # character | feature (aligned over runs) the formula result belongs to. var_formula_id <- "formula_id_example" # character | identifier of the requested formula result #All predicted compound classes (CANOPUS) from ClassyFire and NPC and their probabilities, api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetCanopusPrediction(var_project_id, var_aligned_feature_id, var_formula_iddata_file = "result.txt") result <- api_instance$features_api$GetCanopusPrediction(var_project_id, var_aligned_feature_id, var_formula_id) dput(result) #################### GetDeNovoStructureCandidates #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_aligned_feature_id <- "aligned_feature_id_example" # character | feature (aligned over runs) the structure candidates belong to. var_opt_fields <- c("none") # array[character] | set of optional fields to be included. Use 'none' only to override defaults. (Optional) #[DEPRECATED] List of de novo structure candidates (e api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetDeNovoStructureCandidates(var_project_id, var_aligned_feature_id, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$features_api$GetDeNovoStructureCandidates(var_project_id, var_aligned_feature_id, opt_fields = var_opt_fields) dput(result) #################### GetDeNovoStructureCandidatesByFormula #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_aligned_feature_id <- "aligned_feature_id_example" # character | feature (aligned over runs) the formula result belongs to. var_formula_id <- "formula_id_example" # character | identifier of the requested formula result var_opt_fields <- c("none") # array[character] | set of optional fields to be included. Use 'none' only to override defaults. (Optional) #[DEPRECATED] List of de novo structure candidates (e api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetDeNovoStructureCandidatesByFormula(var_project_id, var_aligned_feature_id, var_formula_id, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$features_api$GetDeNovoStructureCandidatesByFormula(var_project_id, var_aligned_feature_id, var_formula_id, opt_fields = var_opt_fields) dput(result) #################### GetDeNovoStructureCandidatesByFormulaPage #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_aligned_feature_id <- "aligned_feature_id_example" # character | feature (aligned over runs) the formula result belongs to. var_formula_id <- "formula_id_example" # character | identifier of the requested formula result var_page <- 0 # integer | Zero-based page index (0..N) (Optional) var_size <- 20 # integer | The size of the page to be returned (Optional) var_sort <- c("inner_example") # array[character] | Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. (Optional) var_opt_fields <- c("none") # array[character] | set of optional fields to be included. Use 'none' only to override defaults. (Optional) #Page of de novo structure candidates (e.g. generated by MsNovelist) ranked by CSI:FingerID score for the given 'formulaId' with minimal information. StructureCandidates can be enriched with molecular fingerprint. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetDeNovoStructureCandidatesByFormulaPage(var_project_id, var_aligned_feature_id, var_formula_id, page = var_page, size = var_size, sort = var_sort, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$features_api$GetDeNovoStructureCandidatesByFormulaPage(var_project_id, var_aligned_feature_id, var_formula_id, page = var_page, size = var_size, sort = var_sort, opt_fields = var_opt_fields) dput(result) #################### GetDeNovoStructureCandidatesPage #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_aligned_feature_id <- "aligned_feature_id_example" # character | feature (aligned over runs) the structure candidates belong to. var_page <- 0 # integer | Zero-based page index (0..N) (Optional) var_size <- 20 # integer | The size of the page to be returned (Optional) var_sort <- c("inner_example") # array[character] | Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. (Optional) var_opt_fields <- c("none") # array[character] | set of optional fields to be included. Use 'none' only to override defaults. (Optional) #Page of de novo structure candidates (e.g. generated by MsNovelist) ranked by CSI:FingerID score for the given 'alignedFeatureId' with minimal information. StructureCandidates can be enriched with molecular fingerprint. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetDeNovoStructureCandidatesPage(var_project_id, var_aligned_feature_id, page = var_page, size = var_size, sort = var_sort, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$features_api$GetDeNovoStructureCandidatesPage(var_project_id, var_aligned_feature_id, page = var_page, size = var_size, sort = var_sort, opt_fields = var_opt_fields) dput(result) #################### GetFeatureQuantTable #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_search_query <- "search_query_example" # character | Optional search query in lucene syntax. Omit this parameter to quantify all features. (Optional) var_type <- "APEX_INTENSITY" # character | quantification type. (Optional) var_opt_fields <- c(QuantTableOptField$new()) # array[QuantTableOptField] | (Optional) #Returns the full quantification table of features api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetFeatureQuantTable(var_project_id, search_query = var_search_query, type = var_type, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$features_api$GetFeatureQuantTable(var_project_id, search_query = var_search_query, type = var_type, opt_fields = var_opt_fields) dput(result) #################### GetFeatures #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_aligned_feature_id <- "aligned_feature_id_example" # character | feature (aligned over runs) whose features to read. #[DEPRECATED] Get all features the given feature (aligned over runs) was aligned from api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetFeatures(var_project_id, var_aligned_feature_iddata_file = "result.txt") result <- api_instance$features_api$GetFeatures(var_project_id, var_aligned_feature_id) dput(result) #################### GetFeaturesPage #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_aligned_feature_id <- "aligned_feature_id_example" # character | feature (aligned over runs) whose features to read. var_page <- 0 # integer | Zero-based page index (0..N) (Optional) var_size <- 20 # integer | The size of the page to be returned (Optional) var_sort <- c("inner_example") # array[character] | Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. (Optional) #Page of features the given feature (aligned over runs) was aligned from, one per run it has been detected in api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetFeaturesPage(var_project_id, var_aligned_feature_id, page = var_page, size = var_size, sort = var_sortdata_file = "result.txt") result <- api_instance$features_api$GetFeaturesPage(var_project_id, var_aligned_feature_id, page = var_page, size = var_size, sort = var_sort) dput(result) #################### GetFingerprintPrediction #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_aligned_feature_id <- "aligned_feature_id_example" # character | feature (aligned over runs) the formula result belongs to. var_formula_id <- "formula_id_example" # character | identifier of the requested formula result #Returns predicted fingerprint (CSI:FingerID) for the given formula result identifier (formulaId) api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetFingerprintPrediction(var_project_id, var_aligned_feature_id, var_formula_iddata_file = "result.txt") result <- api_instance$features_api$GetFingerprintPrediction(var_project_id, var_aligned_feature_id, var_formula_id) dput(result) #################### GetFormulaAnnotatedMsMsData #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_aligned_feature_id <- "aligned_feature_id_example" # character | feature (aligned over runs) the formula result belongs to. var_formula_id <- "formula_id_example" # character | identifier of the requested formula result var_ms_data_search_prepared <- FALSE # character | Returns all fragment spectra in a preprocessed form as used for fast Cosine/Modified Cosine computation. Gives you spectra compatible with SpectralLibraryMatch peak assignments and reference spectra. (Optional) #Returns MS/MS Spectrum annotated with fragments and losses for provided formulaId api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetFormulaAnnotatedMsMsData(var_project_id, var_aligned_feature_id, var_formula_id, ms_data_search_prepared = var_ms_data_search_prepareddata_file = "result.txt") result <- api_instance$features_api$GetFormulaAnnotatedMsMsData(var_project_id, var_aligned_feature_id, var_formula_id, ms_data_search_prepared = var_ms_data_search_prepared) dput(result) #################### GetFormulaAnnotatedSpectrum #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_aligned_feature_id <- "aligned_feature_id_example" # character | feature (aligned over runs) the formula result belongs to. var_formula_id <- "formula_id_example" # character | identifier of the requested formula result var_spectrum_index <- -1 # integer | index of the spectrum to be annotated. Merged MS/MS will be used if spectrumIndex < 0 (default) (Optional) var_search_prepared <- FALSE # character | Returns all fragment spectra in a preprocessed form as used for fast Cosine/Modified Cosine computation. Gives you spectra compatible with SpectralLibraryMatch peak assignments and reference spectra. (Optional) #Returns a fragmentation spectrum (e api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetFormulaAnnotatedSpectrum(var_project_id, var_aligned_feature_id, var_formula_id, spectrum_index = var_spectrum_index, search_prepared = var_search_prepareddata_file = "result.txt") result <- api_instance$features_api$GetFormulaAnnotatedSpectrum(var_project_id, var_aligned_feature_id, var_formula_id, spectrum_index = var_spectrum_index, search_prepared = var_search_prepared) dput(result) #################### GetFormulaCandidate #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_aligned_feature_id <- "aligned_feature_id_example" # character | feature (aligned over runs) the formula result belongs to. var_formula_id <- "formula_id_example" # character | identifier of the requested formula result var_ms_data_search_prepared <- FALSE # character | Returns all fragment spectra in a preprocessed form as used for fast Cosine/Modified Cosine computation. Gives you spectra compatible with SpectralLibraryMatch peak assignments and reference spectra. (Optional) var_opt_fields <- c("none") # array[character] | set of optional fields to be included. Use 'none' only to override defaults. (Optional) #FormulaResultContainers for the given 'formulaId' with minimal information. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetFormulaCandidate(var_project_id, var_aligned_feature_id, var_formula_id, ms_data_search_prepared = var_ms_data_search_prepared, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$features_api$GetFormulaCandidate(var_project_id, var_aligned_feature_id, var_formula_id, ms_data_search_prepared = var_ms_data_search_prepared, opt_fields = var_opt_fields) dput(result) #################### GetFormulaCandidates #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_aligned_feature_id <- "aligned_feature_id_example" # character | feature (aligned over runs) the formula result belongs to. var_ms_data_search_prepared <- FALSE # character | Returns all fragment spectra in a preprocessed form as used for fast Cosine/Modified Cosine computation. Gives you spectra compatible with SpectralLibraryMatch peak assignments and reference spectra. (Optional) var_opt_fields <- c("none") # array[character] | set of optional fields to be included. Use 'none' only to override defaults. (Optional) #[DEPRECATED] List of FormulaResultContainers available for this feature with minimal information api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetFormulaCandidates(var_project_id, var_aligned_feature_id, ms_data_search_prepared = var_ms_data_search_prepared, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$features_api$GetFormulaCandidates(var_project_id, var_aligned_feature_id, ms_data_search_prepared = var_ms_data_search_prepared, opt_fields = var_opt_fields) dput(result) #################### GetFormulaCandidatesPage #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_aligned_feature_id <- "aligned_feature_id_example" # character | feature (aligned over runs) the formula result belongs to. var_page <- 0 # integer | Zero-based page index (0..N) (Optional) var_size <- 20 # integer | The size of the page to be returned (Optional) var_sort <- c("inner_example") # array[character] | Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. (Optional) var_ms_data_search_prepared <- FALSE # character | Returns all fragment spectra in a preprocessed form as used for fast Cosine/Modified Cosine computation. Gives you spectra compatible with SpectralLibraryMatch peak assignments and reference spectra. (Optional) var_opt_fields <- c("none") # array[character] | set of optional fields to be included. Use 'none' only to override defaults. (Optional) #Page of FormulaResultContainers available for this feature with minimal information. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetFormulaCandidatesPage(var_project_id, var_aligned_feature_id, page = var_page, size = var_size, sort = var_sort, ms_data_search_prepared = var_ms_data_search_prepared, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$features_api$GetFormulaCandidatesPage(var_project_id, var_aligned_feature_id, page = var_page, size = var_size, sort = var_sort, ms_data_search_prepared = var_ms_data_search_prepared, opt_fields = var_opt_fields) dput(result) #################### GetFragTree #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_aligned_feature_id <- "aligned_feature_id_example" # character | feature (aligned over runs) the formula result belongs to. var_formula_id <- "formula_id_example" # character | identifier of the requested formula result #Returns fragmentation tree (SIRIUS) for the given formula result identifier api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetFragTree(var_project_id, var_aligned_feature_id, var_formula_iddata_file = "result.txt") result <- api_instance$features_api$GetFragTree(var_project_id, var_aligned_feature_id, var_formula_id) dput(result) #################### GetIsotopePatternAnnotation #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_aligned_feature_id <- "aligned_feature_id_example" # character | feature (aligned over runs) the formula result belongs to. var_formula_id <- "formula_id_example" # character | identifier of the requested formula result #Returns Isotope pattern information for given formulaId api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetIsotopePatternAnnotation(var_project_id, var_aligned_feature_id, var_formula_iddata_file = "result.txt") result <- api_instance$features_api$GetIsotopePatternAnnotation(var_project_id, var_aligned_feature_id, var_formula_id) dput(result) #################### GetLipidAnnotation #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_aligned_feature_id <- "aligned_feature_id_example" # character | feature (aligned over runs) the formula result belongs to. var_formula_id <- "formula_id_example" # character | identifier of the requested formula result #Returns Lipid annotation (ElGordo) for the given formulaId api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetLipidAnnotation(var_project_id, var_aligned_feature_id, var_formula_iddata_file = "result.txt") result <- api_instance$features_api$GetLipidAnnotation(var_project_id, var_aligned_feature_id, var_formula_id) dput(result) #################### GetMsData #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_aligned_feature_id <- "aligned_feature_id_example" # character | feature (aligned over runs) the Mass Spec data belongs to. var_ms_data_search_prepared <- FALSE # character | Returns all fragment spectra in a preprocessed form as used for fast Cosine/Modified Cosine computation. Gives you spectra compatible with SpectralLibraryMatch peak assignments and reference spectra. (Optional) #Mass Spec data (input data) for the given 'alignedFeatureId' . api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetMsData(var_project_id, var_aligned_feature_id, ms_data_search_prepared = var_ms_data_search_prepareddata_file = "result.txt") result <- api_instance$features_api$GetMsData(var_project_id, var_aligned_feature_id, ms_data_search_prepared = var_ms_data_search_prepared) dput(result) #################### GetSpectralLibraryMatch #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_aligned_feature_id <- "aligned_feature_id_example" # character | feature (aligned over runs) the structure candidates belong to. var_match_id <- "match_id_example" # character | id of the library match to be returned. var_opt_fields <- c("none") # array[character] | (Optional) #Spectral library match for the given 'alignedFeatureId'. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetSpectralLibraryMatch(var_project_id, var_aligned_feature_id, var_match_id, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$features_api$GetSpectralLibraryMatch(var_project_id, var_aligned_feature_id, var_match_id, opt_fields = var_opt_fields) dput(result) #################### GetSpectralLibraryMatches #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_aligned_feature_id <- "aligned_feature_id_example" # character | feature (aligned over runs) the structure candidates belong to. var_min_shared_peaks <- 1 # integer | (Optional) var_min_similarity <- 0.2 # numeric | (Optional) var_inchi_key <- "" # character | (Optional) var_opt_fields <- c("none") # array[character] | (Optional) #[DEPRECATED] List of spectral library matches for the given 'alignedFeatureId' api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetSpectralLibraryMatches(var_project_id, var_aligned_feature_id, min_shared_peaks = var_min_shared_peaks, min_similarity = var_min_similarity, inchi_key = var_inchi_key, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$features_api$GetSpectralLibraryMatches(var_project_id, var_aligned_feature_id, min_shared_peaks = var_min_shared_peaks, min_similarity = var_min_similarity, inchi_key = var_inchi_key, opt_fields = var_opt_fields) dput(result) #################### GetSpectralLibraryMatchesPage #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_aligned_feature_id <- "aligned_feature_id_example" # character | feature (aligned over runs) the structure candidates belong to. var_page <- 0 # integer | Zero-based page index (0..N) (Optional) var_size <- 20 # integer | The size of the page to be returned (Optional) var_sort <- c("inner_example") # array[character] | Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. (Optional) var_min_shared_peaks <- 1 # integer | (Optional) var_min_similarity <- 0.2 # numeric | (Optional) var_inchi_key <- "" # character | (Optional) var_opt_fields <- c("none") # array[character] | (Optional) #Page of spectral library matches for the given 'alignedFeatureId'. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetSpectralLibraryMatchesPage(var_project_id, var_aligned_feature_id, page = var_page, size = var_size, sort = var_sort, min_shared_peaks = var_min_shared_peaks, min_similarity = var_min_similarity, inchi_key = var_inchi_key, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$features_api$GetSpectralLibraryMatchesPage(var_project_id, var_aligned_feature_id, page = var_page, size = var_size, sort = var_sort, min_shared_peaks = var_min_shared_peaks, min_similarity = var_min_similarity, inchi_key = var_inchi_key, opt_fields = var_opt_fields) dput(result) #################### GetSpectralLibraryMatchesSummary #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_aligned_feature_id <- "aligned_feature_id_example" # character | feature (aligned over runs) the structure candidates belong to. var_min_shared_peaks <- 1 # integer | min threshold of shared peaks. (Optional) var_min_similarity <- 0.2 # numeric | min spectral similarity threshold. (Optional) var_inchi_key <- "" # character | 2D inchi key of the compound in the structure database. (Optional) #Summarize matched reference spectra for the given 'alignedFeatureId'. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetSpectralLibraryMatchesSummary(var_project_id, var_aligned_feature_id, min_shared_peaks = var_min_shared_peaks, min_similarity = var_min_similarity, inchi_key = var_inchi_keydata_file = "result.txt") result <- api_instance$features_api$GetSpectralLibraryMatchesSummary(var_project_id, var_aligned_feature_id, min_shared_peaks = var_min_shared_peaks, min_similarity = var_min_similarity, inchi_key = var_inchi_key) dput(result) #################### GetStructureCandidates #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_aligned_feature_id <- "aligned_feature_id_example" # character | feature (aligned over runs) the structure candidates belong to. var_opt_fields <- c("none") # array[character] | set of optional fields to be included. Use 'none' only to override defaults. (Optional) #[DEPRECATED] List of structure database search candidates ranked by CSI:FingerID score for the given 'alignedFeatureId' with minimal information api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetStructureCandidates(var_project_id, var_aligned_feature_id, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$features_api$GetStructureCandidates(var_project_id, var_aligned_feature_id, opt_fields = var_opt_fields) dput(result) #################### GetStructureCandidatesByFormula #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_aligned_feature_id <- "aligned_feature_id_example" # character | feature (aligned over runs) the formula result belongs to. var_formula_id <- "formula_id_example" # character | identifier of the requested formula result var_opt_fields <- c("none") # array[character] | set of optional fields to be included. Use 'none' only to override defaults. (Optional) #[DEPRECATED] List of CSI:FingerID structure database search candidates for the given 'formulaId' with minimal information api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetStructureCandidatesByFormula(var_project_id, var_aligned_feature_id, var_formula_id, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$features_api$GetStructureCandidatesByFormula(var_project_id, var_aligned_feature_id, var_formula_id, opt_fields = var_opt_fields) dput(result) #################### GetStructureCandidatesByFormulaPage #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_aligned_feature_id <- "aligned_feature_id_example" # character | feature (aligned over runs) the formula result belongs to. var_formula_id <- "formula_id_example" # character | identifier of the requested formula result var_page <- 0 # integer | Zero-based page index (0..N) (Optional) var_size <- 20 # integer | The size of the page to be returned (Optional) var_sort <- c("inner_example") # array[character] | Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. (Optional) var_opt_fields <- c("none") # array[character] | set of optional fields to be included. Use 'none' only to override defaults. (Optional) #Page of CSI:FingerID structure database search candidates for the given 'formulaId' with minimal information. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetStructureCandidatesByFormulaPage(var_project_id, var_aligned_feature_id, var_formula_id, page = var_page, size = var_size, sort = var_sort, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$features_api$GetStructureCandidatesByFormulaPage(var_project_id, var_aligned_feature_id, var_formula_id, page = var_page, size = var_size, sort = var_sort, opt_fields = var_opt_fields) dput(result) #################### GetStructureCandidatesPage #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_aligned_feature_id <- "aligned_feature_id_example" # character | feature (aligned over runs) the structure candidates belong to. var_page <- 0 # integer | Zero-based page index (0..N) (Optional) var_size <- 20 # integer | The size of the page to be returned (Optional) var_sort <- c("inner_example") # array[character] | Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. (Optional) var_opt_fields <- c("none") # array[character] | set of optional fields to be included. Use 'none' only to override defaults. (Optional) #Page of structure database search candidates ranked by CSI:FingerID score for the given 'alignedFeatureId' with minimal information. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetStructureCandidatesPage(var_project_id, var_aligned_feature_id, page = var_page, size = var_size, sort = var_sort, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$features_api$GetStructureCandidatesPage(var_project_id, var_aligned_feature_id, page = var_page, size = var_size, sort = var_sort, opt_fields = var_opt_fields) dput(result) ## End(Not run)
User/developer friendly parameter subset for the CSI:FingerID Fingerprint tool Needs results from the Formula identification tool (Sirius).
FingerprintPrediction Class
An R6Class generator object
Create a new FingerprintPrediction
enabledIndicates whether the tool is enabled. character [optional]
useScoreThresholdIf true, an adaptive soft threshold will be applied to only compute Fingerprints for promising formula candidates Enabling is highly recommended. character [optional]
alwaysPredictHighRefMatchesIf true, fingerprints, compound classes and structures will be predicted for formula candidates whose reference spectrum similarity is above Sirius.minReferenceMatchScoreToInject, no matter which score threshold rules would otherwise apply. If NULL default value will be used. character [optional]
new()
Initialize a new FingerprintPrediction class.
FingerprintPrediction$new( enabled = NULL, useScoreThreshold = NULL, alwaysPredictHighRefMatches = NULL, ... )
enabledIndicates whether the tool is enabled.
useScoreThresholdIf true, an adaptive soft threshold will be applied to only compute Fingerprints for promising formula candidates Enabling is highly recommended.
alwaysPredictHighRefMatchesIf true, fingerprints, compound classes and structures will be predicted for formula candidates whose reference spectrum similarity is above Sirius.minReferenceMatchScoreToInject, no matter which score threshold rules would otherwise apply. If NULL default value will be used.
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
FingerprintPrediction$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
FingerprintPrediction$toList()
FingerprintPrediction as a base R list.
# convert array of FingerprintPrediction (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert FingerprintPrediction to a base R type
FingerprintPrediction$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of FingerprintPrediction
FingerprintPrediction$fromJSON(input_json)
input_jsonthe JSON input
the instance of FingerprintPrediction
toJSONString()
To JSON String
FingerprintPrediction$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
FingerprintPrediction in JSON format
fromJSONString()
Deserialize JSON string into an instance of FingerprintPrediction
FingerprintPrediction$fromJSONString(input_json)
input_jsonthe JSON input
the instance of FingerprintPrediction
validateJSON()
Validate JSON input with respect to FingerprintPrediction and throw an exception if invalid
FingerprintPrediction$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
FingerprintPrediction$toString()
String representation of FingerprintPrediction
isValid()
Return true if the values in all fields are valid.
FingerprintPrediction$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
FingerprintPrediction$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
FingerprintPrediction$print()
clone()
The objects of this class are cloneable with this method.
FingerprintPrediction$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `FingerprintPrediction$toList` ## ------------------------------------------------ # convert array of FingerprintPrediction (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `FingerprintPrediction$toList` ## ------------------------------------------------ # convert array of FingerprintPrediction (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
Molecular formula candidate that holds a unique identifier (molecular formula + adduct). It can be extended with optional scoring metrics and the raw results such as fragmentation trees and simulated isotope pattern.
FormulaCandidate Class
An R6Class generator object
Create a new FormulaCandidate
formulaIdUnique identifier of this formula candidate character [optional]
molecularFormulaMolecular formula of this formula candidate. character [optional]
adductAdduct of this formula candidate character [optional]
rankinteger [optional]
siriusScoreNormalizedNormalized Sirius Score of the formula candidate. If NULL result is not available numeric [optional]
siriusScoreSirius Score (isotope + tree score) of the formula candidate. If NULL result is not available numeric [optional]
isotopeScorenumeric [optional]
treeScorenumeric [optional]
zodiacScoreZodiac Score of the formula candidate. If NULL result is not available numeric [optional]
numOfExplainedPeaksinteger [optional]
numOfExplainablePeaksinteger [optional]
totalExplainedIntensitynumeric [optional]
medianMassDeviationDeviation [optional]
fragmentationTreeFragmentationTree [optional]
annotatedSpectrumAnnotatedSpectrum [optional]
isotopePatternAnnotationIsotopePatternAnnotation [optional]
lipidAnnotationLipidAnnotation [optional]
predictedFingerprintProbabilistic molecular fingerprint predicted by CSI:FingerID list(numeric) [optional]
compoundClassesCompoundClasses [optional]
canopusPredictionCanopusPrediction [optional]
new()
Initialize a new FormulaCandidate class.
FormulaCandidate$new( formulaId = NULL, molecularFormula = NULL, adduct = NULL, rank = NULL, siriusScoreNormalized = NULL, siriusScore = NULL, isotopeScore = NULL, treeScore = NULL, zodiacScore = NULL, numOfExplainedPeaks = NULL, numOfExplainablePeaks = NULL, totalExplainedIntensity = NULL, medianMassDeviation = NULL, fragmentationTree = NULL, annotatedSpectrum = NULL, isotopePatternAnnotation = NULL, lipidAnnotation = NULL, predictedFingerprint = NULL, compoundClasses = NULL, canopusPrediction = NULL, ... )
formulaIdUnique identifier of this formula candidate
molecularFormulaMolecular formula of this formula candidate.
adductAdduct of this formula candidate
rankrank
siriusScoreNormalizedNormalized Sirius Score of the formula candidate. If NULL result is not available
siriusScoreSirius Score (isotope + tree score) of the formula candidate. If NULL result is not available
isotopeScoreisotopeScore
treeScoretreeScore
zodiacScoreZodiac Score of the formula candidate. If NULL result is not available
numOfExplainedPeaksnumOfExplainedPeaks
numOfExplainablePeaksnumOfExplainablePeaks
totalExplainedIntensitytotalExplainedIntensity
medianMassDeviationmedianMassDeviation
fragmentationTreefragmentationTree
annotatedSpectrumannotatedSpectrum
isotopePatternAnnotationisotopePatternAnnotation
lipidAnnotationlipidAnnotation
predictedFingerprintProbabilistic molecular fingerprint predicted by CSI:FingerID
compoundClassescompoundClasses
canopusPredictioncanopusPrediction
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
FormulaCandidate$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
FormulaCandidate$toList()
FormulaCandidate as a base R list.
# convert array of FormulaCandidate (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert FormulaCandidate to a base R type
FormulaCandidate$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of FormulaCandidate
FormulaCandidate$fromJSON(input_json)
input_jsonthe JSON input
the instance of FormulaCandidate
toJSONString()
To JSON String
FormulaCandidate$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
FormulaCandidate in JSON format
fromJSONString()
Deserialize JSON string into an instance of FormulaCandidate
FormulaCandidate$fromJSONString(input_json)
input_jsonthe JSON input
the instance of FormulaCandidate
validateJSON()
Validate JSON input with respect to FormulaCandidate and throw an exception if invalid
FormulaCandidate$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
FormulaCandidate$toString()
String representation of FormulaCandidate
isValid()
Return true if the values in all fields are valid.
FormulaCandidate$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
FormulaCandidate$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
FormulaCandidate$print()
clone()
The objects of this class are cloneable with this method.
FormulaCandidate$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `FormulaCandidate$toList` ## ------------------------------------------------ # convert array of FormulaCandidate (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `FormulaCandidate$toList` ## ------------------------------------------------ # convert array of FormulaCandidate (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
Simple and easy serializable fragmentation tree model with annotated fragments/nodes and losses/edges Root fragment has index 0; Molecular formula and adduct are identical to the ones of the corresponding molecular formula candidate and SpectrumAnnotation
FragmentationTree Class
An R6Class generator object
Create a new FragmentationTree
fragmentslist(FragmentNode) [optional]
losseslist(LossEdge) [optional]
treeScorenumeric [optional]
molecularFormulacharacter [optional]
adductcharacter [optional]
new()
Initialize a new FragmentationTree class.
FragmentationTree$new( fragments = NULL, losses = NULL, treeScore = NULL, molecularFormula = NULL, adduct = NULL, ... )
fragmentsfragments
losseslosses
treeScoretreeScore
molecularFormulamolecularFormula
adductadduct
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
FragmentationTree$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
FragmentationTree$toList()
FragmentationTree as a base R list.
# convert array of FragmentationTree (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert FragmentationTree to a base R type
FragmentationTree$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of FragmentationTree
FragmentationTree$fromJSON(input_json)
input_jsonthe JSON input
the instance of FragmentationTree
toJSONString()
To JSON String
FragmentationTree$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
FragmentationTree in JSON format
fromJSONString()
Deserialize JSON string into an instance of FragmentationTree
FragmentationTree$fromJSONString(input_json)
input_jsonthe JSON input
the instance of FragmentationTree
validateJSON()
Validate JSON input with respect to FragmentationTree and throw an exception if invalid
FragmentationTree$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
FragmentationTree$toString()
String representation of FragmentationTree
isValid()
Return true if the values in all fields are valid.
FragmentationTree$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
FragmentationTree$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
FragmentationTree$print()
clone()
The objects of this class are cloneable with this method.
FragmentationTree$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `FragmentationTree$toList` ## ------------------------------------------------ # convert array of FragmentationTree (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `FragmentationTree$toList` ## ------------------------------------------------ # convert array of FragmentationTree (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
FragmentNode Class
FragmentNode Class
An R6Class generator object
Create a new FragmentNode
fragmentIdinteger [optional]
molecularFormulaneutral molecular formula of the fragment without adduct character [optional]
adductThis combines the ionization plus adduct of the fragment. In contrast to the <code>FragmentationTree</code>'s adduct, this adduct may not include any in-source loss. character [optional]
massDeviationDanumeric [optional]
massDeviationPpmnumeric [optional]
scorenumeric [optional]
intensitynumeric [optional]
mznumeric [optional]
new()
Initialize a new FragmentNode class.
FragmentNode$new( fragmentId = NULL, molecularFormula = NULL, adduct = NULL, massDeviationDa = NULL, massDeviationPpm = NULL, score = NULL, intensity = NULL, mz = NULL, ... )
fragmentIdfragmentId
molecularFormulaneutral molecular formula of the fragment without adduct
adductThis combines the ionization plus adduct of the fragment. In contrast to the <code>FragmentationTree</code>'s adduct, this adduct may not include any in-source loss.
massDeviationDamassDeviationDa
massDeviationPpmmassDeviationPpm
scorescore
intensityintensity
mzmz
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
FragmentNode$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
FragmentNode$toList()
FragmentNode as a base R list.
# convert array of FragmentNode (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert FragmentNode to a base R type
FragmentNode$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of FragmentNode
FragmentNode$fromJSON(input_json)
input_jsonthe JSON input
the instance of FragmentNode
toJSONString()
To JSON String
FragmentNode$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
FragmentNode in JSON format
fromJSONString()
Deserialize JSON string into an instance of FragmentNode
FragmentNode$fromJSONString(input_json)
input_jsonthe JSON input
the instance of FragmentNode
validateJSON()
Validate JSON input with respect to FragmentNode and throw an exception if invalid
FragmentNode$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
FragmentNode$toString()
String representation of FragmentNode
isValid()
Return true if the values in all fields are valid.
FragmentNode$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
FragmentNode$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
FragmentNode$print()
clone()
The objects of this class are cloneable with this method.
FragmentNode$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `FragmentNode$toList` ## ------------------------------------------------ # convert array of FragmentNode (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `FragmentNode$toList` ## ------------------------------------------------ # convert array of FragmentNode (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
GuiApi
An R6Class generator object
SIRIUS Nightsky API
REST API that provides the full functionality of SIRIUS and its web services as background service. It is intended as entry-point for scripting languages and software integration SDKs.This API is exposed by SIRIUS 6
The version of the OpenAPI document: 3.2 Generated by: https://openapi-generator.tech
api_clientHandles the client-server communication.
new()
Initialize a new GuiApi.
GuiApi$new(api_client)
api_clientAn instance of API client.
CloseGui()
Close GUI instance of given project-space if available.
GuiApi$CloseGui(project_id, close_project = NULL, data_file = NULL, ...)
project_idproject-space the GUI instance is connected to.
close_project(optional) No description
data_file(optional) name of the data file to save the result
...Other optional arguments
character
CloseGuiWithHttpInfo()
Close GUI instance of given project-space if available.
GuiApi$CloseGuiWithHttpInfo( project_id, close_project = NULL, data_file = NULL, ... )
project_idproject-space the GUI instance is connected to.
close_project(optional) No description
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (character) with additional information such as HTTP status code, headers
GetGuis()
Get list of currently running gui windows, managed by this SIRIUS instance.
GuiApi$GetGuis(data_file = NULL, ...)
data_file(optional) name of the data file to save the result
...Other optional arguments
array[GuiInfo]
GetGuisWithHttpInfo()
Get list of currently running gui windows, managed by this SIRIUS instance.
GuiApi$GetGuisWithHttpInfo(data_file = NULL, ...)
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (array[GuiInfo]) with additional information such as HTTP status code, headers
OpenGui()
Open GUI instance on specified project-space and bring the GUI window to foreground.
GuiApi$OpenGui(project_id, ...)
project_idproject-space the GUI instance will connect to.
...Other optional arguments
void
OpenGuiWithHttpInfo()
Open GUI instance on specified project-space and bring the GUI window to foreground.
GuiApi$OpenGuiWithHttpInfo(project_id, ...)
project_idproject-space the GUI instance will connect to.
...Other optional arguments
API response (void) with additional information such as HTTP status code, headers
clone()
The objects of this class are cloneable with this method.
GuiApi$clone(deep = FALSE)
deepWhether to make a deep clone.
## Not run: #################### CloseGui #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space the GUI instance is connected to. var_close_project <- "close_project_example" # character | (Optional) #Close GUI instance of given project-space if available. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$CloseGui(var_project_id, close_project = var_close_projectdata_file = "result.txt") result <- api_instance$gui_api$CloseGui(var_project_id, close_project = var_close_project) dput(result) #################### GetGuis #################### library(RSirius) #Get list of currently running gui windows, managed by this SIRIUS instance. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetGuis(data_file = "result.txt") result <- api_instance$gui_api$GetGuis() dput(result) #################### OpenGui #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space the GUI instance will connect to. #Open GUI instance on specified project-space and bring the GUI window to foreground. api_instance <- rsirius_api$new() api_instance$gui_api$OpenGui(var_project_id) ## End(Not run)## Not run: #################### CloseGui #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space the GUI instance is connected to. var_close_project <- "close_project_example" # character | (Optional) #Close GUI instance of given project-space if available. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$CloseGui(var_project_id, close_project = var_close_projectdata_file = "result.txt") result <- api_instance$gui_api$CloseGui(var_project_id, close_project = var_close_project) dput(result) #################### GetGuis #################### library(RSirius) #Get list of currently running gui windows, managed by this SIRIUS instance. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetGuis(data_file = "result.txt") result <- api_instance$gui_api$GetGuis() dput(result) #################### OpenGui #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space the GUI instance will connect to. #Open GUI instance on specified project-space and bring the GUI window to foreground. api_instance <- rsirius_api$new() api_instance$gui_api$OpenGui(var_project_id) ## End(Not run)
GuiInfo Class
GuiInfo Class
An R6Class generator object
Create a new GuiInfo
projectIdThe project this instance is running on character [optional]
new()
Initialize a new GuiInfo class.
GuiInfo$new(projectId = NULL, ...)
projectIdThe project this instance is running on
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
GuiInfo$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
GuiInfo$toList()
GuiInfo as a base R list.
# convert array of GuiInfo (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert GuiInfo to a base R type
GuiInfo$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of GuiInfo
GuiInfo$fromJSON(input_json)
input_jsonthe JSON input
the instance of GuiInfo
toJSONString()
To JSON String
GuiInfo$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
GuiInfo in JSON format
fromJSONString()
Deserialize JSON string into an instance of GuiInfo
GuiInfo$fromJSONString(input_json)
input_jsonthe JSON input
the instance of GuiInfo
validateJSON()
Validate JSON input with respect to GuiInfo and throw an exception if invalid
GuiInfo$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
GuiInfo$toString()
String representation of GuiInfo
isValid()
Return true if the values in all fields are valid.
GuiInfo$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
GuiInfo$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
GuiInfo$print()
clone()
The objects of this class are cloneable with this method.
GuiInfo$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `GuiInfo$toList` ## ------------------------------------------------ # convert array of GuiInfo (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `GuiInfo$toList` ## ------------------------------------------------ # convert array of GuiInfo (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
ImportResult Class
ImportResult Class
An R6Class generator object
Create a new ImportResult
affectedCompoundIdsList of compoundIds that have been imported. list(character)
affectedAlignedFeatureIdsList of alignedFeatureIds that have been imported. list(character)
new()
Initialize a new ImportResult class.
ImportResult$new(affectedCompoundIds, affectedAlignedFeatureIds, ...)
affectedCompoundIdsList of compoundIds that have been imported.
affectedAlignedFeatureIdsList of alignedFeatureIds that have been imported.
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
ImportResult$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
ImportResult$toList()
ImportResult as a base R list.
# convert array of ImportResult (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert ImportResult to a base R type
ImportResult$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of ImportResult
ImportResult$fromJSON(input_json)
input_jsonthe JSON input
the instance of ImportResult
toJSONString()
To JSON String
ImportResult$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
ImportResult in JSON format
fromJSONString()
Deserialize JSON string into an instance of ImportResult
ImportResult$fromJSONString(input_json)
input_jsonthe JSON input
the instance of ImportResult
validateJSON()
Validate JSON input with respect to ImportResult and throw an exception if invalid
ImportResult$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
ImportResult$toString()
String representation of ImportResult
isValid()
Return true if the values in all fields are valid.
ImportResult$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
ImportResult$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
ImportResult$print()
clone()
The objects of this class are cloneable with this method.
ImportResult$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `ImportResult$toList` ## ------------------------------------------------ # convert array of ImportResult (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `ImportResult$toList` ## ------------------------------------------------ # convert array of ImportResult (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
Info Class
Info Class
An R6Class generator object
Create a new Info
nightSkyApiVersionAPI version of the SIRIUS Nightsky API character [optional]
siriusVersionVersion of the SIRIUS application character [optional]
latestSiriusVersionLatest available Version of the SIRIUS application character [optional]
latestSiriusLinkLink to the latest available Version of the SIRIUS application character [optional]
updateAvailableTrue if a newer SIRIUS version is available. character [optional]
siriusLibVersionVersion of the SIRIUS libraries character [optional]
fingerIdLibVersionVersion of the CSI:FingerID libraries character [optional]
chemDbVersionVersion of the Chemical Database available via SIRIUS web services character [optional]
fingerIdModelVersionVersion of the Machine learning models used for Fingerprint, Compound Class and Structure Prediction Not available if web service is not reachable. character [optional]
fingerprintIdVersion of the Molecular Fingerprint used by SIRIUS character [optional]
availableILPSolversSet of solvers that are configured correctly and can be loaded list(character)
supportedILPSolversSet of ILP solvers that are supported, and their version information named list(character)
new()
Initialize a new Info class.
Info$new( availableILPSolvers, supportedILPSolvers, nightSkyApiVersion = NULL, siriusVersion = NULL, latestSiriusVersion = NULL, latestSiriusLink = NULL, updateAvailable = NULL, siriusLibVersion = NULL, fingerIdLibVersion = NULL, chemDbVersion = NULL, fingerIdModelVersion = NULL, fingerprintId = NULL, ... )
availableILPSolversSet of solvers that are configured correctly and can be loaded
supportedILPSolversSet of ILP solvers that are supported, and their version information
nightSkyApiVersionAPI version of the SIRIUS Nightsky API
siriusVersionVersion of the SIRIUS application
latestSiriusVersionLatest available Version of the SIRIUS application
latestSiriusLinkLink to the latest available Version of the SIRIUS application
updateAvailableTrue if a newer SIRIUS version is available.
siriusLibVersionVersion of the SIRIUS libraries
fingerIdLibVersionVersion of the CSI:FingerID libraries
chemDbVersionVersion of the Chemical Database available via SIRIUS web services
fingerIdModelVersionVersion of the Machine learning models used for Fingerprint, Compound Class and Structure Prediction Not available if web service is not reachable.
fingerprintIdVersion of the Molecular Fingerprint used by SIRIUS
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
Info$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
Info$toList()
Info as a base R list.
# convert array of Info (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert Info to a base R type
Info$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of Info
Info$fromJSON(input_json)
input_jsonthe JSON input
the instance of Info
toJSONString()
To JSON String
Info$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
Info in JSON format
fromJSONString()
Deserialize JSON string into an instance of Info
Info$fromJSONString(input_json)
input_jsonthe JSON input
the instance of Info
validateJSON()
Validate JSON input with respect to Info and throw an exception if invalid
Info$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
Info$toString()
String representation of Info
isValid()
Return true if the values in all fields are valid.
Info$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
Info$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
Info$print()
clone()
The objects of this class are cloneable with this method.
Info$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `Info$toList` ## ------------------------------------------------ # convert array of Info (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `Info$toList` ## ------------------------------------------------ # convert array of Info (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
InfoApi
An R6Class generator object
SIRIUS Nightsky API
REST API that provides the full functionality of SIRIUS and its web services as background service. It is intended as entry-point for scripting languages and software integration SDKs.This API is exposed by SIRIUS 6
The version of the OpenAPI document: 3.2 Generated by: https://openapi-generator.tech
api_clientHandles the client-server communication.
new()
Initialize a new InfoApi.
InfoApi$new(api_client)
api_clientAn instance of API client.
GetConnectionCheck()
InfoApi$GetConnectionCheck(data_file = NULL, ...)
data_file(optional) name of the data file to save the result
...Other optional arguments
ConnectionCheck
GetConnectionCheckWithHttpInfo()
InfoApi$GetConnectionCheckWithHttpInfo(data_file = NULL, ...)
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (ConnectionCheck) with additional information such as HTTP status code, headers
GetInfo()
InfoApi$GetInfo(server_info = TRUE, update_info = TRUE, data_file = NULL, ...)
server_info(optional) No description (default value: TRUE)
update_info(optional) No description (default value: TRUE)
data_file(optional) name of the data file to save the result
...Other optional arguments
Info
GetInfoWithHttpInfo()
InfoApi$GetInfoWithHttpInfo( server_info = TRUE, update_info = TRUE, data_file = NULL, ... )
server_info(optional) No description (default value: TRUE)
update_info(optional) No description (default value: TRUE)
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (Info) with additional information such as HTTP status code, headers
clone()
The objects of this class are cloneable with this method.
InfoApi$clone(deep = FALSE)
deepWhether to make a deep clone.
## Not run: #################### GetConnectionCheck #################### library(RSirius) api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetConnectionCheck(data_file = "result.txt") result <- api_instance$info_api$GetConnectionCheck() dput(result) #################### GetInfo #################### library(RSirius) var_server_info <- TRUE # character | (Optional) var_update_info <- TRUE # character | (Optional) api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetInfo(server_info = var_server_info, update_info = var_update_infodata_file = "result.txt") result <- api_instance$info_api$GetInfo(server_info = var_server_info, update_info = var_update_info) dput(result) ## End(Not run)## Not run: #################### GetConnectionCheck #################### library(RSirius) api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetConnectionCheck(data_file = "result.txt") result <- api_instance$info_api$GetConnectionCheck() dput(result) #################### GetInfo #################### library(RSirius) var_server_info <- TRUE # character | (Optional) var_update_info <- TRUE # character | (Optional) api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetInfo(server_info = var_server_info, update_info = var_update_infodata_file = "result.txt") result <- api_instance$info_api$GetInfo(server_info = var_server_info, update_info = var_update_info) dput(result) ## End(Not run)
IsotopePatternAnnotation Class
IsotopePatternAnnotation Class
An R6Class generator object
Create a new IsotopePatternAnnotation
isotopePatternBasicSpectrum [optional]
simulatedPatternBasicSpectrum [optional]
new()
Initialize a new IsotopePatternAnnotation class.
IsotopePatternAnnotation$new( isotopePattern = NULL, simulatedPattern = NULL, ... )
isotopePatternisotopePattern
simulatedPatternsimulatedPattern
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
IsotopePatternAnnotation$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
IsotopePatternAnnotation$toList()
IsotopePatternAnnotation as a base R list.
# convert array of IsotopePatternAnnotation (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert IsotopePatternAnnotation to a base R type
IsotopePatternAnnotation$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of IsotopePatternAnnotation
IsotopePatternAnnotation$fromJSON(input_json)
input_jsonthe JSON input
the instance of IsotopePatternAnnotation
toJSONString()
To JSON String
IsotopePatternAnnotation$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
IsotopePatternAnnotation in JSON format
fromJSONString()
Deserialize JSON string into an instance of IsotopePatternAnnotation
IsotopePatternAnnotation$fromJSONString(input_json)
input_jsonthe JSON input
the instance of IsotopePatternAnnotation
validateJSON()
Validate JSON input with respect to IsotopePatternAnnotation and throw an exception if invalid
IsotopePatternAnnotation$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
IsotopePatternAnnotation$toString()
String representation of IsotopePatternAnnotation
isValid()
Return true if the values in all fields are valid.
IsotopePatternAnnotation$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
IsotopePatternAnnotation$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
IsotopePatternAnnotation$print()
clone()
The objects of this class are cloneable with this method.
IsotopePatternAnnotation$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `IsotopePatternAnnotation$toList` ## ------------------------------------------------ # convert array of IsotopePatternAnnotation (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `IsotopePatternAnnotation$toList` ## ------------------------------------------------ # convert array of IsotopePatternAnnotation (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
Identifier created by the SIRIUS Nightsky API for a newly created Job. Object can be enriched with Job status/progress information (<code>JobProgress</code>) and/or Job command information. This is a return value of the API. So nullable values can also be NOT_REQUIRED to allow for easy removal.
Job Class
An R6Class generator object
Create a new Job
idUnique identifier to access the job via the API character [optional]
commandCommand string of the executed Task character [optional]
progressJobProgress [optional]
affectedCompoundIdsList of compoundIds that are affected by this job. This list will also contain compoundIds where not all features of the compound are affected by the job. If this job is creating compounds (e.g. data import jobs) this value will be NULL until the job has finished list(character) [optional]
affectedAlignedFeatureIdsList of alignedFeatureIds that are affected by this job. If this job is creating features (e.g. data import jobs) this value will be NULL until the job has finished list(character) [optional]
jobEffectEffect this job has. The affected ids are added, removed or modified. Null if job does not affect features/compounds Not available/null if affected Ids are not requested character [optional]
new()
Initialize a new Job class.
Job$new( id = NULL, command = NULL, progress = NULL, affectedCompoundIds = NULL, affectedAlignedFeatureIds = NULL, jobEffect = NULL, ... )
idUnique identifier to access the job via the API
commandCommand string of the executed Task
progressprogress
affectedCompoundIdsList of compoundIds that are affected by this job. This list will also contain compoundIds where not all features of the compound are affected by the job. If this job is creating compounds (e.g. data import jobs) this value will be NULL until the job has finished
affectedAlignedFeatureIdsList of alignedFeatureIds that are affected by this job. If this job is creating features (e.g. data import jobs) this value will be NULL until the job has finished
jobEffectEffect this job has. The affected ids are added, removed or modified. Null if job does not affect features/compounds Not available/null if affected Ids are not requested
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
Job$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
Job$toList()
Job as a base R list.
# convert array of Job (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert Job to a base R type
Job$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of Job
Job$fromJSON(input_json)
input_jsonthe JSON input
the instance of Job
toJSONString()
To JSON String
Job$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
Job in JSON format
fromJSONString()
Deserialize JSON string into an instance of Job
Job$fromJSONString(input_json)
input_jsonthe JSON input
the instance of Job
validateJSON()
Validate JSON input with respect to Job and throw an exception if invalid
Job$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
Job$toString()
String representation of Job
isValid()
Return true if the values in all fields are valid.
Job$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
Job$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
Job$print()
clone()
The objects of this class are cloneable with this method.
Job$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `Job$toList` ## ------------------------------------------------ # convert array of Job (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `Job$toList` ## ------------------------------------------------ # convert array of Job (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
Progress information of a computation job that has already been submitted to SIRIUS. If currentProgress == maxProgress, the job is finished and should change to state DONE soon. If a job is DONE, all results can be accessed via the project-space API.
JobProgress Class
An R6Class generator object
Create a new JobProgress
indeterminateIs the progress indeterminate or not character [optional]
stateCurrent state of the Jobs in the SIRIUS internal Job scheduler WAITING: Waiting for submission to ExecutorService (e.g. due to dependent jobs) READY: Ready for submission but not yet enqueued for submission to ExecutorService. QUEUED: Enqueued for submission to ExecutorService. SUBMITTED: Submitted and waiting to be executed. RUNNING: Job is running. CANCELED: Jobs is finished due to cancellation by user or dependent jobs. FAILED: Job is finished but failed. DONE: Job finished successfully. character [optional]
currentProgressCurrent progress value of the job. integer [optional]
maxProgressProgress value to reach (might also change during execution) integer [optional]
messageProgress information and warnings. character [optional]
errorMessageError message if the job did not finish successfully. character [optional]
new()
Initialize a new JobProgress class.
JobProgress$new( indeterminate = NULL, state = NULL, currentProgress = NULL, maxProgress = NULL, message = NULL, errorMessage = NULL, ... )
indeterminateIs the progress indeterminate or not
stateCurrent state of the Jobs in the SIRIUS internal Job scheduler WAITING: Waiting for submission to ExecutorService (e.g. due to dependent jobs) READY: Ready for submission but not yet enqueued for submission to ExecutorService. QUEUED: Enqueued for submission to ExecutorService. SUBMITTED: Submitted and waiting to be executed. RUNNING: Job is running. CANCELED: Jobs is finished due to cancellation by user or dependent jobs. FAILED: Job is finished but failed. DONE: Job finished successfully.
currentProgressCurrent progress value of the job.
maxProgressProgress value to reach (might also change during execution)
messageProgress information and warnings.
errorMessageError message if the job did not finish successfully.
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
JobProgress$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
JobProgress$toList()
JobProgress as a base R list.
# convert array of JobProgress (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert JobProgress to a base R type
JobProgress$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of JobProgress
JobProgress$fromJSON(input_json)
input_jsonthe JSON input
the instance of JobProgress
toJSONString()
To JSON String
JobProgress$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
JobProgress in JSON format
fromJSONString()
Deserialize JSON string into an instance of JobProgress
JobProgress$fromJSONString(input_json)
input_jsonthe JSON input
the instance of JobProgress
validateJSON()
Validate JSON input with respect to JobProgress and throw an exception if invalid
JobProgress$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
JobProgress$toString()
String representation of JobProgress
isValid()
Return true if the values in all fields are valid.
JobProgress$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
JobProgress$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
JobProgress$print()
clone()
The objects of this class are cloneable with this method.
JobProgress$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `JobProgress$toList` ## ------------------------------------------------ # convert array of JobProgress (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `JobProgress$toList` ## ------------------------------------------------ # convert array of JobProgress (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
JobsApi
An R6Class generator object
SIRIUS Nightsky API
REST API that provides the full functionality of SIRIUS and its web services as background service. It is intended as entry-point for scripting languages and software integration SDKs.This API is exposed by SIRIUS 6
The version of the OpenAPI document: 3.2 Generated by: https://openapi-generator.tech
api_clientHandles the client-server communication.
new()
Initialize a new JobsApi.
JobsApi$new(api_client)
api_clientAn instance of API client.
DeleteJob()
Delete job.
JobsApi$DeleteJob( project_id, job_id, cancel_if_running = TRUE, await_deletion = TRUE, ... )
project_idproject-space to delete job from
job_idof the job to be deleted
cancel_if_running(optional) If true, job will be canceled if it is not finished. Otherwise, deletion will fail for running jobs or request will block until job has finished. (default value: TRUE)
await_deletion(optional) If true, request will block until deletion succeeded or failed. If the job is still running the request will wait until the job has finished. (default value: TRUE)
...Other optional arguments
void
DeleteJobWithHttpInfo()
Delete job.
JobsApi$DeleteJobWithHttpInfo( project_id, job_id, cancel_if_running = TRUE, await_deletion = TRUE, ... )
project_idproject-space to delete job from
job_idof the job to be deleted
cancel_if_running(optional) If true, job will be canceled if it is not finished. Otherwise, deletion will fail for running jobs or request will block until job has finished. (default value: TRUE)
await_deletion(optional) If true, request will block until deletion succeeded or failed. If the job is still running the request will wait until the job has finished. (default value: TRUE)
...Other optional arguments
API response (void) with additional information such as HTTP status code, headers
DeleteJobConfig()
Delete job configuration with given name.
JobsApi$DeleteJobConfig(name, ...)
namename of the job-config to delete
...Other optional arguments
void
DeleteJobConfigWithHttpInfo()
Delete job configuration with given name.
JobsApi$DeleteJobConfigWithHttpInfo(name, ...)
namename of the job-config to delete
...Other optional arguments
API response (void) with additional information such as HTTP status code, headers
DeleteJobs()
Delete ALL jobs.
JobsApi$DeleteJobs( project_id, cancel_if_running = TRUE, await_deletion = TRUE, ... )
project_idproject-space to delete jobs from
cancel_if_running(optional) If true, job will be canceled if it is not finished. Otherwise, deletion will fail for running jobs or request will block until job has finished. (default value: TRUE)
await_deletion(optional) If true, request will block until deletion succeeded or failed. If the job is still running the request will wait until the job has finished. (default value: TRUE)
...Other optional arguments
void
DeleteJobsWithHttpInfo()
Delete ALL jobs.
JobsApi$DeleteJobsWithHttpInfo( project_id, cancel_if_running = TRUE, await_deletion = TRUE, ... )
project_idproject-space to delete jobs from
cancel_if_running(optional) If true, job will be canceled if it is not finished. Otherwise, deletion will fail for running jobs or request will block until job has finished. (default value: TRUE)
await_deletion(optional) If true, request will block until deletion succeeded or failed. If the job is still running the request will wait until the job has finished. (default value: TRUE)
...Other optional arguments
API response (void) with additional information such as HTTP status code, headers
GetCommand()
Get a CLI command for the given job configuration.
JobsApi$GetCommand(job_submission, data_file = NULL, ...)
job_submissiondata_file(optional) name of the data file to save the result
...Other optional arguments
array[character]
GetCommandWithHttpInfo()
Get a CLI command for the given job configuration.
JobsApi$GetCommandWithHttpInfo(job_submission, data_file = NULL, ...)
job_submissiondata_file(optional) name of the data file to save the result
...Other optional arguments
API response (array[character]) with additional information such as HTTP status code, headers
GetDefaultJobConfig()
Request default job configuration
JobsApi$GetDefaultJobConfig( include_config_map = FALSE, move_parameters_to_config_map = FALSE, include_custom_dbs_for_structure_search = FALSE, data_file = NULL, ... )
include_config_map(optional) if true, generic configmap with-defaults will be included (default value: FALSE)
move_parameters_to_config_map(optional) if true, object-based parameters will be converted to and added to the generic configMap parameters (default value: FALSE)
include_custom_dbs_for_structure_search(optional) if true, default database selection of structure db search and spectral library search also contains all available custom databases. If no custom databases are selected, spectral library search is disabled by default. (default value: FALSE)
data_file(optional) name of the data file to save the result
...Other optional arguments
JobSubmission
GetDefaultJobConfigWithHttpInfo()
Request default job configuration
JobsApi$GetDefaultJobConfigWithHttpInfo( include_config_map = FALSE, move_parameters_to_config_map = FALSE, include_custom_dbs_for_structure_search = FALSE, data_file = NULL, ... )
include_config_map(optional) if true, generic configmap with-defaults will be included (default value: FALSE)
move_parameters_to_config_map(optional) if true, object-based parameters will be converted to and added to the generic configMap parameters (default value: FALSE)
include_custom_dbs_for_structure_search(optional) if true, default database selection of structure db search and spectral library search also contains all available custom databases. If no custom databases are selected, spectral library search is disabled by default. (default value: FALSE)
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (JobSubmission) with additional information such as HTTP status code, headers
GetJob()
Get job information and its current state and progress (if available).
JobsApi$GetJob(
project_id,
job_id,
opt_fields = list("progress"),
data_file = NULL,
...
)project_idproject-space to run jobs on
job_idid of the job to be returned
opt_fields(optional) set of optional fields to be included. Use 'none' only to override defaults. (default value: ["progress"])
data_file(optional) name of the data file to save the result
...Other optional arguments
Job
GetJobWithHttpInfo()
Get job information and its current state and progress (if available).
JobsApi$GetJobWithHttpInfo(
project_id,
job_id,
opt_fields = list("progress"),
data_file = NULL,
...
)project_idproject-space to run jobs on
job_idid of the job to be returned
opt_fields(optional) set of optional fields to be included. Use 'none' only to override defaults. (default value: ["progress"])
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (Job) with additional information such as HTTP status code, headers
GetJobConfig()
Request job configuration with given name.
JobsApi$GetJobConfig( name, move_parameters_to_config_map = FALSE, data_file = NULL, ... )
namename of the job-config to return
move_parameters_to_config_map(optional) if true, object-based parameters will be converted to and added to the generic configMap parameters (default value: FALSE)
data_file(optional) name of the data file to save the result
...Other optional arguments
StoredJobSubmission
GetJobConfigWithHttpInfo()
Request job configuration with given name.
JobsApi$GetJobConfigWithHttpInfo( name, move_parameters_to_config_map = FALSE, data_file = NULL, ... )
namename of the job-config to return
move_parameters_to_config_map(optional) if true, object-based parameters will be converted to and added to the generic configMap parameters (default value: FALSE)
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (StoredJobSubmission) with additional information such as HTTP status code, headers
GetJobConfigNames()
[DEPRECATED] Get all (non-default) job configuration names
JobsApi$GetJobConfigNames(data_file = NULL, ...)
data_file(optional) name of the data file to save the result
...Other optional arguments
array[character]
GetJobConfigNamesWithHttpInfo()
[DEPRECATED] Get all (non-default) job configuration names
JobsApi$GetJobConfigNamesWithHttpInfo(data_file = NULL, ...)
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (array[character]) with additional information such as HTTP status code, headers
GetJobConfigs()
Request all available job configurations
JobsApi$GetJobConfigs(data_file = NULL, ...)
data_file(optional) name of the data file to save the result
...Other optional arguments
array[StoredJobSubmission]
GetJobConfigsWithHttpInfo()
Request all available job configurations
JobsApi$GetJobConfigsWithHttpInfo(data_file = NULL, ...)
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (array[StoredJobSubmission]) with additional information such as HTTP status code, headers
GetJobs()
[DEPRECATED] Get list of all available jobs with information such as current state and progress (if available)
JobsApi$GetJobs(project_id, opt_fields = list("none"), data_file = NULL, ...)project_idproject-space to run jobs on
opt_fields(optional) set of optional fields to be included. Use 'none' only to override defaults. (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
array[Job]
GetJobsWithHttpInfo()
[DEPRECATED] Get list of all available jobs with information such as current state and progress (if available)
JobsApi$GetJobsWithHttpInfo(
project_id,
opt_fields = list("none"),
data_file = NULL,
...
)project_idproject-space to run jobs on
opt_fields(optional) set of optional fields to be included. Use 'none' only to override defaults. (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (array[Job]) with additional information such as HTTP status code, headers
GetJobsPage()
Get Page of jobs with information such as current state and progress (if available).
JobsApi$GetJobsPage(
project_id,
page = 0,
size = 20,
sort = NULL,
opt_fields = list("none"),
data_file = NULL,
...
)project_idproject-space to run jobs on
page(optional) Zero-based page index (0..N) (default value: 0)
size(optional) The size of the page to be returned (default value: 20)
sort(optional) Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
opt_fields(optional) set of optional fields to be included. Use 'none' only to override defaults. (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
PagedModelJob
GetJobsPageWithHttpInfo()
Get Page of jobs with information such as current state and progress (if available).
JobsApi$GetJobsPageWithHttpInfo(
project_id,
page = 0,
size = 20,
sort = NULL,
opt_fields = list("none"),
data_file = NULL,
...
)project_idproject-space to run jobs on
page(optional) Zero-based page index (0..N) (default value: 0)
size(optional) The size of the page to be returned (default value: 20)
sort(optional) Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
opt_fields(optional) set of optional fields to be included. Use 'none' only to override defaults. (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (PagedModelJob) with additional information such as HTTP status code, headers
HasJobs()
JobsApi$HasJobs(project_id, include_finished = FALSE, data_file = NULL, ...)
project_idinclude_finished(optional) No description (default value: FALSE)
data_file(optional) name of the data file to save the result
...Other optional arguments
character
HasJobsWithHttpInfo()
JobsApi$HasJobsWithHttpInfo( project_id, include_finished = FALSE, data_file = NULL, ... )
project_idinclude_finished(optional) No description (default value: FALSE)
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (character) with additional information such as HTTP status code, headers
SaveJobConfig()
Add new job configuration with given name.
JobsApi$SaveJobConfig( name, job_submission, override_existing = FALSE, move_parameters_to_config_map = FALSE, data_file = NULL, ... )
namename of the job-config to add
job_submissionto add
override_existing(optional) No description (default value: FALSE)
move_parameters_to_config_map(optional) if true, object-based parameters will be converted to and added to the generic configMap parameters in the return object (default value: FALSE)
data_file(optional) name of the data file to save the result
...Other optional arguments
StoredJobSubmission
SaveJobConfigWithHttpInfo()
Add new job configuration with given name.
JobsApi$SaveJobConfigWithHttpInfo( name, job_submission, override_existing = FALSE, move_parameters_to_config_map = FALSE, data_file = NULL, ... )
namename of the job-config to add
job_submissionto add
override_existing(optional) No description (default value: FALSE)
move_parameters_to_config_map(optional) if true, object-based parameters will be converted to and added to the generic configMap parameters in the return object (default value: FALSE)
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (StoredJobSubmission) with additional information such as HTTP status code, headers
StartJob()
Start computation for given compounds and with given parameters.
JobsApi$StartJob(
project_id,
job_submission,
opt_fields = list("command", "progress"),
data_file = NULL,
...
)project_idproject-space to run jobs on
job_submissionconfiguration of the job to be submitted
opt_fields(optional) set of optional fields to be included. Use 'none' only to override defaults. (default value: ["command","progress"])
data_file(optional) name of the data file to save the result
...Other optional arguments
Job
StartJobWithHttpInfo()
Start computation for given compounds and with given parameters.
JobsApi$StartJobWithHttpInfo(
project_id,
job_submission,
opt_fields = list("command", "progress"),
data_file = NULL,
...
)project_idproject-space to run jobs on
job_submissionconfiguration of the job to be submitted
opt_fields(optional) set of optional fields to be included. Use 'none' only to override defaults. (default value: ["command","progress"])
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (Job) with additional information such as HTTP status code, headers
StartJobFromConfig()
Start computation for given compounds and with parameters from a stored job-config.
JobsApi$StartJobFromConfig(
project_id,
job_config_name,
request_body,
recompute = NULL,
opt_fields = list("command", "progress"),
data_file = NULL,
...
)project_idproject-space to run jobs on
job_config_namename of the config to be used
request_bodyList of alignedFeatureIds to be computed
recompute(optional) enable or disable recompute. If null the stored value will be used.
opt_fields(optional) set of optional fields to be included. Use 'none' only to override defaults. (default value: ["command","progress"])
data_file(optional) name of the data file to save the result
...Other optional arguments
Job
StartJobFromConfigWithHttpInfo()
Start computation for given compounds and with parameters from a stored job-config.
JobsApi$StartJobFromConfigWithHttpInfo(
project_id,
job_config_name,
request_body,
recompute = NULL,
opt_fields = list("command", "progress"),
data_file = NULL,
...
)project_idproject-space to run jobs on
job_config_namename of the config to be used
request_bodyList of alignedFeatureIds to be computed
recompute(optional) enable or disable recompute. If null the stored value will be used.
opt_fields(optional) set of optional fields to be included. Use 'none' only to override defaults. (default value: ["command","progress"])
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (Job) with additional information such as HTTP status code, headers
clone()
The objects of this class are cloneable with this method.
JobsApi$clone(deep = FALSE)
deepWhether to make a deep clone.
## Not run: #################### DeleteJob #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to delete job from var_job_id <- "job_id_example" # character | of the job to be deleted var_cancel_if_running <- TRUE # character | If true, job will be canceled if it is not finished. Otherwise, deletion will fail for running jobs or request will block until job has finished. (Optional) var_await_deletion <- TRUE # character | If true, request will block until deletion succeeded or failed. If the job is still running the request will wait until the job has finished. (Optional) #Delete job. api_instance <- rsirius_api$new() api_instance$jobs_api$DeleteJob(var_project_id, var_job_id, cancel_if_running = var_cancel_if_running, await_deletion = var_await_deletion) #################### DeleteJobConfig #################### library(RSirius) var_name <- "name_example" # character | name of the job-config to delete #Delete job configuration with given name. api_instance <- rsirius_api$new() api_instance$jobs_api$DeleteJobConfig(var_name) #################### DeleteJobs #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to delete jobs from var_cancel_if_running <- TRUE # character | If true, job will be canceled if it is not finished. Otherwise, deletion will fail for running jobs or request will block until job has finished. (Optional) var_await_deletion <- TRUE # character | If true, request will block until deletion succeeded or failed. If the job is still running the request will wait until the job has finished. (Optional) #Delete ALL jobs. api_instance <- rsirius_api$new() api_instance$jobs_api$DeleteJobs(var_project_id, cancel_if_running = var_cancel_if_running, await_deletion = var_await_deletion) #################### GetCommand #################### library(RSirius) var_job_submission <- JobSubmission$new(c("fallbackAdducts_example"), c("enforcedAdducts_example"), c("detectableAdducts_example"), "recompute_example", SpectralLibrarySearch$new("enabled_example", c("spectraSearchDBs_example"), 123, 123, 123, "enableAnalogueSearch_example", 123, 123, "INTENSITY", 123), Sirius$new("enabled_example", "QTOF", 123, 123, 123, "IGNORE", "filterByIsotopePattern_example", "enforceElGordoFormula_example", "performBottomUpSearch_example", 123, c("formulaSearchDBs_example"), "applyFormulaConstraintsToDBAndBottomUpSearch_example", "enforcedFormulaConstraints_example", "fallbackFormulaConstraints_example", c("detectableElements_example"), Timeout$new(123, 123), UseHeuristic$new(123, 123), "injectSpecLibMatchFormulas_example", 123, 123), Zodiac$new("enabled_example", 123, 123, "runInTwoSteps_example", ZodiacEdgeFilterThresholds$new(123, 123, 123), ZodiacEpochs$new(123, 123, 123), ZodiacLibraryScoring$new("enabled_example", 123), ZodiacAnalogueNodes$new("enabled_example", 123, 123)), FingerprintPrediction$new("enabled_example", "useScoreThreshold_example", "alwaysPredictHighRefMatches_example"), Canopus$new("enabled_example"), StructureDbSearch$new("enabled_example", c("structureSearchDBs_example"), "tagStructuresWithLipidClass_example", "OFF"), MsNovelist$new("enabled_example", 123), c(key = "inner_example"), c("compoundIds_example"), c("alignedFeatureIds_example")) # JobSubmission | #Get a CLI command for the given job configuration. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetCommand(var_job_submissiondata_file = "result.txt") result <- api_instance$jobs_api$GetCommand(var_job_submission) dput(result) #################### GetDefaultJobConfig #################### library(RSirius) var_include_config_map <- FALSE # character | if true, generic configmap with-defaults will be included (Optional) var_move_parameters_to_config_map <- FALSE # character | if true, object-based parameters will be converted to and added to the generic configMap parameters (Optional) var_include_custom_dbs_for_structure_search <- FALSE # character | if true, default database selection of structure db search and spectral library search also contains all available custom databases. If no custom databases are selected, spectral library search is disabled by default. (Optional) #Request default job configuration api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetDefaultJobConfig(include_config_map = var_include_config_map, move_parameters_to_config_map = var_move_parameters_to_config_map, include_custom_dbs_for_structure_search = var_include_custom_dbs_for_structure_searchdata_file = "result.txt") result <- api_instance$jobs_api$GetDefaultJobConfig(include_config_map = var_include_config_map, move_parameters_to_config_map = var_move_parameters_to_config_map, include_custom_dbs_for_structure_search = var_include_custom_dbs_for_structure_search) dput(result) #################### GetJob #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to run jobs on var_job_id <- "job_id_example" # character | id of the job to be returned var_opt_fields <- c("none") # array[character] | set of optional fields to be included. Use 'none' only to override defaults. (Optional) #Get job information and its current state and progress (if available). api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetJob(var_project_id, var_job_id, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$jobs_api$GetJob(var_project_id, var_job_id, opt_fields = var_opt_fields) dput(result) #################### GetJobConfig #################### library(RSirius) var_name <- "name_example" # character | name of the job-config to return var_move_parameters_to_config_map <- FALSE # character | if true, object-based parameters will be converted to and added to the generic configMap parameters (Optional) #Request job configuration with given name. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetJobConfig(var_name, move_parameters_to_config_map = var_move_parameters_to_config_mapdata_file = "result.txt") result <- api_instance$jobs_api$GetJobConfig(var_name, move_parameters_to_config_map = var_move_parameters_to_config_map) dput(result) #################### GetJobConfigNames #################### library(RSirius) #[DEPRECATED] Get all (non-default) job configuration names api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetJobConfigNames(data_file = "result.txt") result <- api_instance$jobs_api$GetJobConfigNames() dput(result) #################### GetJobConfigs #################### library(RSirius) #Request all available job configurations api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetJobConfigs(data_file = "result.txt") result <- api_instance$jobs_api$GetJobConfigs() dput(result) #################### GetJobs #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to run jobs on var_opt_fields <- c("none") # array[character] | set of optional fields to be included. Use 'none' only to override defaults. (Optional) #[DEPRECATED] Get list of all available jobs with information such as current state and progress (if available) api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetJobs(var_project_id, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$jobs_api$GetJobs(var_project_id, opt_fields = var_opt_fields) dput(result) #################### GetJobsPage #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to run jobs on var_page <- 0 # integer | Zero-based page index (0..N) (Optional) var_size <- 20 # integer | The size of the page to be returned (Optional) var_sort <- c("inner_example") # array[character] | Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. (Optional) var_opt_fields <- c("none") # array[character] | set of optional fields to be included. Use 'none' only to override defaults. (Optional) #Get Page of jobs with information such as current state and progress (if available). api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetJobsPage(var_project_id, page = var_page, size = var_size, sort = var_sort, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$jobs_api$GetJobsPage(var_project_id, page = var_page, size = var_size, sort = var_sort, opt_fields = var_opt_fields) dput(result) #################### HasJobs #################### library(RSirius) var_project_id <- "project_id_example" # character | var_include_finished <- FALSE # character | (Optional) api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$HasJobs(var_project_id, include_finished = var_include_finisheddata_file = "result.txt") result <- api_instance$jobs_api$HasJobs(var_project_id, include_finished = var_include_finished) dput(result) #################### SaveJobConfig #################### library(RSirius) var_name <- "name_example" # character | name of the job-config to add var_job_submission <- JobSubmission$new(c("fallbackAdducts_example"), c("enforcedAdducts_example"), c("detectableAdducts_example"), "recompute_example", SpectralLibrarySearch$new("enabled_example", c("spectraSearchDBs_example"), 123, 123, 123, "enableAnalogueSearch_example", 123, 123, "INTENSITY", 123), Sirius$new("enabled_example", "QTOF", 123, 123, 123, "IGNORE", "filterByIsotopePattern_example", "enforceElGordoFormula_example", "performBottomUpSearch_example", 123, c("formulaSearchDBs_example"), "applyFormulaConstraintsToDBAndBottomUpSearch_example", "enforcedFormulaConstraints_example", "fallbackFormulaConstraints_example", c("detectableElements_example"), Timeout$new(123, 123), UseHeuristic$new(123, 123), "injectSpecLibMatchFormulas_example", 123, 123), Zodiac$new("enabled_example", 123, 123, "runInTwoSteps_example", ZodiacEdgeFilterThresholds$new(123, 123, 123), ZodiacEpochs$new(123, 123, 123), ZodiacLibraryScoring$new("enabled_example", 123), ZodiacAnalogueNodes$new("enabled_example", 123, 123)), FingerprintPrediction$new("enabled_example", "useScoreThreshold_example", "alwaysPredictHighRefMatches_example"), Canopus$new("enabled_example"), StructureDbSearch$new("enabled_example", c("structureSearchDBs_example"), "tagStructuresWithLipidClass_example", "OFF"), MsNovelist$new("enabled_example", 123), c(key = "inner_example"), c("compoundIds_example"), c("alignedFeatureIds_example")) # JobSubmission | to add var_override_existing <- FALSE # character | (Optional) var_move_parameters_to_config_map <- FALSE # character | if true, object-based parameters will be converted to and added to the generic configMap parameters in the return object (Optional) #Add new job configuration with given name. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$SaveJobConfig(var_name, var_job_submission, override_existing = var_override_existing, move_parameters_to_config_map = var_move_parameters_to_config_mapdata_file = "result.txt") result <- api_instance$jobs_api$SaveJobConfig(var_name, var_job_submission, override_existing = var_override_existing, move_parameters_to_config_map = var_move_parameters_to_config_map) dput(result) #################### StartJob #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to run jobs on var_job_submission <- JobSubmission$new(c("fallbackAdducts_example"), c("enforcedAdducts_example"), c("detectableAdducts_example"), "recompute_example", SpectralLibrarySearch$new("enabled_example", c("spectraSearchDBs_example"), 123, 123, 123, "enableAnalogueSearch_example", 123, 123, "INTENSITY", 123), Sirius$new("enabled_example", "QTOF", 123, 123, 123, "IGNORE", "filterByIsotopePattern_example", "enforceElGordoFormula_example", "performBottomUpSearch_example", 123, c("formulaSearchDBs_example"), "applyFormulaConstraintsToDBAndBottomUpSearch_example", "enforcedFormulaConstraints_example", "fallbackFormulaConstraints_example", c("detectableElements_example"), Timeout$new(123, 123), UseHeuristic$new(123, 123), "injectSpecLibMatchFormulas_example", 123, 123), Zodiac$new("enabled_example", 123, 123, "runInTwoSteps_example", ZodiacEdgeFilterThresholds$new(123, 123, 123), ZodiacEpochs$new(123, 123, 123), ZodiacLibraryScoring$new("enabled_example", 123), ZodiacAnalogueNodes$new("enabled_example", 123, 123)), FingerprintPrediction$new("enabled_example", "useScoreThreshold_example", "alwaysPredictHighRefMatches_example"), Canopus$new("enabled_example"), StructureDbSearch$new("enabled_example", c("structureSearchDBs_example"), "tagStructuresWithLipidClass_example", "OFF"), MsNovelist$new("enabled_example", 123), c(key = "inner_example"), c("compoundIds_example"), c("alignedFeatureIds_example")) # JobSubmission | configuration of the job to be submitted var_opt_fields <- c("none") # array[character] | set of optional fields to be included. Use 'none' only to override defaults. (Optional) #Start computation for given compounds and with given parameters. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$StartJob(var_project_id, var_job_submission, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$jobs_api$StartJob(var_project_id, var_job_submission, opt_fields = var_opt_fields) dput(result) #################### StartJobFromConfig #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to run jobs on var_job_config_name <- "job_config_name_example" # character | name of the config to be used var_request_body <- c("property_example") # array[character] | List of alignedFeatureIds to be computed var_recompute <- "recompute_example" # character | enable or disable recompute. If null the stored value will be used. (Optional) var_opt_fields <- c("none") # array[character] | set of optional fields to be included. Use 'none' only to override defaults. (Optional) #Start computation for given compounds and with parameters from a stored job-config. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$StartJobFromConfig(var_project_id, var_job_config_name, var_request_body, recompute = var_recompute, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$jobs_api$StartJobFromConfig(var_project_id, var_job_config_name, var_request_body, recompute = var_recompute, opt_fields = var_opt_fields) dput(result) ## End(Not run)## Not run: #################### DeleteJob #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to delete job from var_job_id <- "job_id_example" # character | of the job to be deleted var_cancel_if_running <- TRUE # character | If true, job will be canceled if it is not finished. Otherwise, deletion will fail for running jobs or request will block until job has finished. (Optional) var_await_deletion <- TRUE # character | If true, request will block until deletion succeeded or failed. If the job is still running the request will wait until the job has finished. (Optional) #Delete job. api_instance <- rsirius_api$new() api_instance$jobs_api$DeleteJob(var_project_id, var_job_id, cancel_if_running = var_cancel_if_running, await_deletion = var_await_deletion) #################### DeleteJobConfig #################### library(RSirius) var_name <- "name_example" # character | name of the job-config to delete #Delete job configuration with given name. api_instance <- rsirius_api$new() api_instance$jobs_api$DeleteJobConfig(var_name) #################### DeleteJobs #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to delete jobs from var_cancel_if_running <- TRUE # character | If true, job will be canceled if it is not finished. Otherwise, deletion will fail for running jobs or request will block until job has finished. (Optional) var_await_deletion <- TRUE # character | If true, request will block until deletion succeeded or failed. If the job is still running the request will wait until the job has finished. (Optional) #Delete ALL jobs. api_instance <- rsirius_api$new() api_instance$jobs_api$DeleteJobs(var_project_id, cancel_if_running = var_cancel_if_running, await_deletion = var_await_deletion) #################### GetCommand #################### library(RSirius) var_job_submission <- JobSubmission$new(c("fallbackAdducts_example"), c("enforcedAdducts_example"), c("detectableAdducts_example"), "recompute_example", SpectralLibrarySearch$new("enabled_example", c("spectraSearchDBs_example"), 123, 123, 123, "enableAnalogueSearch_example", 123, 123, "INTENSITY", 123), Sirius$new("enabled_example", "QTOF", 123, 123, 123, "IGNORE", "filterByIsotopePattern_example", "enforceElGordoFormula_example", "performBottomUpSearch_example", 123, c("formulaSearchDBs_example"), "applyFormulaConstraintsToDBAndBottomUpSearch_example", "enforcedFormulaConstraints_example", "fallbackFormulaConstraints_example", c("detectableElements_example"), Timeout$new(123, 123), UseHeuristic$new(123, 123), "injectSpecLibMatchFormulas_example", 123, 123), Zodiac$new("enabled_example", 123, 123, "runInTwoSteps_example", ZodiacEdgeFilterThresholds$new(123, 123, 123), ZodiacEpochs$new(123, 123, 123), ZodiacLibraryScoring$new("enabled_example", 123), ZodiacAnalogueNodes$new("enabled_example", 123, 123)), FingerprintPrediction$new("enabled_example", "useScoreThreshold_example", "alwaysPredictHighRefMatches_example"), Canopus$new("enabled_example"), StructureDbSearch$new("enabled_example", c("structureSearchDBs_example"), "tagStructuresWithLipidClass_example", "OFF"), MsNovelist$new("enabled_example", 123), c(key = "inner_example"), c("compoundIds_example"), c("alignedFeatureIds_example")) # JobSubmission | #Get a CLI command for the given job configuration. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetCommand(var_job_submissiondata_file = "result.txt") result <- api_instance$jobs_api$GetCommand(var_job_submission) dput(result) #################### GetDefaultJobConfig #################### library(RSirius) var_include_config_map <- FALSE # character | if true, generic configmap with-defaults will be included (Optional) var_move_parameters_to_config_map <- FALSE # character | if true, object-based parameters will be converted to and added to the generic configMap parameters (Optional) var_include_custom_dbs_for_structure_search <- FALSE # character | if true, default database selection of structure db search and spectral library search also contains all available custom databases. If no custom databases are selected, spectral library search is disabled by default. (Optional) #Request default job configuration api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetDefaultJobConfig(include_config_map = var_include_config_map, move_parameters_to_config_map = var_move_parameters_to_config_map, include_custom_dbs_for_structure_search = var_include_custom_dbs_for_structure_searchdata_file = "result.txt") result <- api_instance$jobs_api$GetDefaultJobConfig(include_config_map = var_include_config_map, move_parameters_to_config_map = var_move_parameters_to_config_map, include_custom_dbs_for_structure_search = var_include_custom_dbs_for_structure_search) dput(result) #################### GetJob #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to run jobs on var_job_id <- "job_id_example" # character | id of the job to be returned var_opt_fields <- c("none") # array[character] | set of optional fields to be included. Use 'none' only to override defaults. (Optional) #Get job information and its current state and progress (if available). api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetJob(var_project_id, var_job_id, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$jobs_api$GetJob(var_project_id, var_job_id, opt_fields = var_opt_fields) dput(result) #################### GetJobConfig #################### library(RSirius) var_name <- "name_example" # character | name of the job-config to return var_move_parameters_to_config_map <- FALSE # character | if true, object-based parameters will be converted to and added to the generic configMap parameters (Optional) #Request job configuration with given name. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetJobConfig(var_name, move_parameters_to_config_map = var_move_parameters_to_config_mapdata_file = "result.txt") result <- api_instance$jobs_api$GetJobConfig(var_name, move_parameters_to_config_map = var_move_parameters_to_config_map) dput(result) #################### GetJobConfigNames #################### library(RSirius) #[DEPRECATED] Get all (non-default) job configuration names api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetJobConfigNames(data_file = "result.txt") result <- api_instance$jobs_api$GetJobConfigNames() dput(result) #################### GetJobConfigs #################### library(RSirius) #Request all available job configurations api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetJobConfigs(data_file = "result.txt") result <- api_instance$jobs_api$GetJobConfigs() dput(result) #################### GetJobs #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to run jobs on var_opt_fields <- c("none") # array[character] | set of optional fields to be included. Use 'none' only to override defaults. (Optional) #[DEPRECATED] Get list of all available jobs with information such as current state and progress (if available) api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetJobs(var_project_id, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$jobs_api$GetJobs(var_project_id, opt_fields = var_opt_fields) dput(result) #################### GetJobsPage #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to run jobs on var_page <- 0 # integer | Zero-based page index (0..N) (Optional) var_size <- 20 # integer | The size of the page to be returned (Optional) var_sort <- c("inner_example") # array[character] | Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. (Optional) var_opt_fields <- c("none") # array[character] | set of optional fields to be included. Use 'none' only to override defaults. (Optional) #Get Page of jobs with information such as current state and progress (if available). api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetJobsPage(var_project_id, page = var_page, size = var_size, sort = var_sort, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$jobs_api$GetJobsPage(var_project_id, page = var_page, size = var_size, sort = var_sort, opt_fields = var_opt_fields) dput(result) #################### HasJobs #################### library(RSirius) var_project_id <- "project_id_example" # character | var_include_finished <- FALSE # character | (Optional) api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$HasJobs(var_project_id, include_finished = var_include_finisheddata_file = "result.txt") result <- api_instance$jobs_api$HasJobs(var_project_id, include_finished = var_include_finished) dput(result) #################### SaveJobConfig #################### library(RSirius) var_name <- "name_example" # character | name of the job-config to add var_job_submission <- JobSubmission$new(c("fallbackAdducts_example"), c("enforcedAdducts_example"), c("detectableAdducts_example"), "recompute_example", SpectralLibrarySearch$new("enabled_example", c("spectraSearchDBs_example"), 123, 123, 123, "enableAnalogueSearch_example", 123, 123, "INTENSITY", 123), Sirius$new("enabled_example", "QTOF", 123, 123, 123, "IGNORE", "filterByIsotopePattern_example", "enforceElGordoFormula_example", "performBottomUpSearch_example", 123, c("formulaSearchDBs_example"), "applyFormulaConstraintsToDBAndBottomUpSearch_example", "enforcedFormulaConstraints_example", "fallbackFormulaConstraints_example", c("detectableElements_example"), Timeout$new(123, 123), UseHeuristic$new(123, 123), "injectSpecLibMatchFormulas_example", 123, 123), Zodiac$new("enabled_example", 123, 123, "runInTwoSteps_example", ZodiacEdgeFilterThresholds$new(123, 123, 123), ZodiacEpochs$new(123, 123, 123), ZodiacLibraryScoring$new("enabled_example", 123), ZodiacAnalogueNodes$new("enabled_example", 123, 123)), FingerprintPrediction$new("enabled_example", "useScoreThreshold_example", "alwaysPredictHighRefMatches_example"), Canopus$new("enabled_example"), StructureDbSearch$new("enabled_example", c("structureSearchDBs_example"), "tagStructuresWithLipidClass_example", "OFF"), MsNovelist$new("enabled_example", 123), c(key = "inner_example"), c("compoundIds_example"), c("alignedFeatureIds_example")) # JobSubmission | to add var_override_existing <- FALSE # character | (Optional) var_move_parameters_to_config_map <- FALSE # character | if true, object-based parameters will be converted to and added to the generic configMap parameters in the return object (Optional) #Add new job configuration with given name. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$SaveJobConfig(var_name, var_job_submission, override_existing = var_override_existing, move_parameters_to_config_map = var_move_parameters_to_config_mapdata_file = "result.txt") result <- api_instance$jobs_api$SaveJobConfig(var_name, var_job_submission, override_existing = var_override_existing, move_parameters_to_config_map = var_move_parameters_to_config_map) dput(result) #################### StartJob #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to run jobs on var_job_submission <- JobSubmission$new(c("fallbackAdducts_example"), c("enforcedAdducts_example"), c("detectableAdducts_example"), "recompute_example", SpectralLibrarySearch$new("enabled_example", c("spectraSearchDBs_example"), 123, 123, 123, "enableAnalogueSearch_example", 123, 123, "INTENSITY", 123), Sirius$new("enabled_example", "QTOF", 123, 123, 123, "IGNORE", "filterByIsotopePattern_example", "enforceElGordoFormula_example", "performBottomUpSearch_example", 123, c("formulaSearchDBs_example"), "applyFormulaConstraintsToDBAndBottomUpSearch_example", "enforcedFormulaConstraints_example", "fallbackFormulaConstraints_example", c("detectableElements_example"), Timeout$new(123, 123), UseHeuristic$new(123, 123), "injectSpecLibMatchFormulas_example", 123, 123), Zodiac$new("enabled_example", 123, 123, "runInTwoSteps_example", ZodiacEdgeFilterThresholds$new(123, 123, 123), ZodiacEpochs$new(123, 123, 123), ZodiacLibraryScoring$new("enabled_example", 123), ZodiacAnalogueNodes$new("enabled_example", 123, 123)), FingerprintPrediction$new("enabled_example", "useScoreThreshold_example", "alwaysPredictHighRefMatches_example"), Canopus$new("enabled_example"), StructureDbSearch$new("enabled_example", c("structureSearchDBs_example"), "tagStructuresWithLipidClass_example", "OFF"), MsNovelist$new("enabled_example", 123), c(key = "inner_example"), c("compoundIds_example"), c("alignedFeatureIds_example")) # JobSubmission | configuration of the job to be submitted var_opt_fields <- c("none") # array[character] | set of optional fields to be included. Use 'none' only to override defaults. (Optional) #Start computation for given compounds and with given parameters. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$StartJob(var_project_id, var_job_submission, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$jobs_api$StartJob(var_project_id, var_job_submission, opt_fields = var_opt_fields) dput(result) #################### StartJobFromConfig #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to run jobs on var_job_config_name <- "job_config_name_example" # character | name of the config to be used var_request_body <- c("property_example") # array[character] | List of alignedFeatureIds to be computed var_recompute <- "recompute_example" # character | enable or disable recompute. If null the stored value will be used. (Optional) var_opt_fields <- c("none") # array[character] | set of optional fields to be included. Use 'none' only to override defaults. (Optional) #Start computation for given compounds and with parameters from a stored job-config. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$StartJobFromConfig(var_project_id, var_job_config_name, var_request_body, recompute = var_recompute, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$jobs_api$StartJobFromConfig(var_project_id, var_job_config_name, var_request_body, recompute = var_recompute, opt_fields = var_opt_fields) dput(result) ## End(Not run)
Object to submit a job to be executed by SIRIUS
JobSubmission Class
An R6Class generator object
Create a new JobSubmission
fallbackAdductsFallback adducts are considered if the auto-detection did not find any indication for an ion mode. Pos Examples: [M+H]+,[M]+,[M+K]+,[M+Na]+,[M+H-H2O]+,[M+Na2-H]+,[M+2K-H]+,[M+NH4]+,[M+H3O]+,[M+MeOH+H]+,[M+ACN+H]+,[M+2ACN+H]+,[M+IPA+H]+,[M+ACN+Na]+,[M+DMSO+H]+ Neg Examples: [M-H]-,[M]-,[M+K-2H]-,[M+Cl]-,[M-H2O-H]-,[M+Na-2H]-,[M+FA-H]-,[M+Br]-,[M+HAc-H]-,[M+TFA-H]-,[M+ACN-H]- list(character) [optional]
enforcedAdductsEnforced adducts that are always considered. Pos Examples: [M+H]+,[M]+,[M+K]+,[M+Na]+,[M+H-H2O]+,[M+Na2-H]+,[M+2K-H]+,[M+NH4]+,[M+H3O]+,[M+MeOH+H]+,[M+ACN+H]+,[M+2ACN+H]+,[M+IPA+H]+,[M+ACN+Na]+,[M+DMSO+H]+ Neg Examples: [M-H]-,[M]-,[M+K-2H]-,[M+Cl]-,[M-H2O-H]-,[M+Na-2H]-,[M+FA-H]-,[M+Br]-,[M+HAc-H]-,[M+TFA-H]-,[M+ACN-H]- list(character) [optional]
detectableAdductsDetectable adducts which are only considered if there is an indication in the MS1 scan (e.g. correct mass delta). Pos Examples: [M+H]+,[M]+,[M+K]+,[M+Na]+,[M+H-H2O]+,[M+Na2-H]+,[M+2K-H]+,[M+NH4]+,[M+H3O]+,[M+MeOH+H]+,[M+ACN+H]+,[M+2ACN+H]+,[M+IPA+H]+,[M+ACN+Na]+,[M+DMSO+H]+ Neg Examples: [M-H]-,[M]-,[M+K-2H]-,[M+Cl]-,[M-H2O-H]-,[M+Na-2H]-,[M+FA-H]-,[M+Br]-,[M+HAc-H]-,[M+TFA-H]-,[M+ACN-H]- list(character) [optional]
recomputeIndicate if already existing result for a tool to be executed should be overwritten or not. character [optional]
spectraSearchParamsSpectralLibrarySearch [optional]
formulaIdParamsSirius [optional]
zodiacParamsZodiac [optional]
fingerprintPredictionParamsFingerprintPrediction [optional]
canopusParamsCanopus [optional]
structureDbSearchParamsStructureDbSearch [optional]
msNovelistParamsMsNovelist [optional]
configMapAs an alternative to the object based parameters, this map allows to store key value pairs of ALL SIRIUS parameters. All possible parameters can be retrieved from SIRIUS via the respective endpoint. named list(character) [optional]
compoundIdsCompounds that should be the input for this Job Will be converted to the respective alignedFeatureIds for computation. At least one compoundId or alignedFeatureId needs to be specified. list(character) [optional]
alignedFeatureIdsFeatures (aligned over runs) that should be the input for this Job At least one compoundId or alignedFeatureId needs to be specified. list(character) [optional]
new()
Initialize a new JobSubmission class.
JobSubmission$new( fallbackAdducts = NULL, enforcedAdducts = NULL, detectableAdducts = NULL, recompute = NULL, spectraSearchParams = NULL, formulaIdParams = NULL, zodiacParams = NULL, fingerprintPredictionParams = NULL, canopusParams = NULL, structureDbSearchParams = NULL, msNovelistParams = NULL, configMap = NULL, compoundIds = NULL, alignedFeatureIds = NULL, ... )
fallbackAdductsFallback adducts are considered if the auto-detection did not find any indication for an ion mode. Pos Examples: [M+H]+,[M]+,[M+K]+,[M+Na]+,[M+H-H2O]+,[M+Na2-H]+,[M+2K-H]+,[M+NH4]+,[M+H3O]+,[M+MeOH+H]+,[M+ACN+H]+,[M+2ACN+H]+,[M+IPA+H]+,[M+ACN+Na]+,[M+DMSO+H]+ Neg Examples: [M-H]-,[M]-,[M+K-2H]-,[M+Cl]-,[M-H2O-H]-,[M+Na-2H]-,[M+FA-H]-,[M+Br]-,[M+HAc-H]-,[M+TFA-H]-,[M+ACN-H]-
enforcedAdductsEnforced adducts that are always considered. Pos Examples: [M+H]+,[M]+,[M+K]+,[M+Na]+,[M+H-H2O]+,[M+Na2-H]+,[M+2K-H]+,[M+NH4]+,[M+H3O]+,[M+MeOH+H]+,[M+ACN+H]+,[M+2ACN+H]+,[M+IPA+H]+,[M+ACN+Na]+,[M+DMSO+H]+ Neg Examples: [M-H]-,[M]-,[M+K-2H]-,[M+Cl]-,[M-H2O-H]-,[M+Na-2H]-,[M+FA-H]-,[M+Br]-,[M+HAc-H]-,[M+TFA-H]-,[M+ACN-H]-
detectableAdductsDetectable adducts which are only considered if there is an indication in the MS1 scan (e.g. correct mass delta). Pos Examples: [M+H]+,[M]+,[M+K]+,[M+Na]+,[M+H-H2O]+,[M+Na2-H]+,[M+2K-H]+,[M+NH4]+,[M+H3O]+,[M+MeOH+H]+,[M+ACN+H]+,[M+2ACN+H]+,[M+IPA+H]+,[M+ACN+Na]+,[M+DMSO+H]+ Neg Examples: [M-H]-,[M]-,[M+K-2H]-,[M+Cl]-,[M-H2O-H]-,[M+Na-2H]-,[M+FA-H]-,[M+Br]-,[M+HAc-H]-,[M+TFA-H]-,[M+ACN-H]-
recomputeIndicate if already existing result for a tool to be executed should be overwritten or not.
spectraSearchParamsspectraSearchParams
formulaIdParamsformulaIdParams
zodiacParamszodiacParams
fingerprintPredictionParamsfingerprintPredictionParams
canopusParamscanopusParams
structureDbSearchParamsstructureDbSearchParams
msNovelistParamsmsNovelistParams
configMapAs an alternative to the object based parameters, this map allows to store key value pairs of ALL SIRIUS parameters. All possible parameters can be retrieved from SIRIUS via the respective endpoint.
compoundIdsCompounds that should be the input for this Job Will be converted to the respective alignedFeatureIds for computation. At least one compoundId or alignedFeatureId needs to be specified.
alignedFeatureIdsFeatures (aligned over runs) that should be the input for this Job At least one compoundId or alignedFeatureId needs to be specified.
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
JobSubmission$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
JobSubmission$toList()
JobSubmission as a base R list.
# convert array of JobSubmission (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert JobSubmission to a base R type
JobSubmission$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of JobSubmission
JobSubmission$fromJSON(input_json)
input_jsonthe JSON input
the instance of JobSubmission
toJSONString()
To JSON String
JobSubmission$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
JobSubmission in JSON format
fromJSONString()
Deserialize JSON string into an instance of JobSubmission
JobSubmission$fromJSONString(input_json)
input_jsonthe JSON input
the instance of JobSubmission
validateJSON()
Validate JSON input with respect to JobSubmission and throw an exception if invalid
JobSubmission$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
JobSubmission$toString()
String representation of JobSubmission
isValid()
Return true if the values in all fields are valid.
JobSubmission$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
JobSubmission$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
JobSubmission$print()
clone()
The objects of this class are cloneable with this method.
JobSubmission$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `JobSubmission$toList` ## ------------------------------------------------ # convert array of JobSubmission (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `JobSubmission$toList` ## ------------------------------------------------ # convert array of JobSubmission (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
LcmsSubmissionParameters Class
LcmsSubmissionParameters Class
An R6Class generator object
Create a new LcmsSubmissionParameters
sampleNamesSample names for each input file to link imported results, e.g. QuantTable back to the input data. If NULL or empty sample names will be derived from the input files. <p> The names are matched to the input files by index. Partial lists are allowed: a NULL entry and any input file without a corresponding entry get their name derived from the input file. Surplus entries that match no input file are ignored. <p> Names must neither be blank nor duplicated, otherwise the import is rejected. list(character) [optional]
sampleTypesSample type for each input file to be used to compute fold changes between blank and sample runs If NULL or empty no fold changes will be computed during preprocessing. <p> The types are matched to the input files by index. In contrast to sampleNames either all or no sample types have to be given: if the number of types does not match the number of input files or if any type is NULL or blank, the import is rejected. list(character) [optional]
alignLCMSRunsSpecifies whether LC/MS runs should be aligned character [optional]
noiseIntensityNoise level under which all peaks are considered to be likely noise. A peak has to be at least 3x noise level to be picked as feature. Peaks with MS/MS are still picked even though they might be below noise level. If not specified, the noise intensity is detected automatically from the data. We recommend NOT specifying this parameter, as the automated detection is usually sufficient. numeric [optional]
traceMaxMassDeviationDeviation [optional]
alignMaxMassDeviationDeviation [optional]
alignMaxRetentionTimeDeviationMaximum allowed retention time error in seconds for aligning features. If not specified, this parameter is estimated from the data. numeric [optional]
minSNRMinimum ratio between peak height and noise intensity for detecting features. By default, this value is 3. Features with good MS/MS are always picked independent of their intensity. For picking very low intensity features we recommend a min-snr of 2, but this will increase runtime and storage requirements numeric [optional]
new()
Initialize a new LcmsSubmissionParameters class.
LcmsSubmissionParameters$new( sampleNames = NULL, sampleTypes = NULL, alignLCMSRuns = TRUE, noiseIntensity = -1, traceMaxMassDeviation = NULL, alignMaxMassDeviation = NULL, alignMaxRetentionTimeDeviation = -1, minSNR = 3, ... )
sampleNamesSample names for each input file to link imported results, e.g. QuantTable back to the input data. If NULL or empty sample names will be derived from the input files. <p> The names are matched to the input files by index. Partial lists are allowed: a NULL entry and any input file without a corresponding entry get their name derived from the input file. Surplus entries that match no input file are ignored. <p> Names must neither be blank nor duplicated, otherwise the import is rejected.
sampleTypesSample type for each input file to be used to compute fold changes between blank and sample runs If NULL or empty no fold changes will be computed during preprocessing. <p> The types are matched to the input files by index. In contrast to sampleNames either all or no sample types have to be given: if the number of types does not match the number of input files or if any type is NULL or blank, the import is rejected.
alignLCMSRunsSpecifies whether LC/MS runs should be aligned. Default to TRUE.
noiseIntensityNoise level under which all peaks are considered to be likely noise. A peak has to be at least 3x noise level to be picked as feature. Peaks with MS/MS are still picked even though they might be below noise level. If not specified, the noise intensity is detected automatically from the data. We recommend NOT specifying this parameter, as the automated detection is usually sufficient.. Default to -1.
traceMaxMassDeviationtraceMaxMassDeviation
alignMaxMassDeviationalignMaxMassDeviation
alignMaxRetentionTimeDeviationMaximum allowed retention time error in seconds for aligning features. If not specified, this parameter is estimated from the data.. Default to -1.
minSNRMinimum ratio between peak height and noise intensity for detecting features. By default, this value is 3. Features with good MS/MS are always picked independent of their intensity. For picking very low intensity features we recommend a min-snr of 2, but this will increase runtime and storage requirements. Default to 3.
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
LcmsSubmissionParameters$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
LcmsSubmissionParameters$toList()
LcmsSubmissionParameters as a base R list.
# convert array of LcmsSubmissionParameters (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert LcmsSubmissionParameters to a base R type
LcmsSubmissionParameters$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of LcmsSubmissionParameters
LcmsSubmissionParameters$fromJSON(input_json)
input_jsonthe JSON input
the instance of LcmsSubmissionParameters
toJSONString()
To JSON String
LcmsSubmissionParameters$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
LcmsSubmissionParameters in JSON format
fromJSONString()
Deserialize JSON string into an instance of LcmsSubmissionParameters
LcmsSubmissionParameters$fromJSONString(input_json)
input_jsonthe JSON input
the instance of LcmsSubmissionParameters
validateJSON()
Validate JSON input with respect to LcmsSubmissionParameters and throw an exception if invalid
LcmsSubmissionParameters$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
LcmsSubmissionParameters$toString()
String representation of LcmsSubmissionParameters
isValid()
Return true if the values in all fields are valid.
LcmsSubmissionParameters$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
LcmsSubmissionParameters$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
LcmsSubmissionParameters$print()
clone()
The objects of this class are cloneable with this method.
LcmsSubmissionParameters$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `LcmsSubmissionParameters$toList` ## ------------------------------------------------ # convert array of LcmsSubmissionParameters (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `LcmsSubmissionParameters$toList` ## ------------------------------------------------ # convert array of LcmsSubmissionParameters (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
LicenseInfo Class
LicenseInfo Class
An R6Class generator object
Create a new LicenseInfo
userEmailEmail address of the user account this license information belongs to. character [optional]
userIdUser ID (uid) of the user account this license information belongs to. character [optional]
subscriptionSubscription [optional]
consumablesSubscriptionConsumables [optional]
termslist(Term) [optional]
new()
Initialize a new LicenseInfo class.
LicenseInfo$new( userEmail = NULL, userId = NULL, subscription = NULL, consumables = NULL, terms = NULL, ... )
userEmailEmail address of the user account this license information belongs to.
userIdUser ID (uid) of the user account this license information belongs to.
subscriptionsubscription
consumablesconsumables
termsterms
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
LicenseInfo$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
LicenseInfo$toList()
LicenseInfo as a base R list.
# convert array of LicenseInfo (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert LicenseInfo to a base R type
LicenseInfo$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of LicenseInfo
LicenseInfo$fromJSON(input_json)
input_jsonthe JSON input
the instance of LicenseInfo
toJSONString()
To JSON String
LicenseInfo$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
LicenseInfo in JSON format
fromJSONString()
Deserialize JSON string into an instance of LicenseInfo
LicenseInfo$fromJSONString(input_json)
input_jsonthe JSON input
the instance of LicenseInfo
validateJSON()
Validate JSON input with respect to LicenseInfo and throw an exception if invalid
LicenseInfo$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
LicenseInfo$toString()
String representation of LicenseInfo
isValid()
Return true if the values in all fields are valid.
LicenseInfo$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
LicenseInfo$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
LicenseInfo$print()
clone()
The objects of this class are cloneable with this method.
LicenseInfo$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `LicenseInfo$toList` ## ------------------------------------------------ # convert array of LicenseInfo (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `LicenseInfo$toList` ## ------------------------------------------------ # convert array of LicenseInfo (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
LipidAnnotation Class
LipidAnnotation Class
An R6Class generator object
Create a new LipidAnnotation
lipidSpeciesPredicted lipid species in LIPID MAPS notation. NULL if not classified as lipid. character [optional]
lipidMapsIdLIPID MAPS id of the predicted lipid class. character [optional]
lipidClassNameHuman-readable name of the predicted lipid class. character [optional]
hypotheticalStructureHypothetical molecular structure of the predicted lipid species as SMILES. NULL if hypothetical structure not available. character [optional]
chainsUnknownTrue if the formula composition of the chains could not be determined from the MS/MS. character [optional]
new()
Initialize a new LipidAnnotation class.
LipidAnnotation$new( lipidSpecies = NULL, lipidMapsId = NULL, lipidClassName = NULL, hypotheticalStructure = NULL, chainsUnknown = NULL, ... )
lipidSpeciesPredicted lipid species in LIPID MAPS notation. NULL if not classified as lipid.
lipidMapsIdLIPID MAPS id of the predicted lipid class.
lipidClassNameHuman-readable name of the predicted lipid class.
hypotheticalStructureHypothetical molecular structure of the predicted lipid species as SMILES. NULL if hypothetical structure not available.
chainsUnknownTrue if the formula composition of the chains could not be determined from the MS/MS.
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
LipidAnnotation$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
LipidAnnotation$toList()
LipidAnnotation as a base R list.
# convert array of LipidAnnotation (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert LipidAnnotation to a base R type
LipidAnnotation$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of LipidAnnotation
LipidAnnotation$fromJSON(input_json)
input_jsonthe JSON input
the instance of LipidAnnotation
toJSONString()
To JSON String
LipidAnnotation$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
LipidAnnotation in JSON format
fromJSONString()
Deserialize JSON string into an instance of LipidAnnotation
LipidAnnotation$fromJSONString(input_json)
input_jsonthe JSON input
the instance of LipidAnnotation
validateJSON()
Validate JSON input with respect to LipidAnnotation and throw an exception if invalid
LipidAnnotation$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
LipidAnnotation$toString()
String representation of LipidAnnotation
isValid()
Return true if the values in all fields are valid.
LipidAnnotation$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
LipidAnnotation$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
LipidAnnotation$print()
clone()
The objects of this class are cloneable with this method.
LipidAnnotation$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `LipidAnnotation$toList` ## ------------------------------------------------ # convert array of LipidAnnotation (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `LipidAnnotation$toList` ## ------------------------------------------------ # convert array of LipidAnnotation (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
LoginAndAccountApi
An R6Class generator object
SIRIUS Nightsky API
REST API that provides the full functionality of SIRIUS and its web services as background service. It is intended as entry-point for scripting languages and software integration SDKs.This API is exposed by SIRIUS 6
The version of the OpenAPI document: 3.2 Generated by: https://openapi-generator.tech
api_clientHandles the client-server communication.
new()
Initialize a new LoginAndAccountApi.
LoginAndAccountApi$new(api_client)
api_clientAn instance of API client.
GetAccountInfo()
Get information about the account currently logged in.
LoginAndAccountApi$GetAccountInfo(include_subs = FALSE, data_file = NULL, ...)
include_subs(optional) include available and active subscriptions in <code>AccountInfo</code>. (default value: FALSE)
data_file(optional) name of the data file to save the result
...Other optional arguments
AccountInfo
GetAccountInfoWithHttpInfo()
Get information about the account currently logged in.
LoginAndAccountApi$GetAccountInfoWithHttpInfo( include_subs = FALSE, data_file = NULL, ... )
include_subs(optional) include available and active subscriptions in <code>AccountInfo</code>. (default value: FALSE)
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (AccountInfo) with additional information such as HTTP status code, headers
GetSignUpURL()
Get SignUp URL (For signUp via web browser)
LoginAndAccountApi$GetSignUpURL(data_file = NULL, ...)
data_file(optional) name of the data file to save the result
...Other optional arguments
character
GetSignUpURLWithHttpInfo()
Get SignUp URL (For signUp via web browser)
LoginAndAccountApi$GetSignUpURLWithHttpInfo(data_file = NULL, ...)
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (character) with additional information such as HTTP status code, headers
GetSubscriptions()
Get available subscriptions of the account currently logged in.
LoginAndAccountApi$GetSubscriptions(data_file = NULL, ...)
data_file(optional) name of the data file to save the result
...Other optional arguments
array[Subscription]
GetSubscriptionsWithHttpInfo()
Get available subscriptions of the account currently logged in.
LoginAndAccountApi$GetSubscriptionsWithHttpInfo(data_file = NULL, ...)
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (array[Subscription]) with additional information such as HTTP status code, headers
IsLoggedIn()
Check if a user is logged in.
LoginAndAccountApi$IsLoggedIn(data_file = NULL, ...)
data_file(optional) name of the data file to save the result
...Other optional arguments
character
IsLoggedInWithHttpInfo()
Check if a user is logged in.
LoginAndAccountApi$IsLoggedInWithHttpInfo(data_file = NULL, ...)
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (character) with additional information such as HTTP status code, headers
Login()
Login into SIRIUS web services and activate default subscription if available.
LoginAndAccountApi$Login( accept_terms, account_credentials, fail_when_logged_in = FALSE, include_subs = FALSE, data_file = NULL, ... )
accept_termsaccount_credentialsused to log in.
fail_when_logged_in(optional) if true request fails if an active login already exists. (default value: FALSE)
include_subs(optional) include available and active subscriptions in <code>AccountInfo</code>. (default value: FALSE)
data_file(optional) name of the data file to save the result
...Other optional arguments
AccountInfo
LoginWithHttpInfo()
Login into SIRIUS web services and activate default subscription if available.
LoginAndAccountApi$LoginWithHttpInfo( accept_terms, account_credentials, fail_when_logged_in = FALSE, include_subs = FALSE, data_file = NULL, ... )
accept_termsaccount_credentialsused to log in.
fail_when_logged_in(optional) if true request fails if an active login already exists. (default value: FALSE)
include_subs(optional) include available and active subscriptions in <code>AccountInfo</code>. (default value: FALSE)
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (AccountInfo) with additional information such as HTTP status code, headers
Logout()
Logout from SIRIUS web services.
LoginAndAccountApi$Logout(...)
...Other optional arguments
void
LogoutWithHttpInfo()
Logout from SIRIUS web services.
LoginAndAccountApi$LogoutWithHttpInfo(...)
...Other optional arguments
API response (void) with additional information such as HTTP status code, headers
OpenPortal()
Open User portal in browser.
LoginAndAccountApi$OpenPortal(...)
...Other optional arguments
void
OpenPortalWithHttpInfo()
Open User portal in browser.
LoginAndAccountApi$OpenPortalWithHttpInfo(...)
...Other optional arguments
API response (void) with additional information such as HTTP status code, headers
SelectSubscription()
Select a subscription as active subscription to be used for computations.
LoginAndAccountApi$SelectSubscription(sid, data_file = NULL, ...)
siddata_file(optional) name of the data file to save the result
...Other optional arguments
AccountInfo
SelectSubscriptionWithHttpInfo()
Select a subscription as active subscription to be used for computations.
LoginAndAccountApi$SelectSubscriptionWithHttpInfo(sid, data_file = NULL, ...)
siddata_file(optional) name of the data file to save the result
...Other optional arguments
API response (AccountInfo) with additional information such as HTTP status code, headers
SignUp()
Open SignUp window in system browser and return signUp link.
LoginAndAccountApi$SignUp(data_file = NULL, ...)
data_file(optional) name of the data file to save the result
...Other optional arguments
character
SignUpWithHttpInfo()
Open SignUp window in system browser and return signUp link.
LoginAndAccountApi$SignUpWithHttpInfo(data_file = NULL, ...)
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (character) with additional information such as HTTP status code, headers
clone()
The objects of this class are cloneable with this method.
LoginAndAccountApi$clone(deep = FALSE)
deepWhether to make a deep clone.
## Not run: #################### GetAccountInfo #################### library(RSirius) var_include_subs <- FALSE # character | include available and active subscriptions in <code>AccountInfo</code>. (Optional) #Get information about the account currently logged in. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetAccountInfo(include_subs = var_include_subsdata_file = "result.txt") result <- api_instance$login_and_account_api$GetAccountInfo(include_subs = var_include_subs) dput(result) #################### GetSignUpURL #################### library(RSirius) #Get SignUp URL (For signUp via web browser) api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetSignUpURL(data_file = "result.txt") result <- api_instance$login_and_account_api$GetSignUpURL() dput(result) #################### GetSubscriptions #################### library(RSirius) #Get available subscriptions of the account currently logged in. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetSubscriptions(data_file = "result.txt") result <- api_instance$login_and_account_api$GetSubscriptions() dput(result) #################### IsLoggedIn #################### library(RSirius) #Check if a user is logged in. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$IsLoggedIn(data_file = "result.txt") result <- api_instance$login_and_account_api$IsLoggedIn() dput(result) #################### Login #################### library(RSirius) var_accept_terms <- "accept_terms_example" # character | var_account_credentials <- AccountCredentials$new("username_example", "password_example", "refreshToken_example") # AccountCredentials | used to log in. var_fail_when_logged_in <- FALSE # character | if true request fails if an active login already exists. (Optional) var_include_subs <- FALSE # character | include available and active subscriptions in <code>AccountInfo</code>. (Optional) #Login into SIRIUS web services and activate default subscription if available. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$Login(var_accept_terms, var_account_credentials, fail_when_logged_in = var_fail_when_logged_in, include_subs = var_include_subsdata_file = "result.txt") result <- api_instance$login_and_account_api$Login(var_accept_terms, var_account_credentials, fail_when_logged_in = var_fail_when_logged_in, include_subs = var_include_subs) dput(result) #################### Logout #################### library(RSirius) #Logout from SIRIUS web services. api_instance <- rsirius_api$new() api_instance$login_and_account_api$Logout() #################### OpenPortal #################### library(RSirius) #Open User portal in browser. api_instance <- rsirius_api$new() api_instance$login_and_account_api$OpenPortal() #################### SelectSubscription #################### library(RSirius) var_sid <- "sid_example" # character | #Select a subscription as active subscription to be used for computations. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$SelectSubscription(var_siddata_file = "result.txt") result <- api_instance$login_and_account_api$SelectSubscription(var_sid) dput(result) #################### SignUp #################### library(RSirius) #Open SignUp window in system browser and return signUp link. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$SignUp(data_file = "result.txt") result <- api_instance$login_and_account_api$SignUp() dput(result) ## End(Not run)## Not run: #################### GetAccountInfo #################### library(RSirius) var_include_subs <- FALSE # character | include available and active subscriptions in <code>AccountInfo</code>. (Optional) #Get information about the account currently logged in. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetAccountInfo(include_subs = var_include_subsdata_file = "result.txt") result <- api_instance$login_and_account_api$GetAccountInfo(include_subs = var_include_subs) dput(result) #################### GetSignUpURL #################### library(RSirius) #Get SignUp URL (For signUp via web browser) api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetSignUpURL(data_file = "result.txt") result <- api_instance$login_and_account_api$GetSignUpURL() dput(result) #################### GetSubscriptions #################### library(RSirius) #Get available subscriptions of the account currently logged in. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetSubscriptions(data_file = "result.txt") result <- api_instance$login_and_account_api$GetSubscriptions() dput(result) #################### IsLoggedIn #################### library(RSirius) #Check if a user is logged in. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$IsLoggedIn(data_file = "result.txt") result <- api_instance$login_and_account_api$IsLoggedIn() dput(result) #################### Login #################### library(RSirius) var_accept_terms <- "accept_terms_example" # character | var_account_credentials <- AccountCredentials$new("username_example", "password_example", "refreshToken_example") # AccountCredentials | used to log in. var_fail_when_logged_in <- FALSE # character | if true request fails if an active login already exists. (Optional) var_include_subs <- FALSE # character | include available and active subscriptions in <code>AccountInfo</code>. (Optional) #Login into SIRIUS web services and activate default subscription if available. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$Login(var_accept_terms, var_account_credentials, fail_when_logged_in = var_fail_when_logged_in, include_subs = var_include_subsdata_file = "result.txt") result <- api_instance$login_and_account_api$Login(var_accept_terms, var_account_credentials, fail_when_logged_in = var_fail_when_logged_in, include_subs = var_include_subs) dput(result) #################### Logout #################### library(RSirius) #Logout from SIRIUS web services. api_instance <- rsirius_api$new() api_instance$login_and_account_api$Logout() #################### OpenPortal #################### library(RSirius) #Open User portal in browser. api_instance <- rsirius_api$new() api_instance$login_and_account_api$OpenPortal() #################### SelectSubscription #################### library(RSirius) var_sid <- "sid_example" # character | #Select a subscription as active subscription to be used for computations. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$SelectSubscription(var_siddata_file = "result.txt") result <- api_instance$login_and_account_api$SelectSubscription(var_sid) dput(result) #################### SignUp #################### library(RSirius) #Open SignUp window in system browser and return signUp link. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$SignUp(data_file = "result.txt") result <- api_instance$login_and_account_api$SignUp() dput(result) ## End(Not run)
LossEdge Class
LossEdge Class
An R6Class generator object
Create a new LossEdge
sourceFragmentIdxinteger [optional]
targetFragmentIdxinteger [optional]
molecularFormulacharacter [optional]
scorenumeric [optional]
new()
Initialize a new LossEdge class.
LossEdge$new( sourceFragmentIdx = NULL, targetFragmentIdx = NULL, molecularFormula = NULL, score = NULL, ... )
sourceFragmentIdxsourceFragmentIdx
targetFragmentIdxtargetFragmentIdx
molecularFormulamolecularFormula
scorescore
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
LossEdge$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
LossEdge$toList()
LossEdge as a base R list.
# convert array of LossEdge (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert LossEdge to a base R type
LossEdge$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of LossEdge
LossEdge$fromJSON(input_json)
input_jsonthe JSON input
the instance of LossEdge
toJSONString()
To JSON String
LossEdge$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
LossEdge in JSON format
fromJSONString()
Deserialize JSON string into an instance of LossEdge
LossEdge$fromJSONString(input_json)
input_jsonthe JSON input
the instance of LossEdge
validateJSON()
Validate JSON input with respect to LossEdge and throw an exception if invalid
LossEdge$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
LossEdge$toString()
String representation of LossEdge
isValid()
Return true if the values in all fields are valid.
LossEdge$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
LossEdge$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
LossEdge$print()
clone()
The objects of this class are cloneable with this method.
LossEdge$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `LossEdge$toList` ## ------------------------------------------------ # convert array of LossEdge (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `LossEdge$toList` ## ------------------------------------------------ # convert array of LossEdge (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
The MsData wraps all spectral input data belonging to a (aligned) feature. All spectra fields are optional. However, at least one Spectrum field needs to be set to create a valid MsData Object. The different types of spectra fields can be extended to adapt to other MassSpec measurement techniques not covered yet. <p> Each Feature can have: - One extracted isotope pattern (optional) - One merged MS/MS spectrum (optional) - One merged MS spectrum (optional) - many MS/MS spectra (optional) - many MS spectra (optional) <p> Each non-merged spectrum has an index which can be used to access the spectrum. <p> In the future we might add some additional information like chromatographic peak or something similar
MsData Class
An R6Class generator object
Create a new MsData
isotopePatternBasicSpectrum [optional]
mergedMs1BasicSpectrum [optional]
mergedMs2BasicSpectrum [optional]
ms1Spectralist(BasicSpectrum) [optional]
ms2Spectralist(BasicSpectrum) [optional]
new()
Initialize a new MsData class.
MsData$new( isotopePattern = NULL, mergedMs1 = NULL, mergedMs2 = NULL, ms1Spectra = NULL, ms2Spectra = NULL, ... )
isotopePatternisotopePattern
mergedMs1mergedMs1
mergedMs2mergedMs2
ms1Spectrams1Spectra
ms2Spectrams2Spectra
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
MsData$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
MsData$toList()
MsData as a base R list.
# convert array of MsData (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert MsData to a base R type
MsData$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of MsData
MsData$fromJSON(input_json)
input_jsonthe JSON input
the instance of MsData
toJSONString()
To JSON String
MsData$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
MsData in JSON format
fromJSONString()
Deserialize JSON string into an instance of MsData
MsData$fromJSONString(input_json)
input_jsonthe JSON input
the instance of MsData
validateJSON()
Validate JSON input with respect to MsData and throw an exception if invalid
MsData$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
MsData$toString()
String representation of MsData
isValid()
Return true if the values in all fields are valid.
MsData$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
MsData$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
MsData$print()
clone()
The objects of this class are cloneable with this method.
MsData$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `MsData$toList` ## ------------------------------------------------ # convert array of MsData (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `MsData$toList` ## ------------------------------------------------ # convert array of MsData (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
MsNovelist Class
MsNovelist Class
An R6Class generator object
Create a new MsNovelist
enabledIndicates whether the tool is enabled. character [optional]
numberOfCandidateToPredictNumber of structure candidates to be predicted by MsNovelist. Max Value 128. Values > 128 will be set to 128. The actual number of returned candidates might be lower due to duplicates being created by MsNovelist. integer [optional]
new()
Initialize a new MsNovelist class.
MsNovelist$new(enabled = NULL, numberOfCandidateToPredict = NULL, ...)
enabledIndicates whether the tool is enabled.
numberOfCandidateToPredictNumber of structure candidates to be predicted by MsNovelist. Max Value 128. Values > 128 will be set to 128. The actual number of returned candidates might be lower due to duplicates being created by MsNovelist.
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
MsNovelist$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
MsNovelist$toList()
MsNovelist as a base R list.
# convert array of MsNovelist (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert MsNovelist to a base R type
MsNovelist$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of MsNovelist
MsNovelist$fromJSON(input_json)
input_jsonthe JSON input
the instance of MsNovelist
toJSONString()
To JSON String
MsNovelist$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
MsNovelist in JSON format
fromJSONString()
Deserialize JSON string into an instance of MsNovelist
MsNovelist$fromJSONString(input_json)
input_jsonthe JSON input
the instance of MsNovelist
validateJSON()
Validate JSON input with respect to MsNovelist and throw an exception if invalid
MsNovelist$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
MsNovelist$toString()
String representation of MsNovelist
isValid()
Return true if the values in all fields are valid.
MsNovelist$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
MsNovelist$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
MsNovelist$print()
clone()
The objects of this class are cloneable with this method.
MsNovelist$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `MsNovelist$toList` ## ------------------------------------------------ # convert array of MsNovelist (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `MsNovelist$toList` ## ------------------------------------------------ # convert array of MsNovelist (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
PagedModelAlignedFeature Class
PagedModelAlignedFeature Class
An R6Class generator object
Create a new PagedModelAlignedFeature
contentlist(AlignedFeature) [optional]
pagePageMetadata [optional]
new()
Initialize a new PagedModelAlignedFeature class.
PagedModelAlignedFeature$new(content = NULL, page = NULL, ...)
contentcontent
pagepage
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
PagedModelAlignedFeature$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
PagedModelAlignedFeature$toList()
PagedModelAlignedFeature as a base R list.
# convert array of PagedModelAlignedFeature (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert PagedModelAlignedFeature to a base R type
PagedModelAlignedFeature$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of PagedModelAlignedFeature
PagedModelAlignedFeature$fromJSON(input_json)
input_jsonthe JSON input
the instance of PagedModelAlignedFeature
toJSONString()
To JSON String
PagedModelAlignedFeature$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
PagedModelAlignedFeature in JSON format
fromJSONString()
Deserialize JSON string into an instance of PagedModelAlignedFeature
PagedModelAlignedFeature$fromJSONString(input_json)
input_jsonthe JSON input
the instance of PagedModelAlignedFeature
validateJSON()
Validate JSON input with respect to PagedModelAlignedFeature and throw an exception if invalid
PagedModelAlignedFeature$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
PagedModelAlignedFeature$toString()
String representation of PagedModelAlignedFeature
isValid()
Return true if the values in all fields are valid.
PagedModelAlignedFeature$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
PagedModelAlignedFeature$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
PagedModelAlignedFeature$print()
clone()
The objects of this class are cloneable with this method.
PagedModelAlignedFeature$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `PagedModelAlignedFeature$toList` ## ------------------------------------------------ # convert array of PagedModelAlignedFeature (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `PagedModelAlignedFeature$toList` ## ------------------------------------------------ # convert array of PagedModelAlignedFeature (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
PagedModelCompound Class
PagedModelCompound Class
An R6Class generator object
Create a new PagedModelCompound
contentlist(Compound) [optional]
pagePageMetadata [optional]
new()
Initialize a new PagedModelCompound class.
PagedModelCompound$new(content = NULL, page = NULL, ...)
contentcontent
pagepage
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
PagedModelCompound$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
PagedModelCompound$toList()
PagedModelCompound as a base R list.
# convert array of PagedModelCompound (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert PagedModelCompound to a base R type
PagedModelCompound$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of PagedModelCompound
PagedModelCompound$fromJSON(input_json)
input_jsonthe JSON input
the instance of PagedModelCompound
toJSONString()
To JSON String
PagedModelCompound$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
PagedModelCompound in JSON format
fromJSONString()
Deserialize JSON string into an instance of PagedModelCompound
PagedModelCompound$fromJSONString(input_json)
input_jsonthe JSON input
the instance of PagedModelCompound
validateJSON()
Validate JSON input with respect to PagedModelCompound and throw an exception if invalid
PagedModelCompound$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
PagedModelCompound$toString()
String representation of PagedModelCompound
isValid()
Return true if the values in all fields are valid.
PagedModelCompound$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
PagedModelCompound$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
PagedModelCompound$print()
clone()
The objects of this class are cloneable with this method.
PagedModelCompound$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `PagedModelCompound$toList` ## ------------------------------------------------ # convert array of PagedModelCompound (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `PagedModelCompound$toList` ## ------------------------------------------------ # convert array of PagedModelCompound (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
PagedModelFeature Class
PagedModelFeature Class
An R6Class generator object
Create a new PagedModelFeature
contentlist(Feature) [optional]
pagePageMetadata [optional]
new()
Initialize a new PagedModelFeature class.
PagedModelFeature$new(content = NULL, page = NULL, ...)
contentcontent
pagepage
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
PagedModelFeature$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
PagedModelFeature$toList()
PagedModelFeature as a base R list.
# convert array of PagedModelFeature (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert PagedModelFeature to a base R type
PagedModelFeature$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of PagedModelFeature
PagedModelFeature$fromJSON(input_json)
input_jsonthe JSON input
the instance of PagedModelFeature
toJSONString()
To JSON String
PagedModelFeature$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
PagedModelFeature in JSON format
fromJSONString()
Deserialize JSON string into an instance of PagedModelFeature
PagedModelFeature$fromJSONString(input_json)
input_jsonthe JSON input
the instance of PagedModelFeature
validateJSON()
Validate JSON input with respect to PagedModelFeature and throw an exception if invalid
PagedModelFeature$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
PagedModelFeature$toString()
String representation of PagedModelFeature
isValid()
Return true if the values in all fields are valid.
PagedModelFeature$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
PagedModelFeature$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
PagedModelFeature$print()
clone()
The objects of this class are cloneable with this method.
PagedModelFeature$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `PagedModelFeature$toList` ## ------------------------------------------------ # convert array of PagedModelFeature (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `PagedModelFeature$toList` ## ------------------------------------------------ # convert array of PagedModelFeature (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
PagedModelFormulaCandidate Class
PagedModelFormulaCandidate Class
An R6Class generator object
Create a new PagedModelFormulaCandidate
contentlist(FormulaCandidate) [optional]
pagePageMetadata [optional]
new()
Initialize a new PagedModelFormulaCandidate class.
PagedModelFormulaCandidate$new(content = NULL, page = NULL, ...)
contentcontent
pagepage
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
PagedModelFormulaCandidate$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
PagedModelFormulaCandidate$toList()
PagedModelFormulaCandidate as a base R list.
# convert array of PagedModelFormulaCandidate (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert PagedModelFormulaCandidate to a base R type
PagedModelFormulaCandidate$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of PagedModelFormulaCandidate
PagedModelFormulaCandidate$fromJSON(input_json)
input_jsonthe JSON input
the instance of PagedModelFormulaCandidate
toJSONString()
To JSON String
PagedModelFormulaCandidate$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
PagedModelFormulaCandidate in JSON format
fromJSONString()
Deserialize JSON string into an instance of PagedModelFormulaCandidate
PagedModelFormulaCandidate$fromJSONString(input_json)
input_jsonthe JSON input
the instance of PagedModelFormulaCandidate
validateJSON()
Validate JSON input with respect to PagedModelFormulaCandidate and throw an exception if invalid
PagedModelFormulaCandidate$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
PagedModelFormulaCandidate$toString()
String representation of PagedModelFormulaCandidate
isValid()
Return true if the values in all fields are valid.
PagedModelFormulaCandidate$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
PagedModelFormulaCandidate$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
PagedModelFormulaCandidate$print()
clone()
The objects of this class are cloneable with this method.
PagedModelFormulaCandidate$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `PagedModelFormulaCandidate$toList` ## ------------------------------------------------ # convert array of PagedModelFormulaCandidate (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `PagedModelFormulaCandidate$toList` ## ------------------------------------------------ # convert array of PagedModelFormulaCandidate (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
PagedModelJob Class
PagedModelJob Class
An R6Class generator object
Create a new PagedModelJob
contentlist(Job) [optional]
pagePageMetadata [optional]
new()
Initialize a new PagedModelJob class.
PagedModelJob$new(content = NULL, page = NULL, ...)
contentcontent
pagepage
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
PagedModelJob$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
PagedModelJob$toList()
PagedModelJob as a base R list.
# convert array of PagedModelJob (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert PagedModelJob to a base R type
PagedModelJob$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of PagedModelJob
PagedModelJob$fromJSON(input_json)
input_jsonthe JSON input
the instance of PagedModelJob
toJSONString()
To JSON String
PagedModelJob$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
PagedModelJob in JSON format
fromJSONString()
Deserialize JSON string into an instance of PagedModelJob
PagedModelJob$fromJSONString(input_json)
input_jsonthe JSON input
the instance of PagedModelJob
validateJSON()
Validate JSON input with respect to PagedModelJob and throw an exception if invalid
PagedModelJob$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
PagedModelJob$toString()
String representation of PagedModelJob
isValid()
Return true if the values in all fields are valid.
PagedModelJob$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
PagedModelJob$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
PagedModelJob$print()
clone()
The objects of this class are cloneable with this method.
PagedModelJob$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `PagedModelJob$toList` ## ------------------------------------------------ # convert array of PagedModelJob (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `PagedModelJob$toList` ## ------------------------------------------------ # convert array of PagedModelJob (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
PagedModelRun Class
PagedModelRun Class
An R6Class generator object
Create a new PagedModelRun
contentlist(Run) [optional]
pagePageMetadata [optional]
new()
Initialize a new PagedModelRun class.
PagedModelRun$new(content = NULL, page = NULL, ...)
contentcontent
pagepage
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
PagedModelRun$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
PagedModelRun$toList()
PagedModelRun as a base R list.
# convert array of PagedModelRun (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert PagedModelRun to a base R type
PagedModelRun$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of PagedModelRun
PagedModelRun$fromJSON(input_json)
input_jsonthe JSON input
the instance of PagedModelRun
toJSONString()
To JSON String
PagedModelRun$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
PagedModelRun in JSON format
fromJSONString()
Deserialize JSON string into an instance of PagedModelRun
PagedModelRun$fromJSONString(input_json)
input_jsonthe JSON input
the instance of PagedModelRun
validateJSON()
Validate JSON input with respect to PagedModelRun and throw an exception if invalid
PagedModelRun$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
PagedModelRun$toString()
String representation of PagedModelRun
isValid()
Return true if the values in all fields are valid.
PagedModelRun$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
PagedModelRun$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
PagedModelRun$print()
clone()
The objects of this class are cloneable with this method.
PagedModelRun$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `PagedModelRun$toList` ## ------------------------------------------------ # convert array of PagedModelRun (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `PagedModelRun$toList` ## ------------------------------------------------ # convert array of PagedModelRun (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
PagedModelSpectralLibraryMatch Class
PagedModelSpectralLibraryMatch Class
An R6Class generator object
Create a new PagedModelSpectralLibraryMatch
contentlist(SpectralLibraryMatch) [optional]
pagePageMetadata [optional]
new()
Initialize a new PagedModelSpectralLibraryMatch class.
PagedModelSpectralLibraryMatch$new(content = NULL, page = NULL, ...)
contentcontent
pagepage
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
PagedModelSpectralLibraryMatch$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
PagedModelSpectralLibraryMatch$toList()
PagedModelSpectralLibraryMatch as a base R list.
# convert array of PagedModelSpectralLibraryMatch (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert PagedModelSpectralLibraryMatch to a base R type
PagedModelSpectralLibraryMatch$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of PagedModelSpectralLibraryMatch
PagedModelSpectralLibraryMatch$fromJSON(input_json)
input_jsonthe JSON input
the instance of PagedModelSpectralLibraryMatch
toJSONString()
To JSON String
PagedModelSpectralLibraryMatch$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
PagedModelSpectralLibraryMatch in JSON format
fromJSONString()
Deserialize JSON string into an instance of PagedModelSpectralLibraryMatch
PagedModelSpectralLibraryMatch$fromJSONString(input_json)
input_jsonthe JSON input
the instance of PagedModelSpectralLibraryMatch
validateJSON()
Validate JSON input with respect to PagedModelSpectralLibraryMatch and throw an exception if invalid
PagedModelSpectralLibraryMatch$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
PagedModelSpectralLibraryMatch$toString()
String representation of PagedModelSpectralLibraryMatch
isValid()
Return true if the values in all fields are valid.
PagedModelSpectralLibraryMatch$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
PagedModelSpectralLibraryMatch$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
PagedModelSpectralLibraryMatch$print()
clone()
The objects of this class are cloneable with this method.
PagedModelSpectralLibraryMatch$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `PagedModelSpectralLibraryMatch$toList` ## ------------------------------------------------ # convert array of PagedModelSpectralLibraryMatch (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `PagedModelSpectralLibraryMatch$toList` ## ------------------------------------------------ # convert array of PagedModelSpectralLibraryMatch (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
PagedModelStructureCandidateFormula Class
PagedModelStructureCandidateFormula Class
An R6Class generator object
Create a new PagedModelStructureCandidateFormula
contentlist(StructureCandidateFormula) [optional]
pagePageMetadata [optional]
new()
Initialize a new PagedModelStructureCandidateFormula class.
PagedModelStructureCandidateFormula$new(content = NULL, page = NULL, ...)
contentcontent
pagepage
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
PagedModelStructureCandidateFormula$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
PagedModelStructureCandidateFormula$toList()
PagedModelStructureCandidateFormula as a base R list.
# convert array of PagedModelStructureCandidateFormula (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert PagedModelStructureCandidateFormula to a base R type
PagedModelStructureCandidateFormula$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of PagedModelStructureCandidateFormula
PagedModelStructureCandidateFormula$fromJSON(input_json)
input_jsonthe JSON input
the instance of PagedModelStructureCandidateFormula
toJSONString()
To JSON String
PagedModelStructureCandidateFormula$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
PagedModelStructureCandidateFormula in JSON format
fromJSONString()
Deserialize JSON string into an instance of PagedModelStructureCandidateFormula
PagedModelStructureCandidateFormula$fromJSONString(input_json)
input_jsonthe JSON input
the instance of PagedModelStructureCandidateFormula
validateJSON()
Validate JSON input with respect to PagedModelStructureCandidateFormula and throw an exception if invalid
PagedModelStructureCandidateFormula$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
PagedModelStructureCandidateFormula$toString()
String representation of PagedModelStructureCandidateFormula
isValid()
Return true if the values in all fields are valid.
PagedModelStructureCandidateFormula$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
PagedModelStructureCandidateFormula$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
PagedModelStructureCandidateFormula$print()
clone()
The objects of this class are cloneable with this method.
PagedModelStructureCandidateFormula$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `PagedModelStructureCandidateFormula$toList` ## ------------------------------------------------ # convert array of PagedModelStructureCandidateFormula (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `PagedModelStructureCandidateFormula$toList` ## ------------------------------------------------ # convert array of PagedModelStructureCandidateFormula (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
PagedModelStructureCandidateScored Class
PagedModelStructureCandidateScored Class
An R6Class generator object
Create a new PagedModelStructureCandidateScored
contentlist(StructureCandidateScored) [optional]
pagePageMetadata [optional]
new()
Initialize a new PagedModelStructureCandidateScored class.
PagedModelStructureCandidateScored$new(content = NULL, page = NULL, ...)
contentcontent
pagepage
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
PagedModelStructureCandidateScored$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
PagedModelStructureCandidateScored$toList()
PagedModelStructureCandidateScored as a base R list.
# convert array of PagedModelStructureCandidateScored (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert PagedModelStructureCandidateScored to a base R type
PagedModelStructureCandidateScored$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of PagedModelStructureCandidateScored
PagedModelStructureCandidateScored$fromJSON(input_json)
input_jsonthe JSON input
the instance of PagedModelStructureCandidateScored
toJSONString()
To JSON String
PagedModelStructureCandidateScored$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
PagedModelStructureCandidateScored in JSON format
fromJSONString()
Deserialize JSON string into an instance of PagedModelStructureCandidateScored
PagedModelStructureCandidateScored$fromJSONString(input_json)
input_jsonthe JSON input
the instance of PagedModelStructureCandidateScored
validateJSON()
Validate JSON input with respect to PagedModelStructureCandidateScored and throw an exception if invalid
PagedModelStructureCandidateScored$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
PagedModelStructureCandidateScored$toString()
String representation of PagedModelStructureCandidateScored
isValid()
Return true if the values in all fields are valid.
PagedModelStructureCandidateScored$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
PagedModelStructureCandidateScored$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
PagedModelStructureCandidateScored$print()
clone()
The objects of this class are cloneable with this method.
PagedModelStructureCandidateScored$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `PagedModelStructureCandidateScored$toList` ## ------------------------------------------------ # convert array of PagedModelStructureCandidateScored (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `PagedModelStructureCandidateScored$toList` ## ------------------------------------------------ # convert array of PagedModelStructureCandidateScored (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
PageMetadata Class
PageMetadata Class
An R6Class generator object
Create a new PageMetadata
sizeinteger [optional]
numberinteger [optional]
totalElementsinteger [optional]
totalPagesinteger [optional]
new()
Initialize a new PageMetadata class.
PageMetadata$new( size = NULL, number = NULL, totalElements = NULL, totalPages = NULL, ... )
sizesize
numbernumber
totalElementstotalElements
totalPagestotalPages
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
PageMetadata$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
PageMetadata$toList()
PageMetadata as a base R list.
# convert array of PageMetadata (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert PageMetadata to a base R type
PageMetadata$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of PageMetadata
PageMetadata$fromJSON(input_json)
input_jsonthe JSON input
the instance of PageMetadata
toJSONString()
To JSON String
PageMetadata$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
PageMetadata in JSON format
fromJSONString()
Deserialize JSON string into an instance of PageMetadata
PageMetadata$fromJSONString(input_json)
input_jsonthe JSON input
the instance of PageMetadata
validateJSON()
Validate JSON input with respect to PageMetadata and throw an exception if invalid
PageMetadata$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
PageMetadata$toString()
String representation of PageMetadata
isValid()
Return true if the values in all fields are valid.
PageMetadata$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
PageMetadata$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
PageMetadata$print()
clone()
The objects of this class are cloneable with this method.
PageMetadata$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `PageMetadata$toList` ## ------------------------------------------------ # convert array of PageMetadata (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `PageMetadata$toList` ## ------------------------------------------------ # convert array of PageMetadata (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
Link from annotated fragment peak to its parent fragment peak connected by their neutral loss.
ParentPeak Class
An R6Class generator object
Create a new ParentPeak
parentIdxIndex to the parent peak connected by this loss in this particular spectrum integer
parentFragmentIdIdentifier of the parent fragment connected via this loss. Can be used to map fragments and peaks among fragmentation trees and spectra. integer
lossFormulaMolecular formula of the neutral loss that connects these two peaks. character
new()
Initialize a new ParentPeak class.
ParentPeak$new(parentIdx, parentFragmentId, lossFormula, ...)
parentIdxIndex to the parent peak connected by this loss in this particular spectrum
parentFragmentIdIdentifier of the parent fragment connected via this loss. Can be used to map fragments and peaks among fragmentation trees and spectra.
lossFormulaMolecular formula of the neutral loss that connects these two peaks.
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
ParentPeak$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
ParentPeak$toList()
ParentPeak as a base R list.
# convert array of ParentPeak (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert ParentPeak to a base R type
ParentPeak$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of ParentPeak
ParentPeak$fromJSON(input_json)
input_jsonthe JSON input
the instance of ParentPeak
toJSONString()
To JSON String
ParentPeak$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
ParentPeak in JSON format
fromJSONString()
Deserialize JSON string into an instance of ParentPeak
ParentPeak$fromJSONString(input_json)
input_jsonthe JSON input
the instance of ParentPeak
validateJSON()
Validate JSON input with respect to ParentPeak and throw an exception if invalid
ParentPeak$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
ParentPeak$toString()
String representation of ParentPeak
isValid()
Return true if the values in all fields are valid.
ParentPeak$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
ParentPeak$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
ParentPeak$print()
clone()
The objects of this class are cloneable with this method.
ParentPeak$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `ParentPeak$toList` ## ------------------------------------------------ # convert array of ParentPeak (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `ParentPeak$toList` ## ------------------------------------------------ # convert array of ParentPeak (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
PeakAnnotation Class
PeakAnnotation Class
An R6Class generator object
Create a new PeakAnnotation
fragmentIdIdentifier of the peak/fragment. Can be used to map fragments and peaks among fragmentation trees and spectra. integer
molecularFormulaMolecular formula that has been annotated to this peak character [optional]
adductAdduct that has been annotated to this peak character [optional]
exactMassExact mass of the annotated molecular formula and adduct numeric [optional]
massDeviationMzAbsolute mass deviation of the exact mass to the measured peak mass in mDa numeric [optional]
massDeviationPpmRelative mass deviation of the exact mass to the measured peak mass in ppm numeric [optional]
recalibratedMassDeviationMzAbsolute mass deviation of the exact mass to the recalibrated peak mass in mDa numeric [optional]
recalibratedMassDeviationPpmRelative mass deviation of the exact mass to the recalibrated peak mass in ppm numeric [optional]
parentPeakParentPeak [optional]
substructureAtomsEXPERIMENTAL: This field is experimental and may be changed (or even removed) without notice until it is declared stable. Array/List of indices of the atoms of the structure candidate that are part of this fragments substructure (highlighted atoms) list(integer) [optional]
substructureBondsEXPERIMENTAL: This field is experimental and may be changed (or even removed) without notice until it is declared stable. Array/List of indices of the bonds of the structure candidate that are part of this fragments substructure (highlighted bonds) Null if substructure annotation not available or not requested. list(integer) [optional]
substructureBondsCutEXPERIMENTAL: This field is experimental and may be changed (or even removed) without notice until it is declared stable. Array/List of indices of the bonds of the structure candidate that need to be cut to produce this fragments substructure (highlighted cut bonds). Null if substructure annotation not available or not requested. list(integer) [optional]
substructureScoreEXPERIMENTAL: This field is experimental and may be changed (or even removed) without notice until it is declared stable. This score roughly reflects the probability of this fragment forming. This is the score of the path from root to this node which has the maximal score or \"profit\". The score of a path is equal to the sum of scores of its contained fragments and edges. Note: Refers to 'totalScore' in CombinatorialNode Null if substructure annotation not available or not requested. numeric [optional]
hydrogenRearrangementsEXPERIMENTAL: This field is experimental and may be changed (or even removed) without notice until it is declared stable. Number of hydrogens rearrangements needed to match the substructure to the fragment formula. Null if substructure annotation not available or not requested. integer [optional]
new()
Initialize a new PeakAnnotation class.
PeakAnnotation$new( fragmentId, molecularFormula = NULL, adduct = NULL, exactMass = NULL, massDeviationMz = NULL, massDeviationPpm = NULL, recalibratedMassDeviationMz = NULL, recalibratedMassDeviationPpm = NULL, parentPeak = NULL, substructureAtoms = NULL, substructureBonds = NULL, substructureBondsCut = NULL, substructureScore = NULL, hydrogenRearrangements = NULL, ... )
fragmentIdIdentifier of the peak/fragment. Can be used to map fragments and peaks among fragmentation trees and spectra.
molecularFormulaMolecular formula that has been annotated to this peak
adductAdduct that has been annotated to this peak
exactMassExact mass of the annotated molecular formula and adduct
massDeviationMzAbsolute mass deviation of the exact mass to the measured peak mass in mDa
massDeviationPpmRelative mass deviation of the exact mass to the measured peak mass in ppm
recalibratedMassDeviationMzAbsolute mass deviation of the exact mass to the recalibrated peak mass in mDa
recalibratedMassDeviationPpmRelative mass deviation of the exact mass to the recalibrated peak mass in ppm
parentPeakparentPeak
substructureAtomsEXPERIMENTAL: This field is experimental and may be changed (or even removed) without notice until it is declared stable. Array/List of indices of the atoms of the structure candidate that are part of this fragments substructure (highlighted atoms)
substructureBondsEXPERIMENTAL: This field is experimental and may be changed (or even removed) without notice until it is declared stable. Array/List of indices of the bonds of the structure candidate that are part of this fragments substructure (highlighted bonds) Null if substructure annotation not available or not requested.
substructureBondsCutEXPERIMENTAL: This field is experimental and may be changed (or even removed) without notice until it is declared stable. Array/List of indices of the bonds of the structure candidate that need to be cut to produce this fragments substructure (highlighted cut bonds). Null if substructure annotation not available or not requested.
substructureScoreEXPERIMENTAL: This field is experimental and may be changed (or even removed) without notice until it is declared stable. This score roughly reflects the probability of this fragment forming. This is the score of the path from root to this node which has the maximal score or \"profit\". The score of a path is equal to the sum of scores of its contained fragments and edges. Note: Refers to 'totalScore' in CombinatorialNode Null if substructure annotation not available or not requested.
hydrogenRearrangementsEXPERIMENTAL: This field is experimental and may be changed (or even removed) without notice until it is declared stable. Number of hydrogens rearrangements needed to match the substructure to the fragment formula. Null if substructure annotation not available or not requested.
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
PeakAnnotation$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
PeakAnnotation$toList()
PeakAnnotation as a base R list.
# convert array of PeakAnnotation (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert PeakAnnotation to a base R type
PeakAnnotation$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of PeakAnnotation
PeakAnnotation$fromJSON(input_json)
input_jsonthe JSON input
the instance of PeakAnnotation
toJSONString()
To JSON String
PeakAnnotation$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
PeakAnnotation in JSON format
fromJSONString()
Deserialize JSON string into an instance of PeakAnnotation
PeakAnnotation$fromJSONString(input_json)
input_jsonthe JSON input
the instance of PeakAnnotation
validateJSON()
Validate JSON input with respect to PeakAnnotation and throw an exception if invalid
PeakAnnotation$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
PeakAnnotation$toString()
String representation of PeakAnnotation
isValid()
Return true if the values in all fields are valid.
PeakAnnotation$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
PeakAnnotation$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
PeakAnnotation$print()
clone()
The objects of this class are cloneable with this method.
PeakAnnotation$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `PeakAnnotation$toList` ## ------------------------------------------------ # convert array of PeakAnnotation (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `PeakAnnotation$toList` ## ------------------------------------------------ # convert array of PeakAnnotation (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
PeakPair Class
PeakPair Class
An R6Class generator object
Create a new PeakPair
queryPeakinteger
referencePeakinteger
new()
Initialize a new PeakPair class.
PeakPair$new(queryPeak, referencePeak, ...)
queryPeakqueryPeak
referencePeakreferencePeak
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
PeakPair$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
PeakPair$toList()
PeakPair as a base R list.
# convert array of PeakPair (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert PeakPair to a base R type
PeakPair$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of PeakPair
PeakPair$fromJSON(input_json)
input_jsonthe JSON input
the instance of PeakPair
toJSONString()
To JSON String
PeakPair$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
PeakPair in JSON format
fromJSONString()
Deserialize JSON string into an instance of PeakPair
PeakPair$fromJSONString(input_json)
input_jsonthe JSON input
the instance of PeakPair
validateJSON()
Validate JSON input with respect to PeakPair and throw an exception if invalid
PeakPair$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
PeakPair$toString()
String representation of PeakPair
isValid()
Return true if the values in all fields are valid.
PeakPair$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
PeakPair$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
PeakPair$print()
clone()
The objects of this class are cloneable with this method.
PeakPair$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `PeakPair$toList` ## ------------------------------------------------ # convert array of PeakPair (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `PeakPair$toList` ## ------------------------------------------------ # convert array of PeakPair (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
ProblemDetail Class
ProblemDetail Class
An R6Class generator object
Create a new ProblemDetail
typecharacter [optional]
titlecharacter [optional]
statusinteger [optional]
detailcharacter [optional]
instancecharacter [optional]
propertiesnamed list(object) [optional]
new()
Initialize a new ProblemDetail class.
ProblemDetail$new( type = NULL, title = NULL, status = NULL, detail = NULL, instance = NULL, properties = NULL, ... )
typetype
titletitle
statusstatus
detaildetail
instanceinstance
propertiesproperties
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
ProblemDetail$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
ProblemDetail$toList()
ProblemDetail as a base R list.
# convert array of ProblemDetail (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert ProblemDetail to a base R type
ProblemDetail$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of ProblemDetail
ProblemDetail$fromJSON(input_json)
input_jsonthe JSON input
the instance of ProblemDetail
toJSONString()
To JSON String
ProblemDetail$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
ProblemDetail in JSON format
fromJSONString()
Deserialize JSON string into an instance of ProblemDetail
ProblemDetail$fromJSONString(input_json)
input_jsonthe JSON input
the instance of ProblemDetail
validateJSON()
Validate JSON input with respect to ProblemDetail and throw an exception if invalid
ProblemDetail$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
ProblemDetail$toString()
String representation of ProblemDetail
isValid()
Return true if the values in all fields are valid.
ProblemDetail$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
ProblemDetail$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
ProblemDetail$print()
clone()
The objects of this class are cloneable with this method.
ProblemDetail$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `ProblemDetail$toList` ## ------------------------------------------------ # convert array of ProblemDetail (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `ProblemDetail$toList` ## ------------------------------------------------ # convert array of ProblemDetail (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
ProjectChangeEvent Class
ProjectChangeEvent Class
An R6Class generator object
Create a new ProjectChangeEvent
eventTypecharacter [optional]
projectIdcharacter [optional]
compoundIdcharacter [optional]
featuredIdcharacter [optional]
formulaIdcharacter [optional]
structureInChIKeycharacter [optional]
new()
Initialize a new ProjectChangeEvent class.
ProjectChangeEvent$new( eventType = NULL, projectId = NULL, compoundId = NULL, featuredId = NULL, formulaId = NULL, structureInChIKey = NULL, ... )
eventTypeeventType
projectIdprojectId
compoundIdcompoundId
featuredIdfeaturedId
formulaIdformulaId
structureInChIKeystructureInChIKey
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
ProjectChangeEvent$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
ProjectChangeEvent$toList()
ProjectChangeEvent as a base R list.
# convert array of ProjectChangeEvent (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert ProjectChangeEvent to a base R type
ProjectChangeEvent$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of ProjectChangeEvent
ProjectChangeEvent$fromJSON(input_json)
input_jsonthe JSON input
the instance of ProjectChangeEvent
toJSONString()
To JSON String
ProjectChangeEvent$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
ProjectChangeEvent in JSON format
fromJSONString()
Deserialize JSON string into an instance of ProjectChangeEvent
ProjectChangeEvent$fromJSONString(input_json)
input_jsonthe JSON input
the instance of ProjectChangeEvent
validateJSON()
Validate JSON input with respect to ProjectChangeEvent and throw an exception if invalid
ProjectChangeEvent$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
ProjectChangeEvent$toString()
String representation of ProjectChangeEvent
isValid()
Return true if the values in all fields are valid.
ProjectChangeEvent$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
ProjectChangeEvent$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
ProjectChangeEvent$print()
clone()
The objects of this class are cloneable with this method.
ProjectChangeEvent$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `ProjectChangeEvent$toList` ## ------------------------------------------------ # convert array of ProjectChangeEvent (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `ProjectChangeEvent$toList` ## ------------------------------------------------ # convert array of ProjectChangeEvent (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
ProjectInfo Class
ProjectInfo Class
An R6Class generator object
Create a new ProjectInfo
projectIdA user-selected unique name of the project for easy access. character [optional]
locationStorage location of the project. character [optional]
descriptionDescription of this project. character [optional]
typeType of this project. NULL if project type has not yet been specified by importing data. character [optional]
compatibleIndicates whether computed results (e.g. fingerprints, compound classes) are compatible with the backend. If true, the project is up-to-date and there are no restrictions regarding usage. If false, the project is incompatible and therefore \"read only\" until the incompatible results have been removed. See the updateProject endpoint for further information. If NULL, the information has not been requested. character [optional]
numOfFeaturesNumber of features (aligned over runs) in this project. If NULL, information has not been requested (See OptField 'sizeInformation'). integer [optional]
numOfCompoundsNumber of compounds (group of ion identities) in this project. If NULL, information has not been requested (See OptField 'sizeInformation') or might be unavailable for this project type. integer [optional]
numOfBytesSize in bytes this project consumes on disk. If NULL, information has not been requested (See OptField 'sizeInformation'). integer [optional]
detectedAdductsSet of all detected adducts available in this project. list(character) [optional]
new()
Initialize a new ProjectInfo class.
ProjectInfo$new( projectId = NULL, location = NULL, description = NULL, type = NULL, compatible = NULL, numOfFeatures = NULL, numOfCompounds = NULL, numOfBytes = NULL, detectedAdducts = NULL, ... )
projectIdA user-selected unique name of the project for easy access.
locationStorage location of the project.
descriptionDescription of this project.
typeType of this project. NULL if project type has not yet been specified by importing data.
compatibleIndicates whether computed results (e.g. fingerprints, compound classes) are compatible with the backend. If true, the project is up-to-date and there are no restrictions regarding usage. If false, the project is incompatible and therefore \"read only\" until the incompatible results have been removed. See the updateProject endpoint for further information. If NULL, the information has not been requested.
numOfFeaturesNumber of features (aligned over runs) in this project. If NULL, information has not been requested (See OptField 'sizeInformation').
numOfCompoundsNumber of compounds (group of ion identities) in this project. If NULL, information has not been requested (See OptField 'sizeInformation') or might be unavailable for this project type.
numOfBytesSize in bytes this project consumes on disk. If NULL, information has not been requested (See OptField 'sizeInformation').
detectedAdductsSet of all detected adducts available in this project.
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
ProjectInfo$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
ProjectInfo$toList()
ProjectInfo as a base R list.
# convert array of ProjectInfo (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert ProjectInfo to a base R type
ProjectInfo$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of ProjectInfo
ProjectInfo$fromJSON(input_json)
input_jsonthe JSON input
the instance of ProjectInfo
toJSONString()
To JSON String
ProjectInfo$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
ProjectInfo in JSON format
fromJSONString()
Deserialize JSON string into an instance of ProjectInfo
ProjectInfo$fromJSONString(input_json)
input_jsonthe JSON input
the instance of ProjectInfo
validateJSON()
Validate JSON input with respect to ProjectInfo and throw an exception if invalid
ProjectInfo$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
ProjectInfo$toString()
String representation of ProjectInfo
isValid()
Return true if the values in all fields are valid.
ProjectInfo$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
ProjectInfo$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
ProjectInfo$print()
clone()
The objects of this class are cloneable with this method.
ProjectInfo$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `ProjectInfo$toList` ## ------------------------------------------------ # convert array of ProjectInfo (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `ProjectInfo$toList` ## ------------------------------------------------ # convert array of ProjectInfo (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
ProjectsApi
An R6Class generator object
SIRIUS Nightsky API
REST API that provides the full functionality of SIRIUS and its web services as background service. It is intended as entry-point for scripting languages and software integration SDKs.This API is exposed by SIRIUS 6
The version of the OpenAPI document: 3.2 Generated by: https://openapi-generator.tech
api_clientHandles the client-server communication.
new()
Initialize a new ProjectsApi.
ProjectsApi$new(api_client)
api_clientAn instance of API client.
BuildSearchIndex()
Create a search index for the given project.
ProjectsApi$BuildSearchIndex(project_id, force = FALSE, ...)
project_idunique name/identifier of the project to create the index for.
force(optional) if true an existing index will be deleted and recreated. (default value: FALSE)
...Other optional arguments
void
BuildSearchIndexWithHttpInfo()
Create a search index for the given project.
ProjectsApi$BuildSearchIndexWithHttpInfo(project_id, force = FALSE, ...)
project_idunique name/identifier of the project to create the index for.
force(optional) if true an existing index will be deleted and recreated. (default value: FALSE)
...Other optional arguments
API response (void) with additional information such as HTTP status code, headers
CloseProject()
Close project-space and remove it from the application
ProjectsApi$CloseProject(project_id, compact = FALSE, ...)
project_idunique name/identifier of the project-space to be closed.
compact(optional) if true, compact project storage after closing. DEPRECATED: Compacting acts on the local filesystem and will likely be removed in a later version. (default value: FALSE)
...Other optional arguments
void
CloseProjectWithHttpInfo()
Close project-space and remove it from the application
ProjectsApi$CloseProjectWithHttpInfo(project_id, compact = FALSE, ...)
project_idunique name/identifier of the project-space to be closed.
compact(optional) if true, compact project storage after closing. DEPRECATED: Compacting acts on the local filesystem and will likely be removed in a later version. (default value: FALSE)
...Other optional arguments
API response (void) with additional information such as HTTP status code, headers
Create()
Create and open a new project with unique autogenerated projectId.
ProjectsApi$Create(opt_fields = list("none"), data_file = NULL, ...)opt_fields(optional) No description (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
ProjectInfo
CreateWithHttpInfo()
Create and open a new project with unique autogenerated projectId.
ProjectsApi$CreateWithHttpInfo(
opt_fields = list("none"),
data_file = NULL,
...
)opt_fields(optional) No description (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (ProjectInfo) with additional information such as HTTP status code, headers
CreateProject()
Create and open a new project-space at given location and make it accessible via the given projectId.
ProjectsApi$CreateProject(
project_id,
path_to_project = NULL,
opt_fields = list("none"),
data_file = NULL,
...
)project_idunique name/identifier that shall be used to access the newly created project-space. Must consist only of [a-zA-Z0-9_-].
path_to_project(optional) local file path where the project will be created. If NULL, project will be stored by its projectId in default project location. DEPRECATED: This parameter relies on the local filesystem and will likely be removed in later versions of this API to allow for more flexible use cases.
opt_fields(optional) No description (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
ProjectInfo
CreateProjectWithHttpInfo()
Create and open a new project-space at given location and make it accessible via the given projectId.
ProjectsApi$CreateProjectWithHttpInfo(
project_id,
path_to_project = NULL,
opt_fields = list("none"),
data_file = NULL,
...
)project_idunique name/identifier that shall be used to access the newly created project-space. Must consist only of [a-zA-Z0-9_-].
path_to_project(optional) local file path where the project will be created. If NULL, project will be stored by its projectId in default project location. DEPRECATED: This parameter relies on the local filesystem and will likely be removed in later versions of this API to allow for more flexible use cases.
opt_fields(optional) No description (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (ProjectInfo) with additional information such as HTTP status code, headers
GetCanopusClassyFireData()
Get CANOPUS prediction vector definition for ClassyFire classes
ProjectsApi$GetCanopusClassyFireData(project_id, charge, data_file = NULL, ...)
project_idchargedata_file(optional) name of the data file to save the result
...Other optional arguments
character
GetCanopusClassyFireDataWithHttpInfo()
Get CANOPUS prediction vector definition for ClassyFire classes
ProjectsApi$GetCanopusClassyFireDataWithHttpInfo( project_id, charge, data_file = NULL, ... )
project_idchargedata_file(optional) name of the data file to save the result
...Other optional arguments
API response (character) with additional information such as HTTP status code, headers
GetCanopusNpcData()
Get CANOPUS prediction vector definition for NPC classes
ProjectsApi$GetCanopusNpcData(project_id, charge, data_file = NULL, ...)
project_idchargedata_file(optional) name of the data file to save the result
...Other optional arguments
character
GetCanopusNpcDataWithHttpInfo()
Get CANOPUS prediction vector definition for NPC classes
ProjectsApi$GetCanopusNpcDataWithHttpInfo( project_id, charge, data_file = NULL, ... )
project_idchargedata_file(optional) name of the data file to save the result
...Other optional arguments
API response (character) with additional information such as HTTP status code, headers
GetFingerIdData()
Get CSI:FingerID fingerprint (prediction vector) definition
ProjectsApi$GetFingerIdData(project_id, charge, data_file = NULL, ...)
project_idchargedata_file(optional) name of the data file to save the result
...Other optional arguments
character
GetFingerIdDataWithHttpInfo()
Get CSI:FingerID fingerprint (prediction vector) definition
ProjectsApi$GetFingerIdDataWithHttpInfo( project_id, charge, data_file = NULL, ... )
project_idchargedata_file(optional) name of the data file to save the result
...Other optional arguments
API response (character) with additional information such as HTTP status code, headers
GetProject()
Get project space info by its projectId.
ProjectsApi$GetProject(
project_id,
opt_fields = list("none"),
data_file = NULL,
...
)project_idunique name/identifier of the project-space to be accessed.
opt_fields(optional) No description (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
ProjectInfo
GetProjectWithHttpInfo()
Get project space info by its projectId.
ProjectsApi$GetProjectWithHttpInfo(
project_id,
opt_fields = list("none"),
data_file = NULL,
...
)project_idunique name/identifier of the project-space to be accessed.
opt_fields(optional) No description (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (ProjectInfo) with additional information such as HTTP status code, headers
GetProjects()
List opened project spaces.
ProjectsApi$GetProjects(data_file = NULL, ...)
data_file(optional) name of the data file to save the result
...Other optional arguments
array[ProjectInfo]
GetProjectsWithHttpInfo()
List opened project spaces.
ProjectsApi$GetProjectsWithHttpInfo(data_file = NULL, ...)
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (array[ProjectInfo]) with additional information such as HTTP status code, headers
ImportMsRunData()
Import and align full MS runs from various formats into the specified project Possible formats: mzML, mzXML.
ProjectsApi$ImportMsRunData( project_id, input_files, parameters, data_file = NULL, ... )
project_idProject-space to import into.
input_filesfiles to import into project
parametersdata_file(optional) name of the data file to save the result
...Other optional arguments
ImportResult
ImportMsRunDataWithHttpInfo()
Import and align full MS runs from various formats into the specified project Possible formats: mzML, mzXML.
ProjectsApi$ImportMsRunDataWithHttpInfo( project_id, input_files, parameters, data_file = NULL, ... )
project_idProject-space to import into.
input_filesfiles to import into project
parametersdata_file(optional) name of the data file to save the result
...Other optional arguments
API response (ImportResult) with additional information such as HTTP status code, headers
ImportMsRunDataAsJob()
Import and align full MS runs from various formats into the specified project as background job.
ProjectsApi$ImportMsRunDataAsJob(
project_id,
input_files,
parameters,
opt_fields = list("progress"),
data_file = NULL,
...
)project_idProject-space to import into.
input_filesfiles to import into project
parametersopt_fields(optional) Set of optional fields to be included. Use 'none' only to override defaults. (default value: ["progress"])
data_file(optional) name of the data file to save the result
...Other optional arguments
Job
ImportMsRunDataAsJobWithHttpInfo()
Import and align full MS runs from various formats into the specified project as background job.
ProjectsApi$ImportMsRunDataAsJobWithHttpInfo(
project_id,
input_files,
parameters,
opt_fields = list("progress"),
data_file = NULL,
...
)project_idProject-space to import into.
input_filesfiles to import into project
parametersopt_fields(optional) Set of optional fields to be included. Use 'none' only to override defaults. (default value: ["progress"])
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (Job) with additional information such as HTTP status code, headers
ImportPreprocessedData()
Import already preprocessed ms/ms data from various formats into the specified project Possible formats: ms, mgf, cef, msp.
ProjectsApi$ImportPreprocessedData( project_id, input_files, ignore_formulas = FALSE, allow_ms1_only = TRUE, data_file = NULL, ... )
project_idproject-space to import into.
input_filesfiles to import into project
ignore_formulas(optional) No description (default value: FALSE)
allow_ms1_only(optional) No description (default value: TRUE)
data_file(optional) name of the data file to save the result
...Other optional arguments
ImportResult
ImportPreprocessedDataWithHttpInfo()
Import already preprocessed ms/ms data from various formats into the specified project Possible formats: ms, mgf, cef, msp.
ProjectsApi$ImportPreprocessedDataWithHttpInfo( project_id, input_files, ignore_formulas = FALSE, allow_ms1_only = TRUE, data_file = NULL, ... )
project_idproject-space to import into.
input_filesfiles to import into project
ignore_formulas(optional) No description (default value: FALSE)
allow_ms1_only(optional) No description (default value: TRUE)
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (ImportResult) with additional information such as HTTP status code, headers
ImportPreprocessedDataAsJob()
Import ms/ms data from the given format into the specified project-space as background job.
ProjectsApi$ImportPreprocessedDataAsJob(
project_id,
input_files,
ignore_formulas = FALSE,
allow_ms1_only = TRUE,
opt_fields = list("progress"),
data_file = NULL,
...
)project_idproject-space to import into.
input_filesfiles to import into project
ignore_formulas(optional) No description (default value: FALSE)
allow_ms1_only(optional) No description (default value: TRUE)
opt_fields(optional) set of optional fields to be included. Use 'none' only to override defaults. (default value: ["progress"])
data_file(optional) name of the data file to save the result
...Other optional arguments
Job
ImportPreprocessedDataAsJobWithHttpInfo()
Import ms/ms data from the given format into the specified project-space as background job.
ProjectsApi$ImportPreprocessedDataAsJobWithHttpInfo(
project_id,
input_files,
ignore_formulas = FALSE,
allow_ms1_only = TRUE,
opt_fields = list("progress"),
data_file = NULL,
...
)project_idproject-space to import into.
input_filesfiles to import into project
ignore_formulas(optional) No description (default value: FALSE)
allow_ms1_only(optional) No description (default value: TRUE)
opt_fields(optional) set of optional fields to be included. Use 'none' only to override defaults. (default value: ["progress"])
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (Job) with additional information such as HTTP status code, headers
OpenProject()
Open an existing project-space and make it accessible via the given projectId.
ProjectsApi$OpenProject(
project_id,
path_to_project = NULL,
opt_fields = list("none"),
data_file = NULL,
...
)project_idunique name/identifier that shall be used to access the opened project-space. Must consist only of [a-zA-Z0-9_-].
path_to_project(optional) local file path to open the project from. If NULL, project will be loaded by its projectId from default project location. DEPRECATED: This parameter relies on the local filesystem and will likely be removed in later versions of this API to allow for more flexible use cases.
opt_fields(optional) No description (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
ProjectInfo
OpenProjectWithHttpInfo()
Open an existing project-space and make it accessible via the given projectId.
ProjectsApi$OpenProjectWithHttpInfo(
project_id,
path_to_project = NULL,
opt_fields = list("none"),
data_file = NULL,
...
)project_idunique name/identifier that shall be used to access the opened project-space. Must consist only of [a-zA-Z0-9_-].
path_to_project(optional) local file path to open the project from. If NULL, project will be loaded by its projectId from default project location. DEPRECATED: This parameter relies on the local filesystem and will likely be removed in later versions of this API to allow for more flexible use cases.
opt_fields(optional) No description (default value: ["none"])
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (ProjectInfo) with additional information such as HTTP status code, headers
clone()
The objects of this class are cloneable with this method.
ProjectsApi$clone(deep = FALSE)
deepWhether to make a deep clone.
## Not run: #################### BuildSearchIndex #################### library(RSirius) var_project_id <- "project_id_example" # character | unique name/identifier of the project to create the index for. var_force <- FALSE # character | if true an existing index will be deleted and recreated. (Optional) #Create a search index for the given project. api_instance <- rsirius_api$new() api_instance$projects_api$BuildSearchIndex(var_project_id, force = var_force) #################### CloseProject #################### library(RSirius) var_project_id <- "project_id_example" # character | unique name/identifier of the project-space to be closed. var_compact <- FALSE # character | if true, compact project storage after closing. DEPRECATED: Compacting acts on the local filesystem and will likely be removed in a later version. (Optional) #Close project-space and remove it from the application api_instance <- rsirius_api$new() api_instance$projects_api$CloseProject(var_project_id, compact = var_compact) #################### Create #################### library(RSirius) var_opt_fields <- c("none") # array[character] | (Optional) #Create and open a new project with unique autogenerated projectId. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$Create(opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$projects_api$Create(opt_fields = var_opt_fields) dput(result) #################### CreateProject #################### library(RSirius) var_project_id <- "project_id_example" # character | unique name/identifier that shall be used to access the newly created project-space. Must consist only of [a-zA-Z0-9_-]. var_path_to_project <- "path_to_project_example" # character | local file path where the project will be created. If NULL, project will be stored by its projectId in default project location. DEPRECATED: This parameter relies on the local filesystem and will likely be removed in later versions of this API to allow for more flexible use cases. (Optional) var_opt_fields <- c("none") # array[character] | (Optional) #Create and open a new project-space at given location and make it accessible via the given projectId. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$CreateProject(var_project_id, path_to_project = var_path_to_project, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$projects_api$CreateProject(var_project_id, path_to_project = var_path_to_project, opt_fields = var_opt_fields) dput(result) #################### GetCanopusClassyFireData #################### library(RSirius) var_project_id <- "project_id_example" # character | var_charge <- 56 # integer | #Get CANOPUS prediction vector definition for ClassyFire classes api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetCanopusClassyFireData(var_project_id, var_chargedata_file = "result.txt") result <- api_instance$projects_api$GetCanopusClassyFireData(var_project_id, var_charge) dput(result) #################### GetCanopusNpcData #################### library(RSirius) var_project_id <- "project_id_example" # character | var_charge <- 56 # integer | #Get CANOPUS prediction vector definition for NPC classes api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetCanopusNpcData(var_project_id, var_chargedata_file = "result.txt") result <- api_instance$projects_api$GetCanopusNpcData(var_project_id, var_charge) dput(result) #################### GetFingerIdData #################### library(RSirius) var_project_id <- "project_id_example" # character | var_charge <- 56 # integer | #Get CSI:FingerID fingerprint (prediction vector) definition api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetFingerIdData(var_project_id, var_chargedata_file = "result.txt") result <- api_instance$projects_api$GetFingerIdData(var_project_id, var_charge) dput(result) #################### GetProject #################### library(RSirius) var_project_id <- "project_id_example" # character | unique name/identifier of the project-space to be accessed. var_opt_fields <- c("none") # array[character] | (Optional) #Get project space info by its projectId. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetProject(var_project_id, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$projects_api$GetProject(var_project_id, opt_fields = var_opt_fields) dput(result) #################### GetProjects #################### library(RSirius) #List opened project spaces. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetProjects(data_file = "result.txt") result <- api_instance$projects_api$GetProjects() dput(result) #################### ImportMsRunData #################### library(RSirius) var_project_id <- "project_id_example" # character | Project-space to import into. var_input_files <- c(123) # array[data.frame] | files to import into project var_parameters <- LcmsSubmissionParameters$new(c("sampleNames_example"), c("sampleTypes_example"), "alignLCMSRuns_example", 123, Deviation$new(123, 123), Deviation$new(123, 123), 123, 123) # LcmsSubmissionParameters | #Import and align full MS runs from various formats into the specified project Possible formats: mzML, mzXML. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$ImportMsRunData(var_project_id, var_input_files, var_parametersdata_file = "result.txt") result <- api_instance$projects_api$ImportMsRunData(var_project_id, var_input_files, var_parameters) dput(result) #################### ImportMsRunDataAsJob #################### library(RSirius) var_project_id <- "project_id_example" # character | Project-space to import into. var_input_files <- c(123) # array[data.frame] | files to import into project var_parameters <- LcmsSubmissionParameters$new(c("sampleNames_example"), c("sampleTypes_example"), "alignLCMSRuns_example", 123, Deviation$new(123, 123), Deviation$new(123, 123), 123, 123) # LcmsSubmissionParameters | var_opt_fields <- c("none") # array[character] | Set of optional fields to be included. Use 'none' only to override defaults. (Optional) #Import and align full MS runs from various formats into the specified project as background job. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$ImportMsRunDataAsJob(var_project_id, var_input_files, var_parameters, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$projects_api$ImportMsRunDataAsJob(var_project_id, var_input_files, var_parameters, opt_fields = var_opt_fields) dput(result) #################### ImportPreprocessedData #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to import into. var_input_files <- c(123) # array[data.frame] | files to import into project var_ignore_formulas <- FALSE # character | (Optional) var_allow_ms1_only <- TRUE # character | (Optional) #Import already preprocessed ms/ms data from various formats into the specified project Possible formats: ms, mgf, cef, msp. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$ImportPreprocessedData(var_project_id, var_input_files, ignore_formulas = var_ignore_formulas, allow_ms1_only = var_allow_ms1_onlydata_file = "result.txt") result <- api_instance$projects_api$ImportPreprocessedData(var_project_id, var_input_files, ignore_formulas = var_ignore_formulas, allow_ms1_only = var_allow_ms1_only) dput(result) #################### ImportPreprocessedDataAsJob #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to import into. var_input_files <- c(123) # array[data.frame] | files to import into project var_ignore_formulas <- FALSE # character | (Optional) var_allow_ms1_only <- TRUE # character | (Optional) var_opt_fields <- c("none") # array[character] | set of optional fields to be included. Use 'none' only to override defaults. (Optional) #Import ms/ms data from the given format into the specified project-space as background job. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$ImportPreprocessedDataAsJob(var_project_id, var_input_files, ignore_formulas = var_ignore_formulas, allow_ms1_only = var_allow_ms1_only, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$projects_api$ImportPreprocessedDataAsJob(var_project_id, var_input_files, ignore_formulas = var_ignore_formulas, allow_ms1_only = var_allow_ms1_only, opt_fields = var_opt_fields) dput(result) #################### OpenProject #################### library(RSirius) var_project_id <- "project_id_example" # character | unique name/identifier that shall be used to access the opened project-space. Must consist only of [a-zA-Z0-9_-]. var_path_to_project <- "path_to_project_example" # character | local file path to open the project from. If NULL, project will be loaded by its projectId from default project location. DEPRECATED: This parameter relies on the local filesystem and will likely be removed in later versions of this API to allow for more flexible use cases. (Optional) var_opt_fields <- c("none") # array[character] | (Optional) #Open an existing project-space and make it accessible via the given projectId. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$OpenProject(var_project_id, path_to_project = var_path_to_project, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$projects_api$OpenProject(var_project_id, path_to_project = var_path_to_project, opt_fields = var_opt_fields) dput(result) ## End(Not run)## Not run: #################### BuildSearchIndex #################### library(RSirius) var_project_id <- "project_id_example" # character | unique name/identifier of the project to create the index for. var_force <- FALSE # character | if true an existing index will be deleted and recreated. (Optional) #Create a search index for the given project. api_instance <- rsirius_api$new() api_instance$projects_api$BuildSearchIndex(var_project_id, force = var_force) #################### CloseProject #################### library(RSirius) var_project_id <- "project_id_example" # character | unique name/identifier of the project-space to be closed. var_compact <- FALSE # character | if true, compact project storage after closing. DEPRECATED: Compacting acts on the local filesystem and will likely be removed in a later version. (Optional) #Close project-space and remove it from the application api_instance <- rsirius_api$new() api_instance$projects_api$CloseProject(var_project_id, compact = var_compact) #################### Create #################### library(RSirius) var_opt_fields <- c("none") # array[character] | (Optional) #Create and open a new project with unique autogenerated projectId. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$Create(opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$projects_api$Create(opt_fields = var_opt_fields) dput(result) #################### CreateProject #################### library(RSirius) var_project_id <- "project_id_example" # character | unique name/identifier that shall be used to access the newly created project-space. Must consist only of [a-zA-Z0-9_-]. var_path_to_project <- "path_to_project_example" # character | local file path where the project will be created. If NULL, project will be stored by its projectId in default project location. DEPRECATED: This parameter relies on the local filesystem and will likely be removed in later versions of this API to allow for more flexible use cases. (Optional) var_opt_fields <- c("none") # array[character] | (Optional) #Create and open a new project-space at given location and make it accessible via the given projectId. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$CreateProject(var_project_id, path_to_project = var_path_to_project, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$projects_api$CreateProject(var_project_id, path_to_project = var_path_to_project, opt_fields = var_opt_fields) dput(result) #################### GetCanopusClassyFireData #################### library(RSirius) var_project_id <- "project_id_example" # character | var_charge <- 56 # integer | #Get CANOPUS prediction vector definition for ClassyFire classes api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetCanopusClassyFireData(var_project_id, var_chargedata_file = "result.txt") result <- api_instance$projects_api$GetCanopusClassyFireData(var_project_id, var_charge) dput(result) #################### GetCanopusNpcData #################### library(RSirius) var_project_id <- "project_id_example" # character | var_charge <- 56 # integer | #Get CANOPUS prediction vector definition for NPC classes api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetCanopusNpcData(var_project_id, var_chargedata_file = "result.txt") result <- api_instance$projects_api$GetCanopusNpcData(var_project_id, var_charge) dput(result) #################### GetFingerIdData #################### library(RSirius) var_project_id <- "project_id_example" # character | var_charge <- 56 # integer | #Get CSI:FingerID fingerprint (prediction vector) definition api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetFingerIdData(var_project_id, var_chargedata_file = "result.txt") result <- api_instance$projects_api$GetFingerIdData(var_project_id, var_charge) dput(result) #################### GetProject #################### library(RSirius) var_project_id <- "project_id_example" # character | unique name/identifier of the project-space to be accessed. var_opt_fields <- c("none") # array[character] | (Optional) #Get project space info by its projectId. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetProject(var_project_id, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$projects_api$GetProject(var_project_id, opt_fields = var_opt_fields) dput(result) #################### GetProjects #################### library(RSirius) #List opened project spaces. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetProjects(data_file = "result.txt") result <- api_instance$projects_api$GetProjects() dput(result) #################### ImportMsRunData #################### library(RSirius) var_project_id <- "project_id_example" # character | Project-space to import into. var_input_files <- c(123) # array[data.frame] | files to import into project var_parameters <- LcmsSubmissionParameters$new(c("sampleNames_example"), c("sampleTypes_example"), "alignLCMSRuns_example", 123, Deviation$new(123, 123), Deviation$new(123, 123), 123, 123) # LcmsSubmissionParameters | #Import and align full MS runs from various formats into the specified project Possible formats: mzML, mzXML. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$ImportMsRunData(var_project_id, var_input_files, var_parametersdata_file = "result.txt") result <- api_instance$projects_api$ImportMsRunData(var_project_id, var_input_files, var_parameters) dput(result) #################### ImportMsRunDataAsJob #################### library(RSirius) var_project_id <- "project_id_example" # character | Project-space to import into. var_input_files <- c(123) # array[data.frame] | files to import into project var_parameters <- LcmsSubmissionParameters$new(c("sampleNames_example"), c("sampleTypes_example"), "alignLCMSRuns_example", 123, Deviation$new(123, 123), Deviation$new(123, 123), 123, 123) # LcmsSubmissionParameters | var_opt_fields <- c("none") # array[character] | Set of optional fields to be included. Use 'none' only to override defaults. (Optional) #Import and align full MS runs from various formats into the specified project as background job. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$ImportMsRunDataAsJob(var_project_id, var_input_files, var_parameters, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$projects_api$ImportMsRunDataAsJob(var_project_id, var_input_files, var_parameters, opt_fields = var_opt_fields) dput(result) #################### ImportPreprocessedData #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to import into. var_input_files <- c(123) # array[data.frame] | files to import into project var_ignore_formulas <- FALSE # character | (Optional) var_allow_ms1_only <- TRUE # character | (Optional) #Import already preprocessed ms/ms data from various formats into the specified project Possible formats: ms, mgf, cef, msp. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$ImportPreprocessedData(var_project_id, var_input_files, ignore_formulas = var_ignore_formulas, allow_ms1_only = var_allow_ms1_onlydata_file = "result.txt") result <- api_instance$projects_api$ImportPreprocessedData(var_project_id, var_input_files, ignore_formulas = var_ignore_formulas, allow_ms1_only = var_allow_ms1_only) dput(result) #################### ImportPreprocessedDataAsJob #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to import into. var_input_files <- c(123) # array[data.frame] | files to import into project var_ignore_formulas <- FALSE # character | (Optional) var_allow_ms1_only <- TRUE # character | (Optional) var_opt_fields <- c("none") # array[character] | set of optional fields to be included. Use 'none' only to override defaults. (Optional) #Import ms/ms data from the given format into the specified project-space as background job. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$ImportPreprocessedDataAsJob(var_project_id, var_input_files, ignore_formulas = var_ignore_formulas, allow_ms1_only = var_allow_ms1_only, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$projects_api$ImportPreprocessedDataAsJob(var_project_id, var_input_files, ignore_formulas = var_ignore_formulas, allow_ms1_only = var_allow_ms1_only, opt_fields = var_opt_fields) dput(result) #################### OpenProject #################### library(RSirius) var_project_id <- "project_id_example" # character | unique name/identifier that shall be used to access the opened project-space. Must consist only of [a-zA-Z0-9_-]. var_path_to_project <- "path_to_project_example" # character | local file path to open the project from. If NULL, project will be loaded by its projectId from default project location. DEPRECATED: This parameter relies on the local filesystem and will likely be removed in later versions of this API to allow for more flexible use cases. (Optional) var_opt_fields <- c("none") # array[character] | (Optional) #Open an existing project-space and make it accessible via the given projectId. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$OpenProject(var_project_id, path_to_project = var_path_to_project, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$projects_api$OpenProject(var_project_id, path_to_project = var_path_to_project, opt_fields = var_opt_fields) dput(result) ## End(Not run)
Quantification of features or compounds within the runs they have been detected in. Rows refer to the quantified objects, columns to the runs. Values that could not be quantified are NaN.
QuantTable Class
An R6Class generator object
Create a new QuantTable
quantificationMeasurecharacter [optional]
rowTypecharacter [optional]
rowIdsIds of the quantified objects, features or compounds depending on the row type. list(character) [optional]
columnIdsIds of the runs the objects are quantified in. list(character) [optional]
columnNamesNames of the runs the objects are quantified in, in the order of columnIds. <p> Optional field, only present if requested, since the table can be read by run id alone. <p> The name is the one the run carries in the project. It is either the sample name given when the data was imported, or, if none was given, derived from the measurement itself: the run id inside the file, and only failing that the file name. A name is therefore not necessarily the name of the file the run came from, and it is not guaranteed to be unique. Use columnSources to identify the input file, and columnIds to identify the run. list(character) [optional]
columnSourcesFiles the runs were imported from, in the order of columnIds, to relate a column back to the input data. Same value as the source of the corresponding run. <p> Optional field, only present if requested, since it is not needed to read the table. list(character) [optional]
valueslist(list(numeric)) [optional]
new()
Initialize a new QuantTable class.
QuantTable$new( quantificationMeasure = NULL, rowType = NULL, rowIds = NULL, columnIds = NULL, columnNames = NULL, columnSources = NULL, values = NULL, ... )
quantificationMeasurequantificationMeasure
rowTyperowType
rowIdsIds of the quantified objects, features or compounds depending on the row type.
columnIdsIds of the runs the objects are quantified in.
columnNamesNames of the runs the objects are quantified in, in the order of columnIds. <p> Optional field, only present if requested, since the table can be read by run id alone. <p> The name is the one the run carries in the project. It is either the sample name given when the data was imported, or, if none was given, derived from the measurement itself: the run id inside the file, and only failing that the file name. A name is therefore not necessarily the name of the file the run came from, and it is not guaranteed to be unique. Use columnSources to identify the input file, and columnIds to identify the run.
columnSourcesFiles the runs were imported from, in the order of columnIds, to relate a column back to the input data. Same value as the source of the corresponding run. <p> Optional field, only present if requested, since it is not needed to read the table.
valuesvalues
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
QuantTable$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
QuantTable$toList()
QuantTable as a base R list.
# convert array of QuantTable (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert QuantTable to a base R type
QuantTable$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of QuantTable
QuantTable$fromJSON(input_json)
input_jsonthe JSON input
the instance of QuantTable
toJSONString()
To JSON String
QuantTable$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
QuantTable in JSON format
fromJSONString()
Deserialize JSON string into an instance of QuantTable
QuantTable$fromJSONString(input_json)
input_jsonthe JSON input
the instance of QuantTable
validateJSON()
Validate JSON input with respect to QuantTable and throw an exception if invalid
QuantTable$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
QuantTable$toString()
String representation of QuantTable
isValid()
Return true if the values in all fields are valid.
QuantTable$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
QuantTable$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
QuantTable$print()
clone()
The objects of this class are cloneable with this method.
QuantTable$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `QuantTable$toList` ## ------------------------------------------------ # convert array of QuantTable (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `QuantTable$toList` ## ------------------------------------------------ # convert array of QuantTable (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
QuantTableOptField Class
An R6Class generator object
new()
Initialize a new QuantTableOptField class.
QuantTableOptField$new(...)
...Optional arguments.
toJSON()
To JSON String
QuantTableOptField$toJSON()
QuantTableOptField in JSON format
fromJSON()
Deserialize JSON string into an instance of QuantTableOptField
QuantTableOptField$fromJSON(input_json)
input_jsonthe JSON input
the instance of QuantTableOptField
toJSONString()
To JSON String
QuantTableOptField$toJSONString()
QuantTableOptField in JSON format
fromJSONString()
Deserialize JSON string into an instance of QuantTableOptField
QuantTableOptField$fromJSONString(input_json)
input_jsonthe JSON input
the instance of QuantTableOptField
clone()
The objects of this class are cloneable with this method.
QuantTableOptField$clone(deep = FALSE)
deepWhether to make a deep clone.
ApiClient Class
An R6Class generator object
SIRIUS Nightsky API
REST API that provides the full functionality of SIRIUS and its web services as background service. It is intended as entry-point for scripting languages and software integration SDKs.This API is exposed by SIRIUS 6
The version of the OpenAPI document: 3.2 Generated by: https://openapi-generator.tech
RSirius API Class
A single point of access to the RSirius API.
NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). Ref: https://openapi-generator.tech Do not edit the class manually.
api_clientAPI client
actuator_apian instance of ActuatorApi
compounds_apian instance of CompoundsApi
features_apian instance of FeaturesApi
gui_apian instance of GuiApi
info_apian instance of InfoApi
jobs_apian instance of JobsApi
login_and_account_apian instance of LoginAndAccountApi
projects_apian instance of ProjectsApi
runs_apian instance of RunsApi
searchable_databases_apian instance of SearchableDatabasesApi
new()
Initialize a new RSirius API Class.
rsirius_api$new(api_client)
api_clientAn instance of API client (optional).
wait_for_job_completion()
rsirius_api$wait_for_job_completion(project_id, job_id, timeout_in_sec = NULL)
clone()
The objects of this class are cloneable with this method.
rsirius_api$clone(deep = FALSE)
deepWhether to make a deep clone.
Run Class
Run Class
An R6Class generator object
Create a new Run
runIdIdentifier character [optional]
nameInformative, human-readable name of the run character [optional]
sourceSource location character [optional]
chromatographyChromatography the run was measured with, e.g. 'Liquid Chromatography'. character [optional]
ionizationIonization the run was measured with, named as in the HUPO PSI-MS controlled vocabulary, e.g. 'electrospray ionization'. character [optional]
fragmentationFragmentation the run was measured with, named as in the HUPO PSI-MS controlled vocabulary, e.g. 'beam-type collision-induced dissociation'. character [optional]
massAnalyzersMass analyzers of the instrument the run was measured on, named as in the HUPO PSI-MS controlled vocabulary, e.g. 'orbitrap'. list(character) [optional]
tagsKey: tagName, value: tag named list(Tag) [optional]
new()
Initialize a new Run class.
Run$new( runId = NULL, name = NULL, source = NULL, chromatography = NULL, ionization = NULL, fragmentation = NULL, massAnalyzers = NULL, tags = NULL, ... )
runIdIdentifier
nameInformative, human-readable name of the run
sourceSource location
chromatographyChromatography the run was measured with, e.g. 'Liquid Chromatography'.
ionizationIonization the run was measured with, named as in the HUPO PSI-MS controlled vocabulary, e.g. 'electrospray ionization'.
fragmentationFragmentation the run was measured with, named as in the HUPO PSI-MS controlled vocabulary, e.g. 'beam-type collision-induced dissociation'.
massAnalyzersMass analyzers of the instrument the run was measured on, named as in the HUPO PSI-MS controlled vocabulary, e.g. 'orbitrap'.
tagsKey: tagName, value: tag
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
Run$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
Run$toList()
Run as a base R list.
# convert array of Run (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert Run to a base R type
Run$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of Run
Run$fromJSON(input_json)
input_jsonthe JSON input
the instance of Run
toJSONString()
To JSON String
Run$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
Run in JSON format
fromJSONString()
Deserialize JSON string into an instance of Run
Run$fromJSONString(input_json)
input_jsonthe JSON input
the instance of Run
validateJSON()
Validate JSON input with respect to Run and throw an exception if invalid
Run$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
Run$toString()
String representation of Run
isValid()
Return true if the values in all fields are valid.
Run$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
Run$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
Run$print()
clone()
The objects of this class are cloneable with this method.
Run$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `Run$toList` ## ------------------------------------------------ # convert array of Run (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `Run$toList` ## ------------------------------------------------ # convert array of Run (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
RunOptField Class
An R6Class generator object
new()
Initialize a new RunOptField class.
RunOptField$new(...)
...Optional arguments.
toJSON()
To JSON String
RunOptField$toJSON()
RunOptField in JSON format
fromJSON()
Deserialize JSON string into an instance of RunOptField
RunOptField$fromJSON(input_json)
input_jsonthe JSON input
the instance of RunOptField
toJSONString()
To JSON String
RunOptField$toJSONString()
RunOptField in JSON format
fromJSONString()
Deserialize JSON string into an instance of RunOptField
RunOptField$fromJSONString(input_json)
input_jsonthe JSON input
the instance of RunOptField
clone()
The objects of this class are cloneable with this method.
RunOptField$clone(deep = FALSE)
deepWhether to make a deep clone.
RunsApi
An R6Class generator object
SIRIUS Nightsky API
REST API that provides the full functionality of SIRIUS and its web services as background service. It is intended as entry-point for scripting languages and software integration SDKs.This API is exposed by SIRIUS 6
The version of the OpenAPI document: 3.2 Generated by: https://openapi-generator.tech
api_clientHandles the client-server communication.
new()
Initialize a new RunsApi.
RunsApi$new(api_client)
api_clientAn instance of API client.
GetRun()
Get run with the given identifier from the specified project-space.
RunsApi$GetRun(project_id, run_id, opt_fields = list(), data_file = NULL, ...)
project_idproject-space to read from.
run_ididentifier of run to access.
opt_fields(optional) set of optional fields to be included. Use 'none' only to override defaults. (default value: [])
data_file(optional) name of the data file to save the result
...Other optional arguments
Run
GetRunWithHttpInfo()
Get run with the given identifier from the specified project-space.
RunsApi$GetRunWithHttpInfo( project_id, run_id, opt_fields = list(), data_file = NULL, ... )
project_idproject-space to read from.
run_ididentifier of run to access.
opt_fields(optional) set of optional fields to be included. Use 'none' only to override defaults. (default value: [])
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (Run) with additional information such as HTTP status code, headers
GetRunsPage()
Get runs in the given project-space
RunsApi$GetRunsPage( project_id, search_query = NULL, page = 0, size = 20, sort = NULL, opt_fields = list(), data_file = NULL, ... )
project_idproject space to get runs from.
search_query(optional) Optional search query in lucene syntax. Omit this parameter to page over all runs.
page(optional) Zero-based page index (0..N) (default value: 0)
size(optional) The size of the page to be returned (default value: 20)
sort(optional) Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
opt_fields(optional) set of optional fields to be included. Use 'none' only to override defaults. (default value: [])
data_file(optional) name of the data file to save the result
...Other optional arguments
PagedModelRun
GetRunsPageWithHttpInfo()
Get runs in the given project-space
RunsApi$GetRunsPageWithHttpInfo( project_id, search_query = NULL, page = 0, size = 20, sort = NULL, opt_fields = list(), data_file = NULL, ... )
project_idproject space to get runs from.
search_query(optional) Optional search query in lucene syntax. Omit this parameter to page over all runs.
page(optional) Zero-based page index (0..N) (default value: 0)
size(optional) The size of the page to be returned (default value: 20)
sort(optional) Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
opt_fields(optional) set of optional fields to be included. Use 'none' only to override defaults. (default value: [])
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (PagedModelRun) with additional information such as HTTP status code, headers
GetRunsSearchableFields()
Get all fields that can be used in the searchQuery parameter of run endpoints
RunsApi$GetRunsSearchableFields(project_id, data_file = NULL, ...)
project_idproject space to read the searchable run fields from.
data_file(optional) name of the data file to save the result
...Other optional arguments
array[SearchableField]
GetRunsSearchableFieldsWithHttpInfo()
Get all fields that can be used in the searchQuery parameter of run endpoints
RunsApi$GetRunsSearchableFieldsWithHttpInfo(project_id, data_file = NULL, ...)
project_idproject space to read the searchable run fields from.
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (array[SearchableField]) with additional information such as HTTP status code, headers
clone()
The objects of this class are cloneable with this method.
RunsApi$clone(deep = FALSE)
deepWhether to make a deep clone.
## Not run: #################### GetRun #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_run_id <- "run_id_example" # character | identifier of run to access. var_opt_fields <- c(RunOptField$new()) # array[RunOptField] | set of optional fields to be included. Use 'none' only to override defaults. (Optional) #Get run with the given identifier from the specified project-space. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetRun(var_project_id, var_run_id, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$runs_api$GetRun(var_project_id, var_run_id, opt_fields = var_opt_fields) dput(result) #################### GetRunsPage #################### library(RSirius) var_project_id <- "project_id_example" # character | project space to get runs from. var_search_query <- "search_query_example" # character | Optional search query in lucene syntax. Omit this parameter to page over all runs. (Optional) var_page <- 0 # integer | Zero-based page index (0..N) (Optional) var_size <- 20 # integer | The size of the page to be returned (Optional) var_sort <- c("inner_example") # array[character] | Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. (Optional) var_opt_fields <- c(RunOptField$new()) # array[RunOptField] | set of optional fields to be included. Use 'none' only to override defaults. (Optional) #Get runs in the given project-space api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetRunsPage(var_project_id, search_query = var_search_query, page = var_page, size = var_size, sort = var_sort, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$runs_api$GetRunsPage(var_project_id, search_query = var_search_query, page = var_page, size = var_size, sort = var_sort, opt_fields = var_opt_fields) dput(result) #################### GetRunsSearchableFields #################### library(RSirius) var_project_id <- "project_id_example" # character | project space to read the searchable run fields from. #Get all fields that can be used in the searchQuery parameter of run endpoints api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetRunsSearchableFields(var_project_iddata_file = "result.txt") result <- api_instance$runs_api$GetRunsSearchableFields(var_project_id) dput(result) ## End(Not run)## Not run: #################### GetRun #################### library(RSirius) var_project_id <- "project_id_example" # character | project-space to read from. var_run_id <- "run_id_example" # character | identifier of run to access. var_opt_fields <- c(RunOptField$new()) # array[RunOptField] | set of optional fields to be included. Use 'none' only to override defaults. (Optional) #Get run with the given identifier from the specified project-space. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetRun(var_project_id, var_run_id, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$runs_api$GetRun(var_project_id, var_run_id, opt_fields = var_opt_fields) dput(result) #################### GetRunsPage #################### library(RSirius) var_project_id <- "project_id_example" # character | project space to get runs from. var_search_query <- "search_query_example" # character | Optional search query in lucene syntax. Omit this parameter to page over all runs. (Optional) var_page <- 0 # integer | Zero-based page index (0..N) (Optional) var_size <- 20 # integer | The size of the page to be returned (Optional) var_sort <- c("inner_example") # array[character] | Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. (Optional) var_opt_fields <- c(RunOptField$new()) # array[RunOptField] | set of optional fields to be included. Use 'none' only to override defaults. (Optional) #Get runs in the given project-space api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetRunsPage(var_project_id, search_query = var_search_query, page = var_page, size = var_size, sort = var_sort, opt_fields = var_opt_fieldsdata_file = "result.txt") result <- api_instance$runs_api$GetRunsPage(var_project_id, search_query = var_search_query, page = var_page, size = var_size, sort = var_sort, opt_fields = var_opt_fields) dput(result) #################### GetRunsSearchableFields #################### library(RSirius) var_project_id <- "project_id_example" # character | project space to read the searchable run fields from. #Get all fields that can be used in the searchQuery parameter of run endpoints api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetRunsSearchableFields(var_project_iddata_file = "result.txt") result <- api_instance$runs_api$GetRunsSearchableFields(var_project_id) dput(result) ## End(Not run)
SearchableDatabase Class
SearchableDatabase Class
An R6Class generator object
Create a new SearchableDatabase
databaseIdA unique identifier or name of the database. Should only contain file path and url save characters For user databases this is usually the file name. character
customDbIndicates whether the database is a user managed custom database or if it is a database that is included in SIRIUS which cannot be modified. character
searchableTrue when this database can be used as a search parameter. False if the database is just an additional filter that can be applied after search. character
dbDateDate on which the data was imported / database was created. character [optional]
dbVersionDatabase schema version. integer [optional]
updateNeededIf true the database version is outdated and the database needs to be updated or re-imported before it can be used. character
numberOfStructuresNumber of unique compounds available in this database. integer [optional]
numberOfFormulasNumber of different molecular formulas available in this database. integer [optional]
numberOfReferenceSpectraNumber of reference spectra available in this database integer [optional]
errorMessageError message if the database could not be loaded character [optional]
displayNamedisplay name of the database Should be short character [optional]
locationStorage location of user database Might be NULL for non-user databases or if default location is used. character [optional]
matchRtOfReferenceSpectraIndicates whether this database shall be used to use retention time information for library matching. Typically used for in-house spectral libraries that were measured on the same chromatographic setup as the samples being analysed, so that retention times are comparable. character [optional]
new()
Initialize a new SearchableDatabase class.
SearchableDatabase$new( databaseId, customDb, searchable, updateNeeded, dbDate = NULL, dbVersion = NULL, numberOfStructures = NULL, numberOfFormulas = NULL, numberOfReferenceSpectra = NULL, errorMessage = NULL, displayName = NULL, location = NULL, matchRtOfReferenceSpectra = FALSE, ... )
databaseIdA unique identifier or name of the database. Should only contain file path and url save characters For user databases this is usually the file name.
customDbIndicates whether the database is a user managed custom database or if it is a database that is included in SIRIUS which cannot be modified.
searchableTrue when this database can be used as a search parameter. False if the database is just an additional filter that can be applied after search.
updateNeededIf true the database version is outdated and the database needs to be updated or re-imported before it can be used.
dbDateDate on which the data was imported / database was created.
dbVersionDatabase schema version.
numberOfStructuresNumber of unique compounds available in this database.
numberOfFormulasNumber of different molecular formulas available in this database.
numberOfReferenceSpectraNumber of reference spectra available in this database
errorMessageError message if the database could not be loaded
displayNamedisplay name of the database Should be short
locationStorage location of user database Might be NULL for non-user databases or if default location is used.
matchRtOfReferenceSpectraIndicates whether this database shall be used to use retention time information for library matching. Typically used for in-house spectral libraries that were measured on the same chromatographic setup as the samples being analysed, so that retention times are comparable.. Default to FALSE.
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
SearchableDatabase$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
SearchableDatabase$toList()
SearchableDatabase as a base R list.
# convert array of SearchableDatabase (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert SearchableDatabase to a base R type
SearchableDatabase$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of SearchableDatabase
SearchableDatabase$fromJSON(input_json)
input_jsonthe JSON input
the instance of SearchableDatabase
toJSONString()
To JSON String
SearchableDatabase$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
SearchableDatabase in JSON format
fromJSONString()
Deserialize JSON string into an instance of SearchableDatabase
SearchableDatabase$fromJSONString(input_json)
input_jsonthe JSON input
the instance of SearchableDatabase
validateJSON()
Validate JSON input with respect to SearchableDatabase and throw an exception if invalid
SearchableDatabase$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
SearchableDatabase$toString()
String representation of SearchableDatabase
isValid()
Return true if the values in all fields are valid.
SearchableDatabase$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
SearchableDatabase$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
SearchableDatabase$print()
clone()
The objects of this class are cloneable with this method.
SearchableDatabase$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `SearchableDatabase$toList` ## ------------------------------------------------ # convert array of SearchableDatabase (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `SearchableDatabase$toList` ## ------------------------------------------------ # convert array of SearchableDatabase (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
SearchableDatabaseParameters Class
SearchableDatabaseParameters Class
An R6Class generator object
Create a new SearchableDatabaseParameters
displayNamedisplay name of the database Should be short character [optional]
locationStorage location of user database Might be NULL for non-user databases or if default location is used. character [optional]
matchRtOfReferenceSpectraIndicates whether this database shall be used to use retention time information for library matching. Typically used for in-house spectral libraries that were measured on the same chromatographic setup as the samples being analyzed, so that retention times are comparable. character [optional]
new()
Initialize a new SearchableDatabaseParameters class.
SearchableDatabaseParameters$new( displayName = NULL, location = NULL, matchRtOfReferenceSpectra = FALSE, ... )
displayNamedisplay name of the database Should be short
locationStorage location of user database Might be NULL for non-user databases or if default location is used.
matchRtOfReferenceSpectraIndicates whether this database shall be used to use retention time information for library matching. Typically used for in-house spectral libraries that were measured on the same chromatographic setup as the samples being analyzed, so that retention times are comparable.. Default to FALSE.
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
SearchableDatabaseParameters$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
SearchableDatabaseParameters$toList()
SearchableDatabaseParameters as a base R list.
# convert array of SearchableDatabaseParameters (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert SearchableDatabaseParameters to a base R type
SearchableDatabaseParameters$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of SearchableDatabaseParameters
SearchableDatabaseParameters$fromJSON(input_json)
input_jsonthe JSON input
the instance of SearchableDatabaseParameters
toJSONString()
To JSON String
SearchableDatabaseParameters$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
SearchableDatabaseParameters in JSON format
fromJSONString()
Deserialize JSON string into an instance of SearchableDatabaseParameters
SearchableDatabaseParameters$fromJSONString(input_json)
input_jsonthe JSON input
the instance of SearchableDatabaseParameters
validateJSON()
Validate JSON input with respect to SearchableDatabaseParameters and throw an exception if invalid
SearchableDatabaseParameters$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
SearchableDatabaseParameters$toString()
String representation of SearchableDatabaseParameters
isValid()
Return true if the values in all fields are valid.
SearchableDatabaseParameters$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
SearchableDatabaseParameters$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
SearchableDatabaseParameters$print()
clone()
The objects of this class are cloneable with this method.
SearchableDatabaseParameters$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `SearchableDatabaseParameters$toList` ## ------------------------------------------------ # convert array of SearchableDatabaseParameters (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `SearchableDatabaseParameters$toList` ## ------------------------------------------------ # convert array of SearchableDatabaseParameters (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
SearchableDatabasesApi
An R6Class generator object
SIRIUS Nightsky API
REST API that provides the full functionality of SIRIUS and its web services as background service. It is intended as entry-point for scripting languages and software integration SDKs.This API is exposed by SIRIUS 6
The version of the OpenAPI document: 3.2 Generated by: https://openapi-generator.tech
api_clientHandles the client-server communication.
new()
Initialize a new SearchableDatabasesApi.
SearchableDatabasesApi$new(api_client)
api_clientAn instance of API client.
AddDatabases()
[DEPRECATED] This endpoint is based on local file paths and will likely be replaced in future versions of this API.
SearchableDatabasesApi$AddDatabases(request_body, data_file = NULL, ...)
request_bodylocal file paths of the database files (.siriusdb) to register. Each must exist, must not already be registered, and its name must not collide with an existing database.
data_file(optional) name of the data file to save the result
...Other optional arguments
array[SearchableDatabase]
AddDatabasesWithHttpInfo()
[DEPRECATED] This endpoint is based on local file paths and will likely be replaced in future versions of this API.
SearchableDatabasesApi$AddDatabasesWithHttpInfo( request_body, data_file = NULL, ... )
request_bodylocal file paths of the database files (.siriusdb) to register. Each must exist, must not already be registered, and its name must not collide with an existing database.
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (array[SearchableDatabase]) with additional information such as HTTP status code, headers
CreateDatabase()
Create a new, empty custom database
SearchableDatabasesApi$CreateDatabase( database_id, searchable_database_parameters = NULL, data_file = NULL, ... )
database_idid of the new database. Must be URL-safe, that is letters, digits, '-' and '_' only, and must not be in use by another database.
searchable_database_parameters(optional) optional settings for the new database. If omitted, the database is created in the default custom database directory with default settings. Supply a location to place the database file elsewhere, a displayName for the user interface, and matchRtOfReferenceSpectra for in-house libraries whose retention times are comparable to the measured samples.
data_file(optional) name of the data file to save the result
...Other optional arguments
SearchableDatabase
CreateDatabaseWithHttpInfo()
Create a new, empty custom database
SearchableDatabasesApi$CreateDatabaseWithHttpInfo( database_id, searchable_database_parameters = NULL, data_file = NULL, ... )
database_idid of the new database. Must be URL-safe, that is letters, digits, '-' and '_' only, and must not be in use by another database.
searchable_database_parameters(optional) optional settings for the new database. If omitted, the database is created in the default custom database directory with default settings. Supply a location to place the database file elsewhere, a displayName for the user interface, and matchRtOfReferenceSpectra for in-house libraries whose retention times are comparable to the measured samples.
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (SearchableDatabase) with additional information such as HTTP status code, headers
GetCustomDatabases()
List only the custom databases, that is the structure databases and spectral libraries the user has created or added.
SearchableDatabasesApi$GetCustomDatabases( include_stats = FALSE, include_with_errors = FALSE, data_file = NULL, ... )
include_stats(optional) if true, the number of structures, formulas and reference spectra is included per database. Slower, since the database files have to be read. (default value: FALSE)
include_with_errors(optional) if true, databases that could not be loaded are listed as well, carrying the reason in their errorMessage field. (default value: FALSE)
data_file(optional) name of the data file to save the result
...Other optional arguments
array[SearchableDatabase]
GetCustomDatabasesWithHttpInfo()
List only the custom databases, that is the structure databases and spectral libraries the user has created or added.
SearchableDatabasesApi$GetCustomDatabasesWithHttpInfo( include_stats = FALSE, include_with_errors = FALSE, data_file = NULL, ... )
include_stats(optional) if true, the number of structures, formulas and reference spectra is included per database. Slower, since the database files have to be read. (default value: FALSE)
include_with_errors(optional) if true, databases that could not be loaded are listed as well, carrying the reason in their errorMessage field. (default value: FALSE)
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (array[SearchableDatabase]) with additional information such as HTTP status code, headers
GetDatabase()
Get a single searchable database by its id.
SearchableDatabasesApi$GetDatabase( database_id, include_stats = TRUE, data_file = NULL, ... )
database_idid of the database to retrieve, as reported by the listing endpoints.
include_stats(optional) if true (the default here), the number of structures, formulas and reference spectra is included. (default value: TRUE)
data_file(optional) name of the data file to save the result
...Other optional arguments
SearchableDatabase
GetDatabaseWithHttpInfo()
Get a single searchable database by its id.
SearchableDatabasesApi$GetDatabaseWithHttpInfo( database_id, include_stats = TRUE, data_file = NULL, ... )
database_idid of the database to retrieve, as reported by the listing endpoints.
include_stats(optional) if true (the default here), the number of structures, formulas and reference spectra is included. (default value: TRUE)
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (SearchableDatabase) with additional information such as HTTP status code, headers
GetDatabases()
List all searchable databases, both the ones included in SIRIUS and the custom ones added by the user
SearchableDatabasesApi$GetDatabases( include_stats = FALSE, include_with_errors = FALSE, data_file = NULL, ... )
include_stats(optional) if true, the number of structures, formulas and reference spectra is included per database. Computing these counts touches the database files, so requesting them is noticeably slower than a plain listing. (default value: FALSE)
include_with_errors(optional) if true, databases that could not be loaded are listed as well, carrying the reason in their errorMessage field. Use this to show a broken database to the user instead of silently hiding it. (default value: FALSE)
data_file(optional) name of the data file to save the result
...Other optional arguments
array[SearchableDatabase]
GetDatabasesWithHttpInfo()
List all searchable databases, both the ones included in SIRIUS and the custom ones added by the user
SearchableDatabasesApi$GetDatabasesWithHttpInfo( include_stats = FALSE, include_with_errors = FALSE, data_file = NULL, ... )
include_stats(optional) if true, the number of structures, formulas and reference spectra is included per database. Computing these counts touches the database files, so requesting them is noticeably slower than a plain listing. (default value: FALSE)
include_with_errors(optional) if true, databases that could not be loaded are listed as well, carrying the reason in their errorMessage field. Use this to show a broken database to the user instead of silently hiding it. (default value: FALSE)
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (array[SearchableDatabase]) with additional information such as HTTP status code, headers
GetIncludedDatabases()
List only the databases that ship with SIRIUS, such as PubChem and the bio databases.
SearchableDatabasesApi$GetIncludedDatabases( include_stats = FALSE, data_file = NULL, ... )
include_stats(optional) if true, the number of structures, formulas and reference spectra is included per database. Slower, since the database files have to be read. (default value: FALSE)
data_file(optional) name of the data file to save the result
...Other optional arguments
array[SearchableDatabase]
GetIncludedDatabasesWithHttpInfo()
List only the databases that ship with SIRIUS, such as PubChem and the bio databases.
SearchableDatabasesApi$GetIncludedDatabasesWithHttpInfo( include_stats = FALSE, data_file = NULL, ... )
include_stats(optional) if true, the number of structures, formulas and reference spectra is included per database. Slower, since the database files have to be read. (default value: FALSE)
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (array[SearchableDatabase]) with additional information such as HTTP status code, headers
ImportIntoDatabase()
Start import of structure and spectra files into the specified database.
SearchableDatabasesApi$ImportIntoDatabase( database_id, input_files, buffer_size = 1000, bio_transformer_parameters = NULL, data_file = NULL, ... )
database_idid of the custom database to import into. Must exist.
input_filesfiles to import into project
buffer_size(optional) number of compounds to keep in memory before writing them to the database. Raise it to speed up large imports on machines with enough RAM. (default value: 1000)
bio_transformer_parameters(optional) No description
data_file(optional) name of the data file to save the result
...Other optional arguments
SearchableDatabase
ImportIntoDatabaseWithHttpInfo()
Start import of structure and spectra files into the specified database.
SearchableDatabasesApi$ImportIntoDatabaseWithHttpInfo( database_id, input_files, buffer_size = 1000, bio_transformer_parameters = NULL, data_file = NULL, ... )
database_idid of the custom database to import into. Must exist.
input_filesfiles to import into project
buffer_size(optional) number of compounds to keep in memory before writing them to the database. Raise it to speed up large imports on machines with enough RAM. (default value: 1000)
bio_transformer_parameters(optional) No description
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (SearchableDatabase) with additional information such as HTTP status code, headers
RemoveDatabase()
Remove a custom database from this SIRIUS instance, and optionally delete it from disk
SearchableDatabasesApi$RemoveDatabase(database_id, delete = FALSE, ...)
database_idid of the database to remove.
delete(optional) if true, the database file is deleted from disk and the data is lost. If false (the default), only the registration is removed and the file is kept, so the database can be registered again later. (default value: FALSE)
...Other optional arguments
void
RemoveDatabaseWithHttpInfo()
Remove a custom database from this SIRIUS instance, and optionally delete it from disk
SearchableDatabasesApi$RemoveDatabaseWithHttpInfo( database_id, delete = FALSE, ... )
database_idid of the database to remove.
delete(optional) if true, the database file is deleted from disk and the data is lost. If false (the default), only the registration is removed and the file is kept, so the database can be registered again later. (default value: FALSE)
...Other optional arguments
API response (void) with additional information such as HTTP status code, headers
UpdateDatabase()
Change the settings of an existing custom database
SearchableDatabasesApi$UpdateDatabase( database_id, searchable_database_parameters = NULL, data_file = NULL, ... )
database_idid of the database to update.
searchable_database_parameters(optional) the settings to apply.
data_file(optional) name of the data file to save the result
...Other optional arguments
SearchableDatabase
UpdateDatabaseWithHttpInfo()
Change the settings of an existing custom database
SearchableDatabasesApi$UpdateDatabaseWithHttpInfo( database_id, searchable_database_parameters = NULL, data_file = NULL, ... )
database_idid of the database to update.
searchable_database_parameters(optional) the settings to apply.
data_file(optional) name of the data file to save the result
...Other optional arguments
API response (SearchableDatabase) with additional information such as HTTP status code, headers
clone()
The objects of this class are cloneable with this method.
SearchableDatabasesApi$clone(deep = FALSE)
deepWhether to make a deep clone.
## Not run: #################### AddDatabases #################### library(RSirius) var_request_body <- c("property_example") # array[character] | local file paths of the database files (.siriusdb) to register. Each must exist, must not already be registered, and its name must not collide with an existing database. #[DEPRECATED] This endpoint is based on local file paths and will likely be replaced in future versions of this API. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$AddDatabases(var_request_bodydata_file = "result.txt") result <- api_instance$searchable_databases_api$AddDatabases(var_request_body) dput(result) #################### CreateDatabase #################### library(RSirius) var_database_id <- "database_id_example" # character | id of the new database. Must be URL-safe, that is letters, digits, '-' and '_' only, and must not be in use by another database. var_searchable_database_parameters <- SearchableDatabaseParameters$new("displayName_example", "location_example", "matchRtOfReferenceSpectra_example") # SearchableDatabaseParameters | optional settings for the new database. If omitted, the database is created in the default custom database directory with default settings. Supply a location to place the database file elsewhere, a displayName for the user interface, and matchRtOfReferenceSpectra for in-house libraries whose retention times are comparable to the measured samples. (Optional) #Create a new, empty custom database api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$CreateDatabase(var_database_id, searchable_database_parameters = var_searchable_database_parametersdata_file = "result.txt") result <- api_instance$searchable_databases_api$CreateDatabase(var_database_id, searchable_database_parameters = var_searchable_database_parameters) dput(result) #################### GetCustomDatabases #################### library(RSirius) var_include_stats <- FALSE # character | if true, the number of structures, formulas and reference spectra is included per database. Slower, since the database files have to be read. (Optional) var_include_with_errors <- FALSE # character | if true, databases that could not be loaded are listed as well, carrying the reason in their errorMessage field. (Optional) #List only the custom databases, that is the structure databases and spectral libraries the user has created or added. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetCustomDatabases(include_stats = var_include_stats, include_with_errors = var_include_with_errorsdata_file = "result.txt") result <- api_instance$searchable_databases_api$GetCustomDatabases(include_stats = var_include_stats, include_with_errors = var_include_with_errors) dput(result) #################### GetDatabase #################### library(RSirius) var_database_id <- "database_id_example" # character | id of the database to retrieve, as reported by the listing endpoints. var_include_stats <- TRUE # character | if true (the default here), the number of structures, formulas and reference spectra is included. (Optional) #Get a single searchable database by its id. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetDatabase(var_database_id, include_stats = var_include_statsdata_file = "result.txt") result <- api_instance$searchable_databases_api$GetDatabase(var_database_id, include_stats = var_include_stats) dput(result) #################### GetDatabases #################### library(RSirius) var_include_stats <- FALSE # character | if true, the number of structures, formulas and reference spectra is included per database. Computing these counts touches the database files, so requesting them is noticeably slower than a plain listing. (Optional) var_include_with_errors <- FALSE # character | if true, databases that could not be loaded are listed as well, carrying the reason in their errorMessage field. Use this to show a broken database to the user instead of silently hiding it. (Optional) #List all searchable databases, both the ones included in SIRIUS and the custom ones added by the user api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetDatabases(include_stats = var_include_stats, include_with_errors = var_include_with_errorsdata_file = "result.txt") result <- api_instance$searchable_databases_api$GetDatabases(include_stats = var_include_stats, include_with_errors = var_include_with_errors) dput(result) #################### GetIncludedDatabases #################### library(RSirius) var_include_stats <- FALSE # character | if true, the number of structures, formulas and reference spectra is included per database. Slower, since the database files have to be read. (Optional) #List only the databases that ship with SIRIUS, such as PubChem and the bio databases. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetIncludedDatabases(include_stats = var_include_statsdata_file = "result.txt") result <- api_instance$searchable_databases_api$GetIncludedDatabases(include_stats = var_include_stats) dput(result) #################### ImportIntoDatabase #################### library(RSirius) var_database_id <- "database_id_example" # character | id of the custom database to import into. Must exist. var_input_files <- c(123) # array[data.frame] | files to import into project var_buffer_size <- 1000 # integer | number of compounds to keep in memory before writing them to the database. Raise it to speed up large imports on machines with enough RAM. (Optional) var_bio_transformer_parameters <- BioTransformerParameters$new("RULE_BASED", "BT_RULE_BASED", c(BioTransformerSequenceStep$new("PHASE_1_CYP450", 123)), "useDB_example") # BioTransformerParameters | (Optional) #Start import of structure and spectra files into the specified database. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$ImportIntoDatabase(var_database_id, var_input_files, buffer_size = var_buffer_size, bio_transformer_parameters = var_bio_transformer_parametersdata_file = "result.txt") result <- api_instance$searchable_databases_api$ImportIntoDatabase(var_database_id, var_input_files, buffer_size = var_buffer_size, bio_transformer_parameters = var_bio_transformer_parameters) dput(result) #################### RemoveDatabase #################### library(RSirius) var_database_id <- "database_id_example" # character | id of the database to remove. var_delete <- FALSE # character | if true, the database file is deleted from disk and the data is lost. If false (the default), only the registration is removed and the file is kept, so the database can be registered again later. (Optional) #Remove a custom database from this SIRIUS instance, and optionally delete it from disk api_instance <- rsirius_api$new() api_instance$searchable_databases_api$RemoveDatabase(var_database_id, delete = var_delete) #################### UpdateDatabase #################### library(RSirius) var_database_id <- "database_id_example" # character | id of the database to update. var_searchable_database_parameters <- SearchableDatabaseParameters$new("displayName_example", "location_example", "matchRtOfReferenceSpectra_example") # SearchableDatabaseParameters | the settings to apply. (Optional) #Change the settings of an existing custom database api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$UpdateDatabase(var_database_id, searchable_database_parameters = var_searchable_database_parametersdata_file = "result.txt") result <- api_instance$searchable_databases_api$UpdateDatabase(var_database_id, searchable_database_parameters = var_searchable_database_parameters) dput(result) ## End(Not run)## Not run: #################### AddDatabases #################### library(RSirius) var_request_body <- c("property_example") # array[character] | local file paths of the database files (.siriusdb) to register. Each must exist, must not already be registered, and its name must not collide with an existing database. #[DEPRECATED] This endpoint is based on local file paths and will likely be replaced in future versions of this API. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$AddDatabases(var_request_bodydata_file = "result.txt") result <- api_instance$searchable_databases_api$AddDatabases(var_request_body) dput(result) #################### CreateDatabase #################### library(RSirius) var_database_id <- "database_id_example" # character | id of the new database. Must be URL-safe, that is letters, digits, '-' and '_' only, and must not be in use by another database. var_searchable_database_parameters <- SearchableDatabaseParameters$new("displayName_example", "location_example", "matchRtOfReferenceSpectra_example") # SearchableDatabaseParameters | optional settings for the new database. If omitted, the database is created in the default custom database directory with default settings. Supply a location to place the database file elsewhere, a displayName for the user interface, and matchRtOfReferenceSpectra for in-house libraries whose retention times are comparable to the measured samples. (Optional) #Create a new, empty custom database api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$CreateDatabase(var_database_id, searchable_database_parameters = var_searchable_database_parametersdata_file = "result.txt") result <- api_instance$searchable_databases_api$CreateDatabase(var_database_id, searchable_database_parameters = var_searchable_database_parameters) dput(result) #################### GetCustomDatabases #################### library(RSirius) var_include_stats <- FALSE # character | if true, the number of structures, formulas and reference spectra is included per database. Slower, since the database files have to be read. (Optional) var_include_with_errors <- FALSE # character | if true, databases that could not be loaded are listed as well, carrying the reason in their errorMessage field. (Optional) #List only the custom databases, that is the structure databases and spectral libraries the user has created or added. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetCustomDatabases(include_stats = var_include_stats, include_with_errors = var_include_with_errorsdata_file = "result.txt") result <- api_instance$searchable_databases_api$GetCustomDatabases(include_stats = var_include_stats, include_with_errors = var_include_with_errors) dput(result) #################### GetDatabase #################### library(RSirius) var_database_id <- "database_id_example" # character | id of the database to retrieve, as reported by the listing endpoints. var_include_stats <- TRUE # character | if true (the default here), the number of structures, formulas and reference spectra is included. (Optional) #Get a single searchable database by its id. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetDatabase(var_database_id, include_stats = var_include_statsdata_file = "result.txt") result <- api_instance$searchable_databases_api$GetDatabase(var_database_id, include_stats = var_include_stats) dput(result) #################### GetDatabases #################### library(RSirius) var_include_stats <- FALSE # character | if true, the number of structures, formulas and reference spectra is included per database. Computing these counts touches the database files, so requesting them is noticeably slower than a plain listing. (Optional) var_include_with_errors <- FALSE # character | if true, databases that could not be loaded are listed as well, carrying the reason in their errorMessage field. Use this to show a broken database to the user instead of silently hiding it. (Optional) #List all searchable databases, both the ones included in SIRIUS and the custom ones added by the user api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetDatabases(include_stats = var_include_stats, include_with_errors = var_include_with_errorsdata_file = "result.txt") result <- api_instance$searchable_databases_api$GetDatabases(include_stats = var_include_stats, include_with_errors = var_include_with_errors) dput(result) #################### GetIncludedDatabases #################### library(RSirius) var_include_stats <- FALSE # character | if true, the number of structures, formulas and reference spectra is included per database. Slower, since the database files have to be read. (Optional) #List only the databases that ship with SIRIUS, such as PubChem and the bio databases. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$GetIncludedDatabases(include_stats = var_include_statsdata_file = "result.txt") result <- api_instance$searchable_databases_api$GetIncludedDatabases(include_stats = var_include_stats) dput(result) #################### ImportIntoDatabase #################### library(RSirius) var_database_id <- "database_id_example" # character | id of the custom database to import into. Must exist. var_input_files <- c(123) # array[data.frame] | files to import into project var_buffer_size <- 1000 # integer | number of compounds to keep in memory before writing them to the database. Raise it to speed up large imports on machines with enough RAM. (Optional) var_bio_transformer_parameters <- BioTransformerParameters$new("RULE_BASED", "BT_RULE_BASED", c(BioTransformerSequenceStep$new("PHASE_1_CYP450", 123)), "useDB_example") # BioTransformerParameters | (Optional) #Start import of structure and spectra files into the specified database. api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$ImportIntoDatabase(var_database_id, var_input_files, buffer_size = var_buffer_size, bio_transformer_parameters = var_bio_transformer_parametersdata_file = "result.txt") result <- api_instance$searchable_databases_api$ImportIntoDatabase(var_database_id, var_input_files, buffer_size = var_buffer_size, bio_transformer_parameters = var_bio_transformer_parameters) dput(result) #################### RemoveDatabase #################### library(RSirius) var_database_id <- "database_id_example" # character | id of the database to remove. var_delete <- FALSE # character | if true, the database file is deleted from disk and the data is lost. If false (the default), only the registration is removed and the file is kept, so the database can be registered again later. (Optional) #Remove a custom database from this SIRIUS instance, and optionally delete it from disk api_instance <- rsirius_api$new() api_instance$searchable_databases_api$RemoveDatabase(var_database_id, delete = var_delete) #################### UpdateDatabase #################### library(RSirius) var_database_id <- "database_id_example" # character | id of the database to update. var_searchable_database_parameters <- SearchableDatabaseParameters$new("displayName_example", "location_example", "matchRtOfReferenceSpectra_example") # SearchableDatabaseParameters | the settings to apply. (Optional) #Change the settings of an existing custom database api_instance <- rsirius_api$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. # result <- api_instance$UpdateDatabase(var_database_id, searchable_database_parameters = var_searchable_database_parametersdata_file = "result.txt") result <- api_instance$searchable_databases_api$UpdateDatabase(var_database_id, searchable_database_parameters = var_searchable_database_parameters) dput(result) ## End(Not run)
Describes one field of the search index that can be used in lucene search queries (searchQuery parameter). Use this information to build valid queries, e.g. which fields support range queries ([300 TO 400]) and which support word based (full text) search.
SearchableField Class
An R6Class generator object
Create a new SearchableField
nameName of the field to be used in search queries, e.g. <code>ionMass:[300 TO 400]</code>. Nested fields are addressed with dot notation. Dynamic, map-like fields are reported as concrete, directly usable field names - one entry per key currently present in the project index - rather than a wildcard template, e.g. <code>tags.<tagName></code>, an element symbol in <code>...molecularFormula.<element></code>, or a database id in <code>topAnnotations.matchedDatabases.<dbId></code>. character
fieldTypefullTextSearchIf true, the field content is split into words and can be searched word by word (full text search). If false, TEXT fields only match as exact terms (though wildcards and regex are still possible). character [optional]
sortableIf true, search results can be sorted by this field. character [optional]
defaultSearchFieldIf true, this field is searched when a query term does not specify a field name. character [optional]
possibleValuesThe values this field can take, exactly as they are indexed, or null if the field accepts free text. <p> Reported for ENUM and BOOLEAN fields, for TEXT fields that hold a closed vocabulary (the compound class ontologies), and for fields whose values are project state: a tag restricted by its definition, or the adducts detected in this project. Searchable fields are described per project, so the latter are the values actually present in it rather than everything that could ever occur. <p> Note that the indexed value is not always the notation you would expect: an adduct is indexed as '[M + H]+', with spaces. Use the values as offered rather than constructing them. list(character) [optional]
descriptionOptional human-readable description of the field content, as shown in the API documentation. Plain text suitable for direct display (e.g. tooltips); deliberate paragraph breaks are newlines. character [optional]
significantSuffixLengthHow many trailing dot-separated segments of the field name carry its meaning, for compact display. <code>1</code> for a normal field (show the terminal segment, e.g. <code>lipid</code>); <code>2</code> for a dynamic map key (show field + key, e.g. <code>matchedDatabases.GNPS</code>, <code>qualities.PEAK_QUALITY</code>, <code>tags.pfas</code>); larger for multi-segment keys. Clients may show the last <code>significantSuffixLength</code> name segments as a short label; the full field name always stays authoritative for queries. integer
new()
Initialize a new SearchableField class.
SearchableField$new( name, fieldType, significantSuffixLength, fullTextSearch = NULL, sortable = NULL, defaultSearchField = NULL, possibleValues = NULL, description = NULL, ... )
nameName of the field to be used in search queries, e.g. <code>ionMass:[300 TO 400]</code>. Nested fields are addressed with dot notation. Dynamic, map-like fields are reported as concrete, directly usable field names - one entry per key currently present in the project index - rather than a wildcard template, e.g. <code>tags.<tagName></code>, an element symbol in <code>...molecularFormula.<element></code>, or a database id in <code>topAnnotations.matchedDatabases.<dbId></code>.
fieldTypefieldType
significantSuffixLengthHow many trailing dot-separated segments of the field name carry its meaning, for compact display. <code>1</code> for a normal field (show the terminal segment, e.g. <code>lipid</code>); <code>2</code> for a dynamic map key (show field + key, e.g. <code>matchedDatabases.GNPS</code>, <code>qualities.PEAK_QUALITY</code>, <code>tags.pfas</code>); larger for multi-segment keys. Clients may show the last <code>significantSuffixLength</code> name segments as a short label; the full field name always stays authoritative for queries.
fullTextSearchIf true, the field content is split into words and can be searched word by word (full text search). If false, TEXT fields only match as exact terms (though wildcards and regex are still possible).
sortableIf true, search results can be sorted by this field.
defaultSearchFieldIf true, this field is searched when a query term does not specify a field name.
possibleValuesThe values this field can take, exactly as they are indexed, or null if the field accepts free text. <p> Reported for ENUM and BOOLEAN fields, for TEXT fields that hold a closed vocabulary (the compound class ontologies), and for fields whose values are project state: a tag restricted by its definition, or the adducts detected in this project. Searchable fields are described per project, so the latter are the values actually present in it rather than everything that could ever occur. <p> Note that the indexed value is not always the notation you would expect: an adduct is indexed as '[M + H]+', with spaces. Use the values as offered rather than constructing them.
descriptionOptional human-readable description of the field content, as shown in the API documentation. Plain text suitable for direct display (e.g. tooltips); deliberate paragraph breaks are newlines.
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
SearchableField$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
SearchableField$toList()
SearchableField as a base R list.
# convert array of SearchableField (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert SearchableField to a base R type
SearchableField$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of SearchableField
SearchableField$fromJSON(input_json)
input_jsonthe JSON input
the instance of SearchableField
toJSONString()
To JSON String
SearchableField$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
SearchableField in JSON format
fromJSONString()
Deserialize JSON string into an instance of SearchableField
SearchableField$fromJSONString(input_json)
input_jsonthe JSON input
the instance of SearchableField
validateJSON()
Validate JSON input with respect to SearchableField and throw an exception if invalid
SearchableField$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
SearchableField$toString()
String representation of SearchableField
isValid()
Return true if the values in all fields are valid.
SearchableField$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
SearchableField$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
SearchableField$print()
clone()
The objects of this class are cloneable with this method.
SearchableField$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `SearchableField$toList` ## ------------------------------------------------ # convert array of SearchableField (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `SearchableField$toList` ## ------------------------------------------------ # convert array of SearchableField (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
SearchableFieldType Class
An R6Class generator object
new()
Initialize a new SearchableFieldType class.
SearchableFieldType$new(...)
...Optional arguments.
toJSON()
To JSON String
SearchableFieldType$toJSON()
SearchableFieldType in JSON format
fromJSON()
Deserialize JSON string into an instance of SearchableFieldType
SearchableFieldType$fromJSON(input_json)
input_jsonthe JSON input
the instance of SearchableFieldType
toJSONString()
To JSON String
SearchableFieldType$toJSONString()
SearchableFieldType in JSON format
fromJSONString()
Deserialize JSON string into an instance of SearchableFieldType
SearchableFieldType$fromJSONString(input_json)
input_jsonthe JSON input
the instance of SearchableFieldType
clone()
The objects of this class are cloneable with this method.
SearchableFieldType$clone(deep = FALSE)
deepWhether to make a deep clone.
SecurityContext Class
SecurityContext Class
An R6Class generator object
Create a new SecurityContext
principalSecurityContextPrincipal [optional]
new()
Initialize a new SecurityContext class.
SecurityContext$new(principal = NULL, ...)
principalprincipal
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
SecurityContext$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
SecurityContext$toList()
SecurityContext as a base R list.
# convert array of SecurityContext (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert SecurityContext to a base R type
SecurityContext$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of SecurityContext
SecurityContext$fromJSON(input_json)
input_jsonthe JSON input
the instance of SecurityContext
toJSONString()
To JSON String
SecurityContext$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
SecurityContext in JSON format
fromJSONString()
Deserialize JSON string into an instance of SecurityContext
SecurityContext$fromJSONString(input_json)
input_jsonthe JSON input
the instance of SecurityContext
validateJSON()
Validate JSON input with respect to SecurityContext and throw an exception if invalid
SecurityContext$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
SecurityContext$toString()
String representation of SecurityContext
isValid()
Return true if the values in all fields are valid.
SecurityContext$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
SecurityContext$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
SecurityContext$print()
clone()
The objects of this class are cloneable with this method.
SecurityContext$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `SecurityContext$toList` ## ------------------------------------------------ # convert array of SecurityContext (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `SecurityContext$toList` ## ------------------------------------------------ # convert array of SecurityContext (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
SecurityContextPrincipal Class
SecurityContextPrincipal Class
An R6Class generator object
Create a new SecurityContextPrincipal
namecharacter [optional]
new()
Initialize a new SecurityContextPrincipal class.
SecurityContextPrincipal$new(name = NULL, ...)
namename
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
SecurityContextPrincipal$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
SecurityContextPrincipal$toList()
SecurityContextPrincipal as a base R list.
# convert array of SecurityContextPrincipal (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert SecurityContextPrincipal to a base R type
SecurityContextPrincipal$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of SecurityContextPrincipal
SecurityContextPrincipal$fromJSON(input_json)
input_jsonthe JSON input
the instance of SecurityContextPrincipal
toJSONString()
To JSON String
SecurityContextPrincipal$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
SecurityContextPrincipal in JSON format
fromJSONString()
Deserialize JSON string into an instance of SecurityContextPrincipal
SecurityContextPrincipal$fromJSONString(input_json)
input_jsonthe JSON input
the instance of SecurityContextPrincipal
validateJSON()
Validate JSON input with respect to SecurityContextPrincipal and throw an exception if invalid
SecurityContextPrincipal$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
SecurityContextPrincipal$toString()
String representation of SecurityContextPrincipal
isValid()
Return true if the values in all fields are valid.
SecurityContextPrincipal$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
SecurityContextPrincipal$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
SecurityContextPrincipal$print()
clone()
The objects of this class are cloneable with this method.
SecurityContextPrincipal$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `SecurityContextPrincipal$toList` ## ------------------------------------------------ # convert array of SecurityContextPrincipal (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `SecurityContextPrincipal$toList` ## ------------------------------------------------ # convert array of SecurityContextPrincipal (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
SimplePeak Class
SimplePeak Class
An R6Class generator object
Create a new SimplePeak
mznumeric [optional]
intensitynumeric [optional]
new()
Initialize a new SimplePeak class.
SimplePeak$new(mz = NULL, intensity = NULL, ...)
mzmz
intensityintensity
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
SimplePeak$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
SimplePeak$toList()
SimplePeak as a base R list.
# convert array of SimplePeak (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert SimplePeak to a base R type
SimplePeak$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of SimplePeak
SimplePeak$fromJSON(input_json)
input_jsonthe JSON input
the instance of SimplePeak
toJSONString()
To JSON String
SimplePeak$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
SimplePeak in JSON format
fromJSONString()
Deserialize JSON string into an instance of SimplePeak
SimplePeak$fromJSONString(input_json)
input_jsonthe JSON input
the instance of SimplePeak
validateJSON()
Validate JSON input with respect to SimplePeak and throw an exception if invalid
SimplePeak$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
SimplePeak$toString()
String representation of SimplePeak
isValid()
Return true if the values in all fields are valid.
SimplePeak$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
SimplePeak$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
SimplePeak$print()
clone()
The objects of this class are cloneable with this method.
SimplePeak$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `SimplePeak$toList` ## ------------------------------------------------ # convert array of SimplePeak (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `SimplePeak$toList` ## ------------------------------------------------ # convert array of SimplePeak (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
User/developer friendly parameter subset for the Formula/SIRIUS tool Can use results from Spectral library search tool.
Sirius Class
An R6Class generator object
Create a new Sirius
enabledIndicates whether the tool is enabled. character [optional]
profileInstrument specific profile for internal algorithms Just select what comes closest to the instrument that was used for measuring the data. character [optional]
numberOfCandidatesNumber of formula candidates to keep as result list (Formula Candidates). integer [optional]
numberOfCandidatesPerIonizationUse this parameter if you want to force SIRIUS to report at least NumberOfCandidatesPerIonization results per ionization. if <= 0, this parameter will have no effect and just the top NumberOfCandidates results will be reported. integer [optional]
massAccuracyMS2ppmMaximum allowed mass deviation. Only molecular formulas within this mass window are considered. numeric [optional]
isotopeMs2SettingsSpecify how isotope patterns in MS/MS should be handled. <p> FILTER: When filtering is enabled, molecular formulas are excluded if their theoretical isotope pattern does not match the theoretical one, even if their MS/MS pattern has high score. <p> SCORE: Use them for SCORING. To use this the instrument should produce clear MS/MS isotope patterns <p> IGNORE: Ignore that there might be isotope patterns in MS/MS character [optional]
filterByIsotopePatternWhen filtering is enabled, molecular formulas are excluded if their theoretical isotope pattern does not match the measured one, even if their MS/MS pattern has high score. character [optional]
enforceElGordoFormulaEl Gordo may predict that an MS/MS spectrum is a lipid spectrum. If enabled, the corresponding molecular formula will be enforced as a molecular formula candidate. character [optional]
performBottomUpSearchIf true, molecular formula generation via bottom up search is enabled. character [optional]
performDenovoBelowMzSpecifies the m/z below which de novo molecular formula generation is enabled. Set to 0 to disable de novo molecular formula generation. numeric [optional]
formulaSearchDBsList of structure databases to extract molecular formulas from, to reduce the formula search space. SIRIUS is quite good at de novo formula annotation, so only enable if you have a good reason. list(character) [optional]
applyFormulaConstraintsToDBAndBottomUpSearchBy default, the formula (element) constraints are only applied to de novo molecular formula generation. If true, the constraints are as well applied to database search and bottom up search. character [optional]
enforcedFormulaConstraintsThese configurations hold the information how to autodetect elements based on the given formula constraints. Note: If the compound is already assigned to a specific molecular formula, this annotation is ignored. <p> Enforced: Enforced elements are always considered character [optional]
fallbackFormulaConstraintsThese configurations hold the information how to autodetect elements based on the given formula constraints. Note: If the compound is already assigned to a specific molecular formula, this annotation is ignored. <p> Fallback: Fallback elements are used, if the auto-detection fails (e.g. no isotope pattern available) character [optional]
detectableElementsThese configurations hold the information how to autodetect elements based on the given formula constraints. Note: If the compound is already assigned to a specific molecular formula, this annotation is ignored. <p> Detectable: Detectable elements are added to the chemical alphabet, if there are indications for them (e.g. in isotope pattern) list(character) [optional]
ilpTimeoutTimeout [optional]
useHeuristicUseHeuristic [optional]
injectSpecLibMatchFormulasIf true formula candidates that belong to spectral library matches above a certain threshold will be injected and preserved for further analyses, no matter which score they have or which filter is applied character [optional]
minScoreToInjectSpecLibMatchSimilarity Threshold to inject formula candidates no matter which score/rank they have or which filter settings are applied. If the threshold is >= 0, formula candidates with a reference spectrum similarity above the threshold will be injected. numeric [optional]
minPeaksToInjectSpecLibMatchMatching peaks threshold to inject formula candidates no matter which score they have or which filter is applied. integer [optional]
new()
Initialize a new Sirius class.
Sirius$new( enabled = NULL, profile = NULL, numberOfCandidates = NULL, numberOfCandidatesPerIonization = NULL, massAccuracyMS2ppm = NULL, isotopeMs2Settings = NULL, filterByIsotopePattern = NULL, enforceElGordoFormula = NULL, performBottomUpSearch = NULL, performDenovoBelowMz = NULL, formulaSearchDBs = NULL, applyFormulaConstraintsToDBAndBottomUpSearch = NULL, enforcedFormulaConstraints = NULL, fallbackFormulaConstraints = NULL, detectableElements = NULL, ilpTimeout = NULL, useHeuristic = NULL, injectSpecLibMatchFormulas = NULL, minScoreToInjectSpecLibMatch = NULL, minPeaksToInjectSpecLibMatch = NULL, ... )
enabledIndicates whether the tool is enabled.
profileInstrument specific profile for internal algorithms Just select what comes closest to the instrument that was used for measuring the data.
numberOfCandidatesNumber of formula candidates to keep as result list (Formula Candidates).
numberOfCandidatesPerIonizationUse this parameter if you want to force SIRIUS to report at least NumberOfCandidatesPerIonization results per ionization. if <= 0, this parameter will have no effect and just the top NumberOfCandidates results will be reported.
massAccuracyMS2ppmMaximum allowed mass deviation. Only molecular formulas within this mass window are considered.
isotopeMs2SettingsSpecify how isotope patterns in MS/MS should be handled. <p> FILTER: When filtering is enabled, molecular formulas are excluded if their theoretical isotope pattern does not match the theoretical one, even if their MS/MS pattern has high score. <p> SCORE: Use them for SCORING. To use this the instrument should produce clear MS/MS isotope patterns <p> IGNORE: Ignore that there might be isotope patterns in MS/MS
filterByIsotopePatternWhen filtering is enabled, molecular formulas are excluded if their theoretical isotope pattern does not match the measured one, even if their MS/MS pattern has high score.
enforceElGordoFormulaEl Gordo may predict that an MS/MS spectrum is a lipid spectrum. If enabled, the corresponding molecular formula will be enforced as a molecular formula candidate.
performBottomUpSearchIf true, molecular formula generation via bottom up search is enabled.
performDenovoBelowMzSpecifies the m/z below which de novo molecular formula generation is enabled. Set to 0 to disable de novo molecular formula generation.
formulaSearchDBsList of structure databases to extract molecular formulas from, to reduce the formula search space. SIRIUS is quite good at de novo formula annotation, so only enable if you have a good reason.
applyFormulaConstraintsToDBAndBottomUpSearchBy default, the formula (element) constraints are only applied to de novo molecular formula generation. If true, the constraints are as well applied to database search and bottom up search.
enforcedFormulaConstraintsThese configurations hold the information how to autodetect elements based on the given formula constraints. Note: If the compound is already assigned to a specific molecular formula, this annotation is ignored. <p> Enforced: Enforced elements are always considered
fallbackFormulaConstraintsThese configurations hold the information how to autodetect elements based on the given formula constraints. Note: If the compound is already assigned to a specific molecular formula, this annotation is ignored. <p> Fallback: Fallback elements are used, if the auto-detection fails (e.g. no isotope pattern available)
detectableElementsThese configurations hold the information how to autodetect elements based on the given formula constraints. Note: If the compound is already assigned to a specific molecular formula, this annotation is ignored. <p> Detectable: Detectable elements are added to the chemical alphabet, if there are indications for them (e.g. in isotope pattern)
ilpTimeoutilpTimeout
useHeuristicuseHeuristic
injectSpecLibMatchFormulasIf true formula candidates that belong to spectral library matches above a certain threshold will be injected and preserved for further analyses, no matter which score they have or which filter is applied
minScoreToInjectSpecLibMatchSimilarity Threshold to inject formula candidates no matter which score/rank they have or which filter settings are applied. If the threshold is >= 0, formula candidates with a reference spectrum similarity above the threshold will be injected.
minPeaksToInjectSpecLibMatchMatching peaks threshold to inject formula candidates no matter which score they have or which filter is applied.
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
Sirius$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
Sirius$toList()
Sirius as a base R list.
# convert array of Sirius (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert Sirius to a base R type
Sirius$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of Sirius
Sirius$fromJSON(input_json)
input_jsonthe JSON input
the instance of Sirius
toJSONString()
To JSON String
Sirius$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
Sirius in JSON format
fromJSONString()
Deserialize JSON string into an instance of Sirius
Sirius$fromJSONString(input_json)
input_jsonthe JSON input
the instance of Sirius
validateJSON()
Validate JSON input with respect to Sirius and throw an exception if invalid
Sirius$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
Sirius$toString()
String representation of Sirius
isValid()
Return true if the values in all fields are valid.
Sirius$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
Sirius$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
Sirius$print()
clone()
The objects of this class are cloneable with this method.
Sirius$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `Sirius$toList` ## ------------------------------------------------ # convert array of Sirius (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `Sirius$toList` ## ------------------------------------------------ # convert array of Sirius (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
SpectralLibraryMatch Class
SpectralLibraryMatch Class
An R6Class generator object
Create a new SpectralLibraryMatch
specMatchIdcharacter [optional]
rankinteger [optional]
similaritySimilarity between query and reference spectrum numeric
sharedPeaksNumber of shared/matched peaks integer [optional]
sharedPeakMappingList of paired/matched peak indices. Maps indices of peaks from the query spectrum (mass sorted) to indices of matched peaks in the reference spectrum (mass sorted) list(PeakPair) [optional]
querySpectrumIndexinteger
dbNamecharacter [optional]
dbIdcharacter [optional]
uuidinteger
splashcharacter [optional]
molecularFormulacharacter [optional]
adductcharacter [optional]
exactMassnumeric [optional]
smilescharacter [optional]
typecharacter [optional]
inchiKeycharacter
referenceSpectrumTypecharacter [optional]
referenceSpectrumBasicSpectrum [optional]
querySpectrumTypecharacter [optional]
new()
Initialize a new SpectralLibraryMatch class.
SpectralLibraryMatch$new( similarity, querySpectrumIndex, uuid, inchiKey, specMatchId = NULL, rank = NULL, sharedPeaks = NULL, sharedPeakMapping = NULL, dbName = NULL, dbId = NULL, splash = NULL, molecularFormula = NULL, adduct = NULL, exactMass = NULL, smiles = NULL, type = "IDENTITY", referenceSpectrumType = "SPECTRUM", referenceSpectrum = NULL, querySpectrumType = NULL, ... )
similaritySimilarity between query and reference spectrum
querySpectrumIndexquerySpectrumIndex
uuiduuid
inchiKeyinchiKey
specMatchIdspecMatchId
rankrank
sharedPeaksNumber of shared/matched peaks
sharedPeakMappingList of paired/matched peak indices. Maps indices of peaks from the query spectrum (mass sorted) to indices of matched peaks in the reference spectrum (mass sorted)
dbNamedbName
dbIddbId
splashsplash
molecularFormulamolecularFormula
adductadduct
exactMassexactMass
smilessmiles
typetype. Default to "IDENTITY".
referenceSpectrumTypereferenceSpectrumType. Default to "SPECTRUM".
referenceSpectrumreferenceSpectrum
querySpectrumTypequerySpectrumType
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
SpectralLibraryMatch$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
SpectralLibraryMatch$toList()
SpectralLibraryMatch as a base R list.
# convert array of SpectralLibraryMatch (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert SpectralLibraryMatch to a base R type
SpectralLibraryMatch$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of SpectralLibraryMatch
SpectralLibraryMatch$fromJSON(input_json)
input_jsonthe JSON input
the instance of SpectralLibraryMatch
toJSONString()
To JSON String
SpectralLibraryMatch$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
SpectralLibraryMatch in JSON format
fromJSONString()
Deserialize JSON string into an instance of SpectralLibraryMatch
SpectralLibraryMatch$fromJSONString(input_json)
input_jsonthe JSON input
the instance of SpectralLibraryMatch
validateJSON()
Validate JSON input with respect to SpectralLibraryMatch and throw an exception if invalid
SpectralLibraryMatch$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
SpectralLibraryMatch$toString()
String representation of SpectralLibraryMatch
isValid()
Return true if the values in all fields are valid.
SpectralLibraryMatch$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
SpectralLibraryMatch$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
SpectralLibraryMatch$print()
clone()
The objects of this class are cloneable with this method.
SpectralLibraryMatch$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `SpectralLibraryMatch$toList` ## ------------------------------------------------ # convert array of SpectralLibraryMatch (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `SpectralLibraryMatch$toList` ## ------------------------------------------------ # convert array of SpectralLibraryMatch (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
SpectralLibraryMatchSummary Class
SpectralLibraryMatchSummary Class
An R6Class generator object
Create a new SpectralLibraryMatchSummary
bestMatchSpectralLibraryMatch [optional]
spectralMatchCountinteger
referenceSpectraCountinteger
databaseCompoundCountinteger
new()
Initialize a new SpectralLibraryMatchSummary class.
SpectralLibraryMatchSummary$new( spectralMatchCount, referenceSpectraCount, databaseCompoundCount, bestMatch = NULL, ... )
spectralMatchCountspectralMatchCount
referenceSpectraCountreferenceSpectraCount
databaseCompoundCountdatabaseCompoundCount
bestMatchbestMatch
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
SpectralLibraryMatchSummary$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
SpectralLibraryMatchSummary$toList()
SpectralLibraryMatchSummary as a base R list.
# convert array of SpectralLibraryMatchSummary (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert SpectralLibraryMatchSummary to a base R type
SpectralLibraryMatchSummary$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of SpectralLibraryMatchSummary
SpectralLibraryMatchSummary$fromJSON(input_json)
input_jsonthe JSON input
the instance of SpectralLibraryMatchSummary
toJSONString()
To JSON String
SpectralLibraryMatchSummary$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
SpectralLibraryMatchSummary in JSON format
fromJSONString()
Deserialize JSON string into an instance of SpectralLibraryMatchSummary
SpectralLibraryMatchSummary$fromJSONString(input_json)
input_jsonthe JSON input
the instance of SpectralLibraryMatchSummary
validateJSON()
Validate JSON input with respect to SpectralLibraryMatchSummary and throw an exception if invalid
SpectralLibraryMatchSummary$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
SpectralLibraryMatchSummary$toString()
String representation of SpectralLibraryMatchSummary
isValid()
Return true if the values in all fields are valid.
SpectralLibraryMatchSummary$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
SpectralLibraryMatchSummary$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
SpectralLibraryMatchSummary$print()
clone()
The objects of this class are cloneable with this method.
SpectralLibraryMatchSummary$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `SpectralLibraryMatchSummary$toList` ## ------------------------------------------------ # convert array of SpectralLibraryMatchSummary (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `SpectralLibraryMatchSummary$toList` ## ------------------------------------------------ # convert array of SpectralLibraryMatchSummary (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
User/developer friendly parameter subset for the Spectral library search tool.
SpectralLibrarySearch Class
An R6Class generator object
Create a new SpectralLibrarySearch
enabledIndicates whether the tool is enabled. character [optional]
spectraSearchDBsStructure Databases with Reference spectra to search in. <p> Defaults to BIO + Custom Databases. Possible values are available via the Database API. list(character) [optional]
precursorDeviationPpmMaximum allowed mass deviation in ppm for matching the precursor. If not specified, the same value as for the peaks is used. numeric [optional]
minSimilarityMinimal spectral similarity of a spectral match to be considered a hit. numeric [optional]
minNumOfPeaksMinimal number of matching peaks of a spectral match to be considered a hit. integer [optional]
enableAnalogueSearchEnable analogue search in addition to the identity spectral library search character [optional]
minSimilarityAnalogueMinimal spectral similarity of a spectral match to be considered an analogue hit. numeric [optional]
minNumOfPeaksAnalogueMinimal number of matching peaks of a spectral match to be considered an analogue hit. integer [optional]
scoringNO LONGER SUPPORTED (IGNORED) Specify scoring method to match spectra INTENSITY: Intensity weighted. Each peak matches at most one peak in the other spectrum. GAUSSIAN: Treat peaks as (un-normalized) Gaussians and score overlapping areas of PDFs. Each peak might score against multiple peaks in the other spectrum. MODIFIED_COSINE: This algorithm requires that there is at most one pair of peaks (u,v) where the m/z of u and v are within the allowed mass tolerance. To be used for analog search with different precursor masses. character [optional]
peakDeviationPpmNO LONGER SUPPORTED (IGNORED) Maximum allowed mass deviation in ppm for matching peaks. numeric [optional]
new()
Initialize a new SpectralLibrarySearch class.
SpectralLibrarySearch$new( enabled = NULL, spectraSearchDBs = NULL, precursorDeviationPpm = NULL, minSimilarity = NULL, minNumOfPeaks = NULL, enableAnalogueSearch = NULL, minSimilarityAnalogue = NULL, minNumOfPeaksAnalogue = NULL, scoring = NULL, peakDeviationPpm = NULL, ... )
enabledIndicates whether the tool is enabled.
spectraSearchDBsStructure Databases with Reference spectra to search in. <p> Defaults to BIO + Custom Databases. Possible values are available via the Database API.
precursorDeviationPpmMaximum allowed mass deviation in ppm for matching the precursor. If not specified, the same value as for the peaks is used.
minSimilarityMinimal spectral similarity of a spectral match to be considered a hit.
minNumOfPeaksMinimal number of matching peaks of a spectral match to be considered a hit.
enableAnalogueSearchEnable analogue search in addition to the identity spectral library search
minSimilarityAnalogueMinimal spectral similarity of a spectral match to be considered an analogue hit.
minNumOfPeaksAnalogueMinimal number of matching peaks of a spectral match to be considered an analogue hit.
scoringNO LONGER SUPPORTED (IGNORED) Specify scoring method to match spectra INTENSITY: Intensity weighted. Each peak matches at most one peak in the other spectrum. GAUSSIAN: Treat peaks as (un-normalized) Gaussians and score overlapping areas of PDFs. Each peak might score against multiple peaks in the other spectrum. MODIFIED_COSINE: This algorithm requires that there is at most one pair of peaks (u,v) where the m/z of u and v are within the allowed mass tolerance. To be used for analog search with different precursor masses.
peakDeviationPpmNO LONGER SUPPORTED (IGNORED) Maximum allowed mass deviation in ppm for matching peaks.
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
SpectralLibrarySearch$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
SpectralLibrarySearch$toList()
SpectralLibrarySearch as a base R list.
# convert array of SpectralLibrarySearch (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert SpectralLibrarySearch to a base R type
SpectralLibrarySearch$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of SpectralLibrarySearch
SpectralLibrarySearch$fromJSON(input_json)
input_jsonthe JSON input
the instance of SpectralLibrarySearch
toJSONString()
To JSON String
SpectralLibrarySearch$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
SpectralLibrarySearch in JSON format
fromJSONString()
Deserialize JSON string into an instance of SpectralLibrarySearch
SpectralLibrarySearch$fromJSONString(input_json)
input_jsonthe JSON input
the instance of SpectralLibrarySearch
validateJSON()
Validate JSON input with respect to SpectralLibrarySearch and throw an exception if invalid
SpectralLibrarySearch$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
SpectralLibrarySearch$toString()
String representation of SpectralLibrarySearch
isValid()
Return true if the values in all fields are valid.
SpectralLibrarySearch$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
SpectralLibrarySearch$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
SpectralLibrarySearch$print()
clone()
The objects of this class are cloneable with this method.
SpectralLibrarySearch$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `SpectralLibrarySearch$toList` ## ------------------------------------------------ # convert array of SpectralLibrarySearch (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `SpectralLibrarySearch$toList` ## ------------------------------------------------ # convert array of SpectralLibrarySearch (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
SpectrumAnnotation Class
SpectrumAnnotation Class
An R6Class generator object
Create a new SpectrumAnnotation
molecularFormulaMolecular formula that has been annotated to this spectrum character [optional]
adductAdduct that has been annotated to this spectrum character [optional]
exactMassExact mass based on the annotated molecular formula and ionization numeric [optional]
massDeviationMzAbsolute mass deviation of the exact mass to the precursor mass (precursorMz) of this spectrum in mDa numeric [optional]
massDeviationPpmRelative mass deviation of the exact mass to the precursor mass (precursorMz) of this spectrum in ppm numeric [optional]
structureAnnotationSmilesEXPERIMENTAL: This field is experimental and may be changed (or even removed) without notice until it is declared stable. <p> Smiles of the structure candidate used to derive substructure peak annotations via epimetheus insilico fragmentation Substructure highlighting (bond and atom indices) refer to this specific SMILES. If you standardize or canonicalize this SMILES in any way the indices of substructure highlighting might not match correctly anymore. <p> Null if substructure annotation not available or not requested. character [optional]
structureAnnotationNameEXPERIMENTAL: This field is experimental and may be changed (or even removed) without notice until it is declared stable. <p> Name of the structure candidate used to derive substructure peak annotations via epimetheus insilico fragmentation. <p> Null if substructure annotation not available or not requested. character [optional]
structureAnnotationSvgEXPERIMENTAL: This field is experimental and may be changed (or even removed) without notice until it is declared stable. <p> SVG graphics of the structure candidate used to derive substructure peak annotations via epimetheus insilico fragmentation Substructure highlighting (bond and atom indices) refers to this SVG. <p> Null if substructure annotation not available or not requested. character [optional]
structureAnnotationScoreEXPERIMENTAL: This field is experimental and may be changed (or even removed) without notice until it is declared stable. <p> Overall score of all substructure annotations computed for this structure candidate (structureAnnotationSmiles) <p> Null if substructure annotation not available or not requested. numeric [optional]
new()
Initialize a new SpectrumAnnotation class.
SpectrumAnnotation$new( molecularFormula = NULL, adduct = NULL, exactMass = NULL, massDeviationMz = NULL, massDeviationPpm = NULL, structureAnnotationSmiles = NULL, structureAnnotationName = NULL, structureAnnotationSvg = NULL, structureAnnotationScore = NULL, ... )
molecularFormulaMolecular formula that has been annotated to this spectrum
adductAdduct that has been annotated to this spectrum
exactMassExact mass based on the annotated molecular formula and ionization
massDeviationMzAbsolute mass deviation of the exact mass to the precursor mass (precursorMz) of this spectrum in mDa
massDeviationPpmRelative mass deviation of the exact mass to the precursor mass (precursorMz) of this spectrum in ppm
structureAnnotationSmilesEXPERIMENTAL: This field is experimental and may be changed (or even removed) without notice until it is declared stable. <p> Smiles of the structure candidate used to derive substructure peak annotations via epimetheus insilico fragmentation Substructure highlighting (bond and atom indices) refer to this specific SMILES. If you standardize or canonicalize this SMILES in any way the indices of substructure highlighting might not match correctly anymore. <p> Null if substructure annotation not available or not requested.
structureAnnotationNameEXPERIMENTAL: This field is experimental and may be changed (or even removed) without notice until it is declared stable. <p> Name of the structure candidate used to derive substructure peak annotations via epimetheus insilico fragmentation. <p> Null if substructure annotation not available or not requested.
structureAnnotationSvgEXPERIMENTAL: This field is experimental and may be changed (or even removed) without notice until it is declared stable. <p> SVG graphics of the structure candidate used to derive substructure peak annotations via epimetheus insilico fragmentation Substructure highlighting (bond and atom indices) refers to this SVG. <p> Null if substructure annotation not available or not requested.
structureAnnotationScoreEXPERIMENTAL: This field is experimental and may be changed (or even removed) without notice until it is declared stable. <p> Overall score of all substructure annotations computed for this structure candidate (structureAnnotationSmiles) <p> Null if substructure annotation not available or not requested.
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
SpectrumAnnotation$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
SpectrumAnnotation$toList()
SpectrumAnnotation as a base R list.
# convert array of SpectrumAnnotation (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert SpectrumAnnotation to a base R type
SpectrumAnnotation$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of SpectrumAnnotation
SpectrumAnnotation$fromJSON(input_json)
input_jsonthe JSON input
the instance of SpectrumAnnotation
toJSONString()
To JSON String
SpectrumAnnotation$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
SpectrumAnnotation in JSON format
fromJSONString()
Deserialize JSON string into an instance of SpectrumAnnotation
SpectrumAnnotation$fromJSONString(input_json)
input_jsonthe JSON input
the instance of SpectrumAnnotation
validateJSON()
Validate JSON input with respect to SpectrumAnnotation and throw an exception if invalid
SpectrumAnnotation$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
SpectrumAnnotation$toString()
String representation of SpectrumAnnotation
isValid()
Return true if the values in all fields are valid.
SpectrumAnnotation$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
SpectrumAnnotation$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
SpectrumAnnotation$print()
clone()
The objects of this class are cloneable with this method.
SpectrumAnnotation$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `SpectrumAnnotation$toList` ## ------------------------------------------------ # convert array of SpectrumAnnotation (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `SpectrumAnnotation$toList` ## ------------------------------------------------ # convert array of SpectrumAnnotation (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
StoredJobSubmission Class
StoredJobSubmission Class
An R6Class generator object
Create a new StoredJobSubmission
nameUnique name to identify this JobSubmission (job config). character
editableFalse for predefined configs which are not editable and not removable. character
jobSubmissionnew()
Initialize a new StoredJobSubmission class.
StoredJobSubmission$new(name, editable, jobSubmission, ...)
nameUnique name to identify this JobSubmission (job config).
editableFalse for predefined configs which are not editable and not removable.
jobSubmissionjobSubmission
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
StoredJobSubmission$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
StoredJobSubmission$toList()
StoredJobSubmission as a base R list.
# convert array of StoredJobSubmission (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert StoredJobSubmission to a base R type
StoredJobSubmission$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of StoredJobSubmission
StoredJobSubmission$fromJSON(input_json)
input_jsonthe JSON input
the instance of StoredJobSubmission
toJSONString()
To JSON String
StoredJobSubmission$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
StoredJobSubmission in JSON format
fromJSONString()
Deserialize JSON string into an instance of StoredJobSubmission
StoredJobSubmission$fromJSONString(input_json)
input_jsonthe JSON input
the instance of StoredJobSubmission
validateJSON()
Validate JSON input with respect to StoredJobSubmission and throw an exception if invalid
StoredJobSubmission$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
StoredJobSubmission$toString()
String representation of StoredJobSubmission
isValid()
Return true if the values in all fields are valid.
StoredJobSubmission$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
StoredJobSubmission$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
StoredJobSubmission$print()
clone()
The objects of this class are cloneable with this method.
StoredJobSubmission$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `StoredJobSubmission$toList` ## ------------------------------------------------ # convert array of StoredJobSubmission (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `StoredJobSubmission$toList` ## ------------------------------------------------ # convert array of StoredJobSubmission (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
StructureCandidate Class
StructureCandidate Class
An R6Class generator object
Create a new StructureCandidate
inchiKeyInChIKey of the structure candidate. Searching with a full 27 character key matches its 2D (skeleton) part, so stereoisomers of the searched structure are found alike. character [optional]
smilescharacter [optional]
structureNameName of the structure candidate. Searching also resolves the searched term as a PubChem synonym, so a structure is found by any of its common names. character [optional]
structureSvgSVG graphics of the structure candidate OPTIONAL: needs to be added by parameter character [optional]
dbLinksList of structure database links belonging to the structure candidate OPTIONAL: needs to be added by parameter list(DBLink) [optional]
spectralLibraryMatchesList of spectral library matches belonging to the structure candidate OPTIONAL: needs to be added by parameter list(SpectralLibraryMatch) [optional]
xlogPnumeric [optional]
new()
Initialize a new StructureCandidate class.
StructureCandidate$new( inchiKey = NULL, smiles = NULL, structureName = NULL, structureSvg = NULL, dbLinks = NULL, spectralLibraryMatches = NULL, xlogP = NULL, ... )
inchiKeyInChIKey of the structure candidate. Searching with a full 27 character key matches its 2D (skeleton) part, so stereoisomers of the searched structure are found alike.
smilessmiles
structureNameName of the structure candidate. Searching also resolves the searched term as a PubChem synonym, so a structure is found by any of its common names.
structureSvgSVG graphics of the structure candidate OPTIONAL: needs to be added by parameter
dbLinksList of structure database links belonging to the structure candidate OPTIONAL: needs to be added by parameter
spectralLibraryMatchesList of spectral library matches belonging to the structure candidate OPTIONAL: needs to be added by parameter
xlogPxlogP
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
StructureCandidate$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
StructureCandidate$toList()
StructureCandidate as a base R list.
# convert array of StructureCandidate (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert StructureCandidate to a base R type
StructureCandidate$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of StructureCandidate
StructureCandidate$fromJSON(input_json)
input_jsonthe JSON input
the instance of StructureCandidate
toJSONString()
To JSON String
StructureCandidate$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
StructureCandidate in JSON format
fromJSONString()
Deserialize JSON string into an instance of StructureCandidate
StructureCandidate$fromJSONString(input_json)
input_jsonthe JSON input
the instance of StructureCandidate
validateJSON()
Validate JSON input with respect to StructureCandidate and throw an exception if invalid
StructureCandidate$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
StructureCandidate$toString()
String representation of StructureCandidate
isValid()
Return true if the values in all fields are valid.
StructureCandidate$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
StructureCandidate$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
StructureCandidate$print()
clone()
The objects of this class are cloneable with this method.
StructureCandidate$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `StructureCandidate$toList` ## ------------------------------------------------ # convert array of StructureCandidate (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `StructureCandidate$toList` ## ------------------------------------------------ # convert array of StructureCandidate (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
StructureCandidateFormula Class
StructureCandidateFormula Class
An R6Class generator object
Create a new StructureCandidateFormula
inchiKeyInChIKey of the structure candidate. Searching with a full 27 character key matches its 2D (skeleton) part, so stereoisomers of the searched structure are found alike. character [optional]
smilescharacter [optional]
structureNameName of the structure candidate. Searching also resolves the searched term as a PubChem synonym, so a structure is found by any of its common names. character [optional]
structureSvgSVG graphics of the structure candidate OPTIONAL: needs to be added by parameter character [optional]
dbLinksList of structure database links belonging to the structure candidate OPTIONAL: needs to be added by parameter list(DBLink) [optional]
spectralLibraryMatchesList of spectral library matches belonging to the structure candidate OPTIONAL: needs to be added by parameter list(SpectralLibraryMatch) [optional]
xlogPnumeric [optional]
rankThe overall rank of this candidate among all candidates of this feature. integer [optional]
csiScoreCSI:FingerID score of the fingerprint of this compound to the predicted fingerprint of CSI:FingerID This is the score used for ranking structure candidates numeric [optional]
tanimotoSimilarityTanimoto similarity of the fingerprint of this compound to the predicted fingerprint of CSI:FingerID numeric [optional]
mcesDistToTopHitMaximum Common Edge Subgraph (MCES) distance to the top scoring hit (CSI:FingerID) in a candidate list. numeric [optional]
fingerprintBinaryFingerprint [optional]
molecularFormulaMolecular formula of this candidate character [optional]
adductAdduct of this candidate character [optional]
formulaIdId of the corresponding Formula candidate character [optional]
new()
Initialize a new StructureCandidateFormula class.
StructureCandidateFormula$new( inchiKey = NULL, smiles = NULL, structureName = NULL, structureSvg = NULL, dbLinks = NULL, spectralLibraryMatches = NULL, xlogP = NULL, rank = NULL, csiScore = NULL, tanimotoSimilarity = NULL, mcesDistToTopHit = NULL, fingerprint = NULL, molecularFormula = NULL, adduct = NULL, formulaId = NULL, ... )
inchiKeyInChIKey of the structure candidate. Searching with a full 27 character key matches its 2D (skeleton) part, so stereoisomers of the searched structure are found alike.
smilessmiles
structureNameName of the structure candidate. Searching also resolves the searched term as a PubChem synonym, so a structure is found by any of its common names.
structureSvgSVG graphics of the structure candidate OPTIONAL: needs to be added by parameter
dbLinksList of structure database links belonging to the structure candidate OPTIONAL: needs to be added by parameter
spectralLibraryMatchesList of spectral library matches belonging to the structure candidate OPTIONAL: needs to be added by parameter
xlogPxlogP
rankThe overall rank of this candidate among all candidates of this feature.
csiScoreCSI:FingerID score of the fingerprint of this compound to the predicted fingerprint of CSI:FingerID This is the score used for ranking structure candidates
tanimotoSimilarityTanimoto similarity of the fingerprint of this compound to the predicted fingerprint of CSI:FingerID
mcesDistToTopHitMaximum Common Edge Subgraph (MCES) distance to the top scoring hit (CSI:FingerID) in a candidate list.
fingerprintfingerprint
molecularFormulaMolecular formula of this candidate
adductAdduct of this candidate
formulaIdId of the corresponding Formula candidate
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
StructureCandidateFormula$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
StructureCandidateFormula$toList()
StructureCandidateFormula as a base R list.
# convert array of StructureCandidateFormula (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert StructureCandidateFormula to a base R type
StructureCandidateFormula$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of StructureCandidateFormula
StructureCandidateFormula$fromJSON(input_json)
input_jsonthe JSON input
the instance of StructureCandidateFormula
toJSONString()
To JSON String
StructureCandidateFormula$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
StructureCandidateFormula in JSON format
fromJSONString()
Deserialize JSON string into an instance of StructureCandidateFormula
StructureCandidateFormula$fromJSONString(input_json)
input_jsonthe JSON input
the instance of StructureCandidateFormula
validateJSON()
Validate JSON input with respect to StructureCandidateFormula and throw an exception if invalid
StructureCandidateFormula$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
StructureCandidateFormula$toString()
String representation of StructureCandidateFormula
isValid()
Return true if the values in all fields are valid.
StructureCandidateFormula$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
StructureCandidateFormula$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
StructureCandidateFormula$print()
clone()
The objects of this class are cloneable with this method.
StructureCandidateFormula$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `StructureCandidateFormula$toList` ## ------------------------------------------------ # convert array of StructureCandidateFormula (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `StructureCandidateFormula$toList` ## ------------------------------------------------ # convert array of StructureCandidateFormula (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
StructureCandidateScored Class
StructureCandidateScored Class
An R6Class generator object
Create a new StructureCandidateScored
inchiKeyInChIKey of the structure candidate. Searching with a full 27 character key matches its 2D (skeleton) part, so stereoisomers of the searched structure are found alike. character [optional]
smilescharacter [optional]
structureNameName of the structure candidate. Searching also resolves the searched term as a PubChem synonym, so a structure is found by any of its common names. character [optional]
structureSvgSVG graphics of the structure candidate OPTIONAL: needs to be added by parameter character [optional]
dbLinksList of structure database links belonging to the structure candidate OPTIONAL: needs to be added by parameter list(DBLink) [optional]
spectralLibraryMatchesList of spectral library matches belonging to the structure candidate OPTIONAL: needs to be added by parameter list(SpectralLibraryMatch) [optional]
xlogPnumeric [optional]
rankThe overall rank of this candidate among all candidates of this feature. integer [optional]
csiScoreCSI:FingerID score of the fingerprint of this compound to the predicted fingerprint of CSI:FingerID This is the score used for ranking structure candidates numeric [optional]
tanimotoSimilarityTanimoto similarity of the fingerprint of this compound to the predicted fingerprint of CSI:FingerID numeric [optional]
mcesDistToTopHitMaximum Common Edge Subgraph (MCES) distance to the top scoring hit (CSI:FingerID) in a candidate list. numeric [optional]
fingerprintBinaryFingerprint [optional]
new()
Initialize a new StructureCandidateScored class.
StructureCandidateScored$new( inchiKey = NULL, smiles = NULL, structureName = NULL, structureSvg = NULL, dbLinks = NULL, spectralLibraryMatches = NULL, xlogP = NULL, rank = NULL, csiScore = NULL, tanimotoSimilarity = NULL, mcesDistToTopHit = NULL, fingerprint = NULL, ... )
inchiKeyInChIKey of the structure candidate. Searching with a full 27 character key matches its 2D (skeleton) part, so stereoisomers of the searched structure are found alike.
smilessmiles
structureNameName of the structure candidate. Searching also resolves the searched term as a PubChem synonym, so a structure is found by any of its common names.
structureSvgSVG graphics of the structure candidate OPTIONAL: needs to be added by parameter
dbLinksList of structure database links belonging to the structure candidate OPTIONAL: needs to be added by parameter
spectralLibraryMatchesList of spectral library matches belonging to the structure candidate OPTIONAL: needs to be added by parameter
xlogPxlogP
rankThe overall rank of this candidate among all candidates of this feature.
csiScoreCSI:FingerID score of the fingerprint of this compound to the predicted fingerprint of CSI:FingerID This is the score used for ranking structure candidates
tanimotoSimilarityTanimoto similarity of the fingerprint of this compound to the predicted fingerprint of CSI:FingerID
mcesDistToTopHitMaximum Common Edge Subgraph (MCES) distance to the top scoring hit (CSI:FingerID) in a candidate list.
fingerprintfingerprint
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
StructureCandidateScored$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
StructureCandidateScored$toList()
StructureCandidateScored as a base R list.
# convert array of StructureCandidateScored (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert StructureCandidateScored to a base R type
StructureCandidateScored$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of StructureCandidateScored
StructureCandidateScored$fromJSON(input_json)
input_jsonthe JSON input
the instance of StructureCandidateScored
toJSONString()
To JSON String
StructureCandidateScored$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
StructureCandidateScored in JSON format
fromJSONString()
Deserialize JSON string into an instance of StructureCandidateScored
StructureCandidateScored$fromJSONString(input_json)
input_jsonthe JSON input
the instance of StructureCandidateScored
validateJSON()
Validate JSON input with respect to StructureCandidateScored and throw an exception if invalid
StructureCandidateScored$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
StructureCandidateScored$toString()
String representation of StructureCandidateScored
isValid()
Return true if the values in all fields are valid.
StructureCandidateScored$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
StructureCandidateScored$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
StructureCandidateScored$print()
clone()
The objects of this class are cloneable with this method.
StructureCandidateScored$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `StructureCandidateScored$toList` ## ------------------------------------------------ # convert array of StructureCandidateScored (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `StructureCandidateScored$toList` ## ------------------------------------------------ # convert array of StructureCandidateScored (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
User/developer friendly parameter subset for the CSI:FingerID structure db search tool. Needs results from the FingerprintPrediction and CANOPUS tools. Non-null parameters in this object override their equivalent value in the config map.
StructureDbSearch Class
An R6Class generator object
Create a new StructureDbSearch
enabledIndicates whether the tool is enabled. character [optional]
structureSearchDBsStructure databases to search in, If expansive search is enabled this DB selection will be expanded to PubChem if no high confidence hit was found in the selected databases. <p> Defaults to BIO + Custom Databases. Possible values are available via the Database API. list(character) [optional]
tagStructuresWithLipidClassCandidates matching the lipid class estimated by El Gordo will be tagged. The lipid class will only be available if El Gordo predicts that the MS/MS is a lipid spectrum. If this parameter is set to 'false' El Gordo will still be executed and e.g. improve the fragmentation tree, but the matching structure candidates will not be tagged if they match lipid class. character [optional]
expansiveSearchConfidenceModeExpansive search mode. Expansive search will expand the search space to whole PubChem in case no hit with reasonable confidence was found in one of the specified databases (structureSearchDBs). <p> Possible Values OFF - No expansive search is performed EXACT - Use confidence score in exact mode: Only molecular structures identical to the true structure should count as correct identification. APPROXIMATE - Use confidence score in approximate mode: Molecular structures hits that are close to the true structure should count as correct identification. character [optional]
new()
Initialize a new StructureDbSearch class.
StructureDbSearch$new( enabled = NULL, structureSearchDBs = NULL, tagStructuresWithLipidClass = NULL, expansiveSearchConfidenceMode = NULL, ... )
enabledIndicates whether the tool is enabled.
structureSearchDBsStructure databases to search in, If expansive search is enabled this DB selection will be expanded to PubChem if no high confidence hit was found in the selected databases. <p> Defaults to BIO + Custom Databases. Possible values are available via the Database API.
tagStructuresWithLipidClassCandidates matching the lipid class estimated by El Gordo will be tagged. The lipid class will only be available if El Gordo predicts that the MS/MS is a lipid spectrum. If this parameter is set to 'false' El Gordo will still be executed and e.g. improve the fragmentation tree, but the matching structure candidates will not be tagged if they match lipid class.
expansiveSearchConfidenceModeExpansive search mode. Expansive search will expand the search space to whole PubChem in case no hit with reasonable confidence was found in one of the specified databases (structureSearchDBs). <p> Possible Values OFF - No expansive search is performed EXACT - Use confidence score in exact mode: Only molecular structures identical to the true structure should count as correct identification. APPROXIMATE - Use confidence score in approximate mode: Molecular structures hits that are close to the true structure should count as correct identification.
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
StructureDbSearch$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
StructureDbSearch$toList()
StructureDbSearch as a base R list.
# convert array of StructureDbSearch (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert StructureDbSearch to a base R type
StructureDbSearch$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of StructureDbSearch
StructureDbSearch$fromJSON(input_json)
input_jsonthe JSON input
the instance of StructureDbSearch
toJSONString()
To JSON String
StructureDbSearch$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
StructureDbSearch in JSON format
fromJSONString()
Deserialize JSON string into an instance of StructureDbSearch
StructureDbSearch$fromJSONString(input_json)
input_jsonthe JSON input
the instance of StructureDbSearch
validateJSON()
Validate JSON input with respect to StructureDbSearch and throw an exception if invalid
StructureDbSearch$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
StructureDbSearch$toString()
String representation of StructureDbSearch
isValid()
Return true if the values in all fields are valid.
StructureDbSearch$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
StructureDbSearch$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
StructureDbSearch$print()
clone()
The objects of this class are cloneable with this method.
StructureDbSearch$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `StructureDbSearch$toList` ## ------------------------------------------------ # convert array of StructureDbSearch (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `StructureDbSearch$toList` ## ------------------------------------------------ # convert array of StructureDbSearch (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
Subscription Class
Subscription Class
An R6Class generator object
Create a new Subscription
sidUnique identifier of this subscription character [optional]
subscriberIdID of the owner of the subscription. This can be the ID of any SubscriptionOwner (e.g. TagGroup or User) depending on the level at which a subscription is valid. character [optional]
subscriberNameOptional name of the owner of this subscription character [optional]
expirationDatecharacter [optional]
startDatecharacter [optional]
countQueriescharacter [optional]
instanceLimitLimit of instances (features) that can be computed with this subscription integer [optional]
instanceHashRecordingTimeHash is used to allow recomputing identical data without increasing counted instances (features). The recording time is the amount of time an instance is memorized. integer [optional]
maxQueriesPerInstanceMaximum number of queries (e.g. prediction) that can be performed for one instance before it is counted another time. integer [optional]
maxUserAccountsinteger [optional]
serviceUrlcharacter [optional]
descriptioncharacter [optional]
namecharacter [optional]
toscharacter [optional]
ppcharacter [optional]
allowedFeaturesAllowedFeatures [optional]
new()
Initialize a new Subscription class.
Subscription$new( sid = NULL, subscriberId = NULL, subscriberName = NULL, expirationDate = NULL, startDate = NULL, countQueries = NULL, instanceLimit = NULL, instanceHashRecordingTime = NULL, maxQueriesPerInstance = NULL, maxUserAccounts = NULL, serviceUrl = NULL, description = NULL, name = NULL, tos = NULL, pp = NULL, allowedFeatures = NULL, ... )
sidUnique identifier of this subscription
subscriberIdID of the owner of the subscription. This can be the ID of any SubscriptionOwner (e.g. TagGroup or User) depending on the level at which a subscription is valid.
subscriberNameOptional name of the owner of this subscription
expirationDateexpirationDate
startDatestartDate
countQueriescountQueries
instanceLimitLimit of instances (features) that can be computed with this subscription
instanceHashRecordingTimeHash is used to allow recomputing identical data without increasing counted instances (features). The recording time is the amount of time an instance is memorized.
maxQueriesPerInstanceMaximum number of queries (e.g. prediction) that can be performed for one instance before it is counted another time.
maxUserAccountsmaxUserAccounts
serviceUrlserviceUrl
descriptiondescription
namename
tostos
pppp
allowedFeaturesallowedFeatures
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
Subscription$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
Subscription$toList()
Subscription as a base R list.
# convert array of Subscription (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert Subscription to a base R type
Subscription$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of Subscription
Subscription$fromJSON(input_json)
input_jsonthe JSON input
the instance of Subscription
toJSONString()
To JSON String
Subscription$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
Subscription in JSON format
fromJSONString()
Deserialize JSON string into an instance of Subscription
Subscription$fromJSONString(input_json)
input_jsonthe JSON input
the instance of Subscription
validateJSON()
Validate JSON input with respect to Subscription and throw an exception if invalid
Subscription$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
Subscription$toString()
String representation of Subscription
isValid()
Return true if the values in all fields are valid.
Subscription$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
Subscription$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
Subscription$print()
clone()
The objects of this class are cloneable with this method.
Subscription$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `Subscription$toList` ## ------------------------------------------------ # convert array of Subscription (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `Subscription$toList` ## ------------------------------------------------ # convert array of Subscription (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
SubscriptionConsumables Class
SubscriptionConsumables Class
An R6Class generator object
Create a new SubscriptionConsumables
pendingJobsinteger [optional]
countedCompoundsinteger [optional]
new()
Initialize a new SubscriptionConsumables class.
SubscriptionConsumables$new(pendingJobs = NULL, countedCompounds = NULL, ...)
pendingJobspendingJobs
countedCompoundscountedCompounds
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
SubscriptionConsumables$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
SubscriptionConsumables$toList()
SubscriptionConsumables as a base R list.
# convert array of SubscriptionConsumables (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert SubscriptionConsumables to a base R type
SubscriptionConsumables$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of SubscriptionConsumables
SubscriptionConsumables$fromJSON(input_json)
input_jsonthe JSON input
the instance of SubscriptionConsumables
toJSONString()
To JSON String
SubscriptionConsumables$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
SubscriptionConsumables in JSON format
fromJSONString()
Deserialize JSON string into an instance of SubscriptionConsumables
SubscriptionConsumables$fromJSONString(input_json)
input_jsonthe JSON input
the instance of SubscriptionConsumables
validateJSON()
Validate JSON input with respect to SubscriptionConsumables and throw an exception if invalid
SubscriptionConsumables$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
SubscriptionConsumables$toString()
String representation of SubscriptionConsumables
isValid()
Return true if the values in all fields are valid.
SubscriptionConsumables$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
SubscriptionConsumables$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
SubscriptionConsumables$print()
clone()
The objects of this class are cloneable with this method.
SubscriptionConsumables$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `SubscriptionConsumables$toList` ## ------------------------------------------------ # convert array of SubscriptionConsumables (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `SubscriptionConsumables$toList` ## ------------------------------------------------ # convert array of SubscriptionConsumables (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
Tag Class
Tag Class
An R6Class generator object
Create a new Tag
tagNameName of the tag as defined by the corresponding TagDefinition Links the tag object to its definition. character
valueAnyValue [optional]
new()
Initialize a new Tag class.
Tag$new(tagName, value = NULL, ...)
tagNameName of the tag as defined by the corresponding TagDefinition Links the tag object to its definition.
valuevalue
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
Tag$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
Tag$toList()
Tag as a base R list.
# convert array of Tag (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert Tag to a base R type
Tag$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of Tag
Tag$fromJSON(input_json)
input_jsonthe JSON input
the instance of Tag
toJSONString()
To JSON String
Tag$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
Tag in JSON format
fromJSONString()
Deserialize JSON string into an instance of Tag
Tag$fromJSONString(input_json)
input_jsonthe JSON input
the instance of Tag
validateJSON()
Validate JSON input with respect to Tag and throw an exception if invalid
Tag$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
Tag$toString()
String representation of Tag
isValid()
Return true if the values in all fields are valid.
Tag$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
Tag$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
Tag$print()
clone()
The objects of this class are cloneable with this method.
Tag$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `Tag$toList` ## ------------------------------------------------ # convert array of Tag (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `Tag$toList` ## ------------------------------------------------ # convert array of Tag (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
Term Class
Term Class
An R6Class generator object
Create a new Term
namecharacter [optional]
linkcharacter [optional]
new()
Initialize a new Term class.
Term$new(name = NULL, link = NULL, ...)
namename
linklink
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
Term$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
Term$toList()
Term as a base R list.
# convert array of Term (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert Term to a base R type
Term$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of Term
Term$fromJSON(input_json)
input_jsonthe JSON input
the instance of Term
toJSONString()
To JSON String
Term$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
Term in JSON format
fromJSONString()
Deserialize JSON string into an instance of Term
Term$fromJSONString(input_json)
input_jsonthe JSON input
the instance of Term
validateJSON()
Validate JSON input with respect to Term and throw an exception if invalid
Term$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
Term$toString()
String representation of Term
isValid()
Return true if the values in all fields are valid.
Term$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
Term$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
Term$print()
clone()
The objects of this class are cloneable with this method.
Term$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `Term$toList` ## ------------------------------------------------ # convert array of Term (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `Term$toList` ## ------------------------------------------------ # convert array of Term (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
Timeout Class
Timeout Class
An R6Class generator object
Create a new Timeout
numberOfSecondsPerDecompositioninteger [optional]
numberOfSecondsPerInstanceinteger [optional]
new()
Initialize a new Timeout class.
Timeout$new( numberOfSecondsPerDecomposition = NULL, numberOfSecondsPerInstance = NULL, ... )
numberOfSecondsPerDecompositionnumberOfSecondsPerDecomposition
numberOfSecondsPerInstancenumberOfSecondsPerInstance
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
Timeout$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
Timeout$toList()
Timeout as a base R list.
# convert array of Timeout (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert Timeout to a base R type
Timeout$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of Timeout
Timeout$fromJSON(input_json)
input_jsonthe JSON input
the instance of Timeout
toJSONString()
To JSON String
Timeout$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
Timeout in JSON format
fromJSONString()
Deserialize JSON string into an instance of Timeout
Timeout$fromJSONString(input_json)
input_jsonthe JSON input
the instance of Timeout
validateJSON()
Validate JSON input with respect to Timeout and throw an exception if invalid
Timeout$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
Timeout$toString()
String representation of Timeout
isValid()
Return true if the values in all fields are valid.
Timeout$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
Timeout$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
Timeout$print()
clone()
The objects of this class are cloneable with this method.
Timeout$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `Timeout$toList` ## ------------------------------------------------ # convert array of Timeout (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `Timeout$toList` ## ------------------------------------------------ # convert array of Timeout (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
UseHeuristic Class
UseHeuristic Class
An R6Class generator object
Create a new UseHeuristic
useHeuristicAboveMzinteger [optional]
useOnlyHeuristicAboveMzinteger [optional]
new()
Initialize a new UseHeuristic class.
UseHeuristic$new( useHeuristicAboveMz = NULL, useOnlyHeuristicAboveMz = NULL, ... )
useHeuristicAboveMzuseHeuristicAboveMz
useOnlyHeuristicAboveMzuseOnlyHeuristicAboveMz
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
UseHeuristic$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
UseHeuristic$toList()
UseHeuristic as a base R list.
# convert array of UseHeuristic (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert UseHeuristic to a base R type
UseHeuristic$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of UseHeuristic
UseHeuristic$fromJSON(input_json)
input_jsonthe JSON input
the instance of UseHeuristic
toJSONString()
To JSON String
UseHeuristic$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
UseHeuristic in JSON format
fromJSONString()
Deserialize JSON string into an instance of UseHeuristic
UseHeuristic$fromJSONString(input_json)
input_jsonthe JSON input
the instance of UseHeuristic
validateJSON()
Validate JSON input with respect to UseHeuristic and throw an exception if invalid
UseHeuristic$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
UseHeuristic$toString()
String representation of UseHeuristic
isValid()
Return true if the values in all fields are valid.
UseHeuristic$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
UseHeuristic$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
UseHeuristic$print()
clone()
The objects of this class are cloneable with this method.
UseHeuristic$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `UseHeuristic$toList` ## ------------------------------------------------ # convert array of UseHeuristic (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `UseHeuristic$toList` ## ------------------------------------------------ # convert array of UseHeuristic (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
WebServerNamespace Class
WebServerNamespace Class
An R6Class generator object
Create a new WebServerNamespace
valuecharacter [optional]
new()
Initialize a new WebServerNamespace class.
WebServerNamespace$new(value = NULL, ...)
valuevalue
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
WebServerNamespace$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
WebServerNamespace$toList()
WebServerNamespace as a base R list.
# convert array of WebServerNamespace (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert WebServerNamespace to a base R type
WebServerNamespace$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of WebServerNamespace
WebServerNamespace$fromJSON(input_json)
input_jsonthe JSON input
the instance of WebServerNamespace
toJSONString()
To JSON String
WebServerNamespace$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
WebServerNamespace in JSON format
fromJSONString()
Deserialize JSON string into an instance of WebServerNamespace
WebServerNamespace$fromJSONString(input_json)
input_jsonthe JSON input
the instance of WebServerNamespace
validateJSON()
Validate JSON input with respect to WebServerNamespace and throw an exception if invalid
WebServerNamespace$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
WebServerNamespace$toString()
String representation of WebServerNamespace
isValid()
Return true if the values in all fields are valid.
WebServerNamespace$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
WebServerNamespace$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
WebServerNamespace$print()
clone()
The objects of this class are cloneable with this method.
WebServerNamespace$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `WebServerNamespace$toList` ## ------------------------------------------------ # convert array of WebServerNamespace (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `WebServerNamespace$toList` ## ------------------------------------------------ # convert array of WebServerNamespace (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
User/developer friendly parameter subset for the ZODIAC tool (network-based molecular formula re-ranking). Needs results from the Formula/SIRIUS tool.
Zodiac Class
An R6Class generator object
Create a new Zodiac
enabledIndicates whether the tool is enabled. character [optional]
consideredCandidatesAt300MzMaximum number of candidate molecular formulas (fragmentation trees computed by SIRIUS) per compound which are considered by ZODIAC for compounds below 300 m/z. integer [optional]
consideredCandidatesAt800MzMaximum number of candidate molecular formulas (fragmentation trees computed by SIRIUS) per compound which are considered by ZODIAC for compounds above 800 m/z. integer [optional]
runInTwoStepsBy default, ZODIAC runs a 2-step approach: first running only 'good quality compounds', and afterwards including the remaining ones. character [optional]
edgeFilterThresholdsZodiacEdgeFilterThresholds [optional]
gibbsSamplerParametersZodiacEpochs [optional]
librarySearchAnchorsZodiacLibraryScoring [optional]
analogueSearchAnchorsZodiacAnalogueNodes [optional]
new()
Initialize a new Zodiac class.
Zodiac$new( enabled = NULL, consideredCandidatesAt300Mz = NULL, consideredCandidatesAt800Mz = NULL, runInTwoSteps = NULL, edgeFilterThresholds = NULL, gibbsSamplerParameters = NULL, librarySearchAnchors = NULL, analogueSearchAnchors = NULL, ... )
enabledIndicates whether the tool is enabled.
consideredCandidatesAt300MzMaximum number of candidate molecular formulas (fragmentation trees computed by SIRIUS) per compound which are considered by ZODIAC for compounds below 300 m/z.
consideredCandidatesAt800MzMaximum number of candidate molecular formulas (fragmentation trees computed by SIRIUS) per compound which are considered by ZODIAC for compounds above 800 m/z.
runInTwoStepsBy default, ZODIAC runs a 2-step approach: first running only 'good quality compounds', and afterwards including the remaining ones.
edgeFilterThresholdsedgeFilterThresholds
gibbsSamplerParametersgibbsSamplerParameters
librarySearchAnchorslibrarySearchAnchors
analogueSearchAnchorsanalogueSearchAnchors
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
Zodiac$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
Zodiac$toList()
Zodiac as a base R list.
# convert array of Zodiac (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert Zodiac to a base R type
Zodiac$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of Zodiac
Zodiac$fromJSON(input_json)
input_jsonthe JSON input
the instance of Zodiac
toJSONString()
To JSON String
Zodiac$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
Zodiac in JSON format
fromJSONString()
Deserialize JSON string into an instance of Zodiac
Zodiac$fromJSONString(input_json)
input_jsonthe JSON input
the instance of Zodiac
validateJSON()
Validate JSON input with respect to Zodiac and throw an exception if invalid
Zodiac$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
Zodiac$toString()
String representation of Zodiac
isValid()
Return true if the values in all fields are valid.
Zodiac$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
Zodiac$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
Zodiac$print()
clone()
The objects of this class are cloneable with this method.
Zodiac$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `Zodiac$toList` ## ------------------------------------------------ # convert array of Zodiac (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `Zodiac$toList` ## ------------------------------------------------ # convert array of Zodiac (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
ZodiacAnalogueNodes Class
ZodiacAnalogueNodes Class
An R6Class generator object
Create a new ZodiacAnalogueNodes
enabledcharacter [optional]
minSimilaritynumeric [optional]
minSharedPeaksinteger [optional]
new()
Initialize a new ZodiacAnalogueNodes class.
ZodiacAnalogueNodes$new( enabled = NULL, minSimilarity = NULL, minSharedPeaks = NULL, ... )
enabledenabled
minSimilarityminSimilarity
minSharedPeaksminSharedPeaks
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
ZodiacAnalogueNodes$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
ZodiacAnalogueNodes$toList()
ZodiacAnalogueNodes as a base R list.
# convert array of ZodiacAnalogueNodes (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert ZodiacAnalogueNodes to a base R type
ZodiacAnalogueNodes$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of ZodiacAnalogueNodes
ZodiacAnalogueNodes$fromJSON(input_json)
input_jsonthe JSON input
the instance of ZodiacAnalogueNodes
toJSONString()
To JSON String
ZodiacAnalogueNodes$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
ZodiacAnalogueNodes in JSON format
fromJSONString()
Deserialize JSON string into an instance of ZodiacAnalogueNodes
ZodiacAnalogueNodes$fromJSONString(input_json)
input_jsonthe JSON input
the instance of ZodiacAnalogueNodes
validateJSON()
Validate JSON input with respect to ZodiacAnalogueNodes and throw an exception if invalid
ZodiacAnalogueNodes$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
ZodiacAnalogueNodes$toString()
String representation of ZodiacAnalogueNodes
isValid()
Return true if the values in all fields are valid.
ZodiacAnalogueNodes$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
ZodiacAnalogueNodes$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
ZodiacAnalogueNodes$print()
clone()
The objects of this class are cloneable with this method.
ZodiacAnalogueNodes$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `ZodiacAnalogueNodes$toList` ## ------------------------------------------------ # convert array of ZodiacAnalogueNodes (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `ZodiacAnalogueNodes$toList` ## ------------------------------------------------ # convert array of ZodiacAnalogueNodes (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
ZodiacEdgeFilterThresholds Class
ZodiacEdgeFilterThresholds Class
An R6Class generator object
Create a new ZodiacEdgeFilterThresholds
thresholdFilternumeric [optional]
minLocalCandidatesinteger [optional]
minLocalConnectionsinteger [optional]
new()
Initialize a new ZodiacEdgeFilterThresholds class.
ZodiacEdgeFilterThresholds$new( thresholdFilter = NULL, minLocalCandidates = NULL, minLocalConnections = NULL, ... )
thresholdFilterthresholdFilter
minLocalCandidatesminLocalCandidates
minLocalConnectionsminLocalConnections
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
ZodiacEdgeFilterThresholds$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
ZodiacEdgeFilterThresholds$toList()
ZodiacEdgeFilterThresholds as a base R list.
# convert array of ZodiacEdgeFilterThresholds (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert ZodiacEdgeFilterThresholds to a base R type
ZodiacEdgeFilterThresholds$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of ZodiacEdgeFilterThresholds
ZodiacEdgeFilterThresholds$fromJSON(input_json)
input_jsonthe JSON input
the instance of ZodiacEdgeFilterThresholds
toJSONString()
To JSON String
ZodiacEdgeFilterThresholds$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
ZodiacEdgeFilterThresholds in JSON format
fromJSONString()
Deserialize JSON string into an instance of ZodiacEdgeFilterThresholds
ZodiacEdgeFilterThresholds$fromJSONString(input_json)
input_jsonthe JSON input
the instance of ZodiacEdgeFilterThresholds
validateJSON()
Validate JSON input with respect to ZodiacEdgeFilterThresholds and throw an exception if invalid
ZodiacEdgeFilterThresholds$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
ZodiacEdgeFilterThresholds$toString()
String representation of ZodiacEdgeFilterThresholds
isValid()
Return true if the values in all fields are valid.
ZodiacEdgeFilterThresholds$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
ZodiacEdgeFilterThresholds$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
ZodiacEdgeFilterThresholds$print()
clone()
The objects of this class are cloneable with this method.
ZodiacEdgeFilterThresholds$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `ZodiacEdgeFilterThresholds$toList` ## ------------------------------------------------ # convert array of ZodiacEdgeFilterThresholds (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `ZodiacEdgeFilterThresholds$toList` ## ------------------------------------------------ # convert array of ZodiacEdgeFilterThresholds (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
ZodiacEpochs Class
ZodiacEpochs Class
An R6Class generator object
Create a new ZodiacEpochs
iterationsinteger [optional]
burnInPeriodinteger [optional]
numberOfMarkovChainsinteger [optional]
new()
Initialize a new ZodiacEpochs class.
ZodiacEpochs$new( iterations = NULL, burnInPeriod = NULL, numberOfMarkovChains = NULL, ... )
iterationsiterations
burnInPeriodburnInPeriod
numberOfMarkovChainsnumberOfMarkovChains
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
ZodiacEpochs$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
ZodiacEpochs$toList()
ZodiacEpochs as a base R list.
# convert array of ZodiacEpochs (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert ZodiacEpochs to a base R type
ZodiacEpochs$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of ZodiacEpochs
ZodiacEpochs$fromJSON(input_json)
input_jsonthe JSON input
the instance of ZodiacEpochs
toJSONString()
To JSON String
ZodiacEpochs$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
ZodiacEpochs in JSON format
fromJSONString()
Deserialize JSON string into an instance of ZodiacEpochs
ZodiacEpochs$fromJSONString(input_json)
input_jsonthe JSON input
the instance of ZodiacEpochs
validateJSON()
Validate JSON input with respect to ZodiacEpochs and throw an exception if invalid
ZodiacEpochs$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
ZodiacEpochs$toString()
String representation of ZodiacEpochs
isValid()
Return true if the values in all fields are valid.
ZodiacEpochs$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
ZodiacEpochs$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
ZodiacEpochs$print()
clone()
The objects of this class are cloneable with this method.
ZodiacEpochs$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `ZodiacEpochs$toList` ## ------------------------------------------------ # convert array of ZodiacEpochs (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `ZodiacEpochs$toList` ## ------------------------------------------------ # convert array of ZodiacEpochs (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)
ZodiacLibraryScoring Class
ZodiacLibraryScoring Class
An R6Class generator object
Create a new ZodiacLibraryScoring
enabledcharacter [optional]
minSimilaritynumeric [optional]
new()
Initialize a new ZodiacLibraryScoring class.
ZodiacLibraryScoring$new(enabled = NULL, minSimilarity = NULL, ...)
enabledenabled
minSimilarityminSimilarity
...Other optional arguments.
toJSON()
Convert to an R object. This method is deprecated. Use 'toSimpleType()' instead.
ZodiacLibraryScoring$toJSON()
toList()
Convert to a List
Convert the R6 object to a list to work more easily with other tooling.
ZodiacLibraryScoring$toList()
ZodiacLibraryScoring as a base R list.
# convert array of ZodiacLibraryScoring (x) to a data frame
\dontrun{
library(purrr)
library(tibble)
df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind()
df
}
toSimpleType()
Convert ZodiacLibraryScoring to a base R type
ZodiacLibraryScoring$toSimpleType()
A base R type, e.g. a list or numeric/character array.
fromJSON()
Deserialize JSON string into an instance of ZodiacLibraryScoring
ZodiacLibraryScoring$fromJSON(input_json)
input_jsonthe JSON input
the instance of ZodiacLibraryScoring
toJSONString()
To JSON String
ZodiacLibraryScoring$toJSONString(...)
...Parameters passed to 'jsonlite::toJSON'
ZodiacLibraryScoring in JSON format
fromJSONString()
Deserialize JSON string into an instance of ZodiacLibraryScoring
ZodiacLibraryScoring$fromJSONString(input_json)
input_jsonthe JSON input
the instance of ZodiacLibraryScoring
validateJSON()
Validate JSON input with respect to ZodiacLibraryScoring and throw an exception if invalid
ZodiacLibraryScoring$validateJSON(input)
inputthe JSON input
toString()
To string (JSON format)
ZodiacLibraryScoring$toString()
String representation of ZodiacLibraryScoring
isValid()
Return true if the values in all fields are valid.
ZodiacLibraryScoring$isValid()
true if the values in all fields are valid.
getInvalidFields()
Return a list of invalid fields (if any).
ZodiacLibraryScoring$getInvalidFields()
A list of invalid fields (if any).
print()
Print the object
ZodiacLibraryScoring$print()
clone()
The objects of this class are cloneable with this method.
ZodiacLibraryScoring$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------ ## Method `ZodiacLibraryScoring$toList` ## ------------------------------------------------ # convert array of ZodiacLibraryScoring (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)## ------------------------------------------------ ## Method `ZodiacLibraryScoring$toList` ## ------------------------------------------------ # convert array of ZodiacLibraryScoring (x) to a data frame ## Not run: library(purrr) library(tibble) df <- x |> map(\(y)y$toList()) |> map(as_tibble) |> list_rbind() df ## End(Not run)