isa_ID_find: Find IDs of nodes or properties

Description Usage Arguments Details Value See Also Examples

View source: R/isatools.R

Description

Find IDs of nodes or properties fullfilling specified criteria

Usage

1
isa_ID_find(x, node_pattern = NULL, value_pattern = NULL, prop_pattern = NULL)

Arguments

x

object of class isatab

node_pattern

return only nodes which match the given pattern

value_pattern

return only nodes which match one of the values

prop_pattern

return only nodes which match one of the properties

Details

Note: IDs are a thing internal to this R package. They are not imported from or exported to actual ISA-tab files. However, given that the node 'identifiers' (e.g. 'Sample Name') can be ambiguous, IDs are necessary to unambiguously identify a node.

Value

Character vector of IDs

See Also

isatab

Examples

1
2
3
4
5
6
file <- system.file('extdata', 
   'a_isatab.txt',
   package='isaeditor')
isa_a <- read_isa(file)
isa_ID_find(isa_a, node_pattern='.* Name')
isa_a[['ID34']]

isaeditor documentation built on Sept. 29, 2021, 9:08 a.m.