format_table | R Documentation |
Convert low/bad quality PSI values and convert event metadata as a first ID
column. Prepares input event/GE data for plotting. Calls convert_psi
.
format_table(x, qual = c("VLOW", "N", "LOW", "OK", "SOK"), expr = FALSE, counts = FALSE, trim_colnames = NULL, short_ids = FALSE)
x |
A data frame of event data as outputted by |
qual |
String indicating the minimun vast-tools quality score
for the PSI to be accepted. Defaults to |
expr |
Set to |
counts |
Set to |
trim_colnames |
String that must be searched for and trimmed at the end
of every sample column in x. Useful to trim the "-cRPKM" suffix from expression
tables. If no string must be trimmed, leave as |
short_ids |
Set to |
A data frame. If run with expr=FALSE
(default), each row is an
event, the first column (ID
) contains a concatenation of the event
metadata delimited by |, and there are two more columns per sample, with PSI
and quality scores values. If run with (expr=TRUE
), each row is a gene,
the ID
column contains the gene metadata, and there is one more column
per sample with the cRPKM value.
convert_psi
# For example input, see: psi format_table(psi) # For cRPKM crpkm format_table(crpkm, expr = TRUE) # For cRPKM with read counts and the "-cRPKM" suffix in sample columns: crpkm_counts format_table(crpkm_counts, expr = TRUE, counts = TRUE, trim_colnames = "-cRPKM") # To keep only event IDs/gene IDs as metadata: psi format_table(psi,short_ids = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.