redirect.gds | R Documentation |
Change how a gds object ascribes row and column names by changing the paths node of a gds file. Although a bit laborious, the row and column information is not preserved inside a node which contains data. Thusly during accession the row and column names are attributed after data has been accessed.
redirect.gds(gds, rownames, colnames)
gds |
|
rownames |
Character string that points to named part of supplied gds that corresponds to rownames. e.g. "fData/Target_ID". Default = "fData/Probe_ID" |
colnames |
Character string that points to names part of supplied gds that corresponds to colnames. e.g. "pData/Sample_ID". Default = "pData/barcode" |
This function is particularly important within many functions inside bigmelon and may lead to downstream errors if the row and column names are not correctly specified. If data is read in through es2gds the path nodex should be correctly set up and all downstream analysis will carry out as normal. Will fail noisily if given a pathway that does not exist.
Changes the gdsn.class node named "paths" to supplied rownames and colnames within supplied gds.class object.
Tyler J. Gorrie-Stone Who to contact: <t.gorrie-stone@qmul.ac.uk>
add.gdsn
, app2gds
, es2gds
data(melon)
e <- es2gds(melon, "melon.gds") # Create gds object
redirect.gds(e, rownames = "fData/TargetID", colnames = "pData/sampleID")
# Deleting Temp files
closefn.gds(e)
unlink("melon.gds")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.