View source: R/add_frag_info.R
| add_frag_info | R Documentation | 
given a vector of fragment identifiers like 160_2_35 or 80b_1C_35G-2,
encoded typically as lengthInBp_numberOfCpGs_GCpercent, and optionally a
database of spike-in sequences corresponding to those fragments, add those
columns to the source data (along with, if present in the database, other
metadata such as standard concentrations, GC fraction, etc.) and return i
an updated DataFrame.
add_frag_info(x, frag_grp = "frag_grp", spike = NULL)
x | 
 data.frame with a column of spike information (see above)  | 
frag_grp | 
 column name for the spike contig information (  | 
spike | 
 optional database of spike-in properties (none)  | 
the data.frame x, augmented with metadata columns
data(spike_cram_counts) data(spike, package="spiky") spike <- subset(spike, methylated == 1) add_frag_info(spike_cram_counts, spike=spike)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.