View source: R/write_phosphosites.R
write_pwm_input | R Documentation |
Creates an input file to use for prediction with
KSP's position-weight matrix-based scoring tool.
Wrapper around readr::write_tsv()
.
write_pwm_input(data, path, name_col, seq_col)
data |
Data frame in long format, containing gene names and sequence windows. |
path |
Path to write the file to, including file name and extension. |
name_col |
Name of the column that contains gene names. |
seq_col |
Name of the column that contains sequence windows. |
Returns path that file was written to, invisibly.
kinsub_path <- system.file('extdata', 'Kinase_Substrate_Dataset_head', package = 'phosphocie') kinsub <- read_kinsub(kinsub_path) tmp <- tempfile() write_pwm_input(kinsub, tmp, name_col = 'gene', seq_col = 'fragment_15')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.