Skip to content

sps_tissue

Example data for `MetCirc`: `sps_tissue`

Bundled with MetCirc · exported, loads via data()

Class
–
Missing
–
Format
rda · xz
version 3 · 20 KB
File
data/spectra.RData
Fingerprint
–
Format documented
Yes
Source
data("idMSMStissueproject", package = "MetCirc") ## get all MS/MS spectra tissue <- tissue[tissue[, "id"] id_uniq <- unique(tissue[, "id"]) ## obtain precursor m/z from id_uniq prec_mz <- lapply(strsplit(as.character(id_uniq), split = "_"), "[", 1) |> unlist() |> as.numeric() ## obtain m/z from fragments per precursor m/z mz_l <- lapply(id_uniq, function(id_i) tissue[tissue[, "id"] == id_i, "mz"]) ## obtain corresponding intensity values int_l <- lapply(id_uniq, function(id_i) tissue[tissue[, "id"] == id_i, "intensity"]) ## order mz and intensity values int_l <- lapply(seq_along(int_l), function(i) int_l[[i]][order(mz_l[[i]])]) mz_l <- lapply(seq_along(mz_l), function(i) sort(mz_l[[i]])) ## obtain retention time by averaging all retention time values rt <- lapply(id_uniq, function(id_i) tissue[tissue[, "id"] == id_i, "rt"]) |> lapply(mean) |> unlist() ## create list of Spectra objects and concatenate sps_l <- lapply(seq_len(length(mz_l)), function(i) spd <- S4Vectors::DataFrame( name = as.character(i), rtime = rt[i], msLevel = 2L, precursorMz = prec_mz[i]) spd$mz <- list(mz_l[[i]]) spd$intensity <- list(int_l[[i]]) Spectra::Spectra(spd)) sps_tissue <- Reduce(c, sps_l) ## combine list of spectrum2 objects to MSpectra object, ## use SPL, LIM, ANT, STY for further analysis sps_tissue@metadata <- data.frame( compartmentTissue[, c("SPL", "LIM", "ANT", "STY")]) save(sps_tissue, file = "spectra.RData", compress = "xz")
Columns

Nothing inside this object was measured, so there is no column list, no counts and no fingerprint to compare it with. The file holds an S4 object this reader can name and not open, so none of its slots were reached. What is recorded is the file it lives in and which releases carry it.

Version history
VersionReleasedSizeChangeStored asConfidence
3.232026-04-28–Not comparedrda · xz
version 3 · 20 KB
degraded
3.222025-10-29–Not comparedrda · xz
version 3 · 20 KB
degraded
3.212025-04-15–Not comparedrda · xz
version 3 · 20 KB
degraded
3.202024-10-29–Not comparedrda · xz
version 3 · 20 KB
degraded
3.192024-04-30–Not comparedrda · xz
version 3 · 20 KB
degraded
3.182023-10-24–Not comparedrda · xz
version 3 · 20 KB
degraded
3.172023-04-25–Not comparedrda · xz
version 3 · 20 KB
degraded
3.162022-11-01––rda · xz
version 3 · 20 KB
degraded

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy