This function allows reading proteomics meta-data from sdrf file, as they are provided on https://github.com/bigbio/proteomics-sample-metadata. A data.frame containing all annotation data will be returned. To stay conform with the (non-obligatory) recommendations, columnnames are shown as lower caps.
readSdrf(
fi,
chCol = "auto",
urlPrefix = "github",
silent = FALSE,
callFrom = NULL,
debug = FALSE
)
This function returns the content of sdrf-file as data.frame (or NULL
if the corresponding file was not found)
(character) main input; may be full path or url to the file with meta-annotation. If a short project-name is given,
it will be searched based at the location of urlPrefix
(character, length=1) optional checking of column-names
(character, length=1) prefix to add to search when no complete path or url is given on fi
, defaults to proteomics-metadata-standard on github
(logical) suppress messages
(character) allows easier tracking of messages produced
(logical) display additional messages for debugging
The packages utils and wrMisc must be installed.
Please note that reading sdrf files (if not provided as local copy) will take a few seconds, depending on the responsiveness of github.
This function only handles the main reading of sdrf data and some diagnostic checks.
For mining sdrf data please look at replicateStructure
and readSampleMetaData
.
readSampleMetaData
, replicateStructure
,
## This may take a few sconds...
sdrf001819 <- readSdrf("PXD001819")
str(sdrf001819)
Run the code above in your browser using DataLab