Description Usage Arguments Examples
This will create a new sample or annotation column based on an old grouping and a list.
1 | define_grouping(x, basedOn, colname, newNames, what = "col")
|
x |
The BioData object |
basedOn |
the old grouping name |
colname |
the new grouping name |
newNames |
the list "with new_group_name" = c( "old Group Names" ) structure |
what |
create a sample ('col') or annotation ('row') grouping |
1 2 3 | # data is a BioData object with a sample group 'oldG' and the levels c( 1, 2, 3, 4)
define_grouping( data, 'oldG', 'newGrouping', list( 'A' = c( 1,4), B= c(2,3)), 'col')
# will create a 'newGrouping' column in the $samples table with the entries A and B
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.