Samples-class: 'Samples' and 'SamplesSummary' objects

Description Details Browsing Constructor Author(s) References See Also Examples

Description

Classes and methods to handle the Samples resource.

Details

In general samples are the result of demultiplexing and are thought as the holding the input data for an App. One example of data within a Samples resource are the FASTQ files.

Browsing

listSamples(x, projectId, ...) lists all the available samples associated with a particular project. It returns a small summary for each existing sample.

x

is an AppAuth object.

projectId

the ID of the project we want to explore.

...

Parameters supported by the REST API, specified as name = value. For example, listSamples(x, projectId = "1", Limit = 2)

listSamples(x, ...)

x

is an Projects object.

...

Parameters supported by the REST API.

Constructor

Samples(): Instantiates an empty Samples object. Same as new("Samples").

Samples(x, id): x is an AppAuth object. id is either and integer or a character string storing an integer. id can have length larger that 1.

Samples(x): x is an SamplesSummary object.

Author(s)

Adrian Alexa

References

https://developer.basespace.illumina.com/docs/content/documentation/rest-api/api-reference

See Also

AppAuth and Projects.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
data(aAuth)

## list all the available projects and select one
p <- Projects(listProjects(aAuth, Limit = 1), simplify = TRUE)
p

## list the samples available in this project
allS <- listSamples(aAuth, projectId = Id(p))

##  we can call listSamples() directly using 'p'
identical(allS, listSamples(p))


oneS <- listSamples(aAuth, projectId = Id(p), Limit = 1)
oneS
Samples(oneS) # list with one Samples object
Samples(oneS, simplify = TRUE) # Samples object

BaseSpaceR documentation built on Nov. 8, 2020, 5:12 p.m.