getFilename: downloads files from aws storage and returns local filepath

Description Usage Arguments Value Author(s) See Also Examples

View source: R/tartare.R

Description

calls the query method of an ExperimentHub object query and returns the local filenames. Of note: for proprietary reasons, a file.link is set to the cached files. It seems that the New RawfileReader .Net library is only accepting files ending with raw. The overall file size is 285MB.

Usage

1
getFilename(eh, query = c("tartare"))

Arguments

eh

ExperimentHub object.

query

a query string, e.g., c('tartar', '20190710_003_PierceHeLaProteinDigestStd.raw')

Value

returns file(s) contained in the tartare package.

Author(s)

Christian Panse <cp@fgcz.ethz.ch>, 2019-10

See Also

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
library(ExperimentHub)
eh <- ExperimentHub()
query(eh, c('tartare'))

## Not run: 
(files <- getFilename(eh))
library(MsBackendRawFileReader)

be <- lapply(files, function(f){
if (grepl("mzXML$", f))
    backendInitialize(MsBackendMzR(), files = f)
else
    backendInitialize(MsBackendRawFileReader(), files = f, extra=FALSE)
})

## End(Not run)

## Not run: 
hfx.filename <- .query(eh, c('tartar', '20190710_003_PierceHeLaProteinDigestStd.raw'))
x <- .cnew ("Rawfile", hfx.filename)
x$GetInfoValues()

## End(Not run)

cpanse/tartare documentation built on Nov. 4, 2019, 9:14 a.m.