samplesByProtocol.Rd
Get samples that match the protocol
samplesByProtocol(s, protocolName, caseSensitive = FALSE)
s | samples, e.g. output of samples(project) |
---|---|
protocolName, | string name of the protocol |
caseSensitive, | logical indicatinh whether the protocol match should be case sensitive |
a subset of samples that match the protocol
projectConfig = system.file("extdata", "example_peps-master", "example_piface", "project_config.yaml", package = "BiocProject") p = Project(file = projectConfig)#>samplesByProtocol(samples(p), "PROTO2")#> sample_name protocol data_source SRR Sample_geo_accession #> 1: sample3 proto2 SRA SRR5210398 GSM2471249 #> read1 #> 1: /Users/mstolarczyk/Uczelnia/UVA/code/BiocProject/inst/extdata/example_peps-master/example_piface/SRR5210398_1.fastq.gz #> read2 #> 1: /Users/mstolarczyk/Uczelnia/UVA/code/BiocProject/inst/extdata/example_peps-master/example_piface/SRR5210398_2.fastq.gz