A set of function to install and access sager example data. Three data files are available: a TMT11 quantitation tsv file, a identification tsv file, both generated by sage, and three mzML files that contain the raw data used as input to sage.

The data were downloaded from the ProteomeXchange project PXD016766 and processed with sage version 0.10.0 and subset to reduce their size. See inst/scripts/make-data.R for details on how these data were generated and subset.

sagerCache()

sagerQuantData()

sagerIdData()

sagerMzMLData()

sagerAddData(which = c("quant", "id", "mzml"), cache = sagerCache())

sagerRemoveData(which = c("quant", "id", "mzml"), cache = sagerCache())

sagerAvailableData(which = c("quant", "id", "mzml"), cache = sagerCache())

Arguments

which

One or several of "quant", "id" or "mzml" specifying what data to download.

cache

Object of class BiocFileCache. Default for is the package's cache returned by sagerCache().

Functions

  • sagerMzMLData() returns the path to the cached mzML files.

  • sagerQuantData() returns the path to the cached quantitation tab-separated file.

  • sagerIdData() returns the path to the cached identifcation tab-separated file.

  • sagerAvailableData() checks if the data are available in the package cache.

  • sagerAddData(which, cache) checks if the resources are already available in the cache. If not, data are downloaded and added to the cache.

  • sagerRemoveData(which, cache) removes the cached resource.

  • sagerCache() returns the package's cache, an object of class BiocFileCache.

The data files are downloaded and cached by sagerAddData() are available on zenodo (10.5281/zenodo.7804639).

Update locally cached data

The sager data files will occasionally be updated or new ones added. These changes are documented in the NEWS.md file.

To update your local cache, you can either delete it (it's location can be found with bfccache(sagerCache())) to remove and add the data by running sagerRemoveData() and sagerAddData().

References

Examples


## Are data already available
sagerAvailableData()
#> quant    id  mzml 
#>  TRUE  TRUE  TRUE 

sagerAvailableData("id")
#>   id 
#> TRUE 

## Remove data from cache
sagerRemoveData("quant")

sagerAvailableData("quant")
#> quant 
#> FALSE 

## Add data (if not already available)
sagerAddData(c("id", "quant"))
#> 'id' already available.
#> Adding 'quant' to the package cache.

## Get the path to the data
sagerQuantData()
#> [1] "/github/home/.cache/R/sager/92fe0301bd0ba_quant.tsv"

sagerIdData()
#> [1] "/github/home/.cache/R/sager/92fe02655fa2c_results.sage.tsv"

sagerMzMLData()
#> [1] "/github/home/.cache/R/sager/subset_dq_00084_11cell_90min_hrMS2_A5.mzML" 
#> [2] "/github/home/.cache/R/sager/subset_dq_00086_11cell_90min_hrMS2_A9.mzML" 
#> [3] "/github/home/.cache/R/sager/subset_dq_00087_11cell_90min_hrMS2_A11.mzML"

## Data are stored in the package's cache
sagerCache()
#> class: BiocFileCache
#> bfccache: /github/home/.cache/R/sager
#> bfccount: 5
#> For more information see: bfcinfo() or bfcquery()