write_pwm_input: Create an input file for KSP's PWM mode

View source: R/write_phosphosites.R

write_pwm_inputR Documentation

Create an input file for KSP's PWM mode

Description

Creates an input file to use for prediction with KSP's position-weight matrix-based scoring tool. Wrapper around readr::write_tsv().

Usage

write_pwm_input(data, path, name_col, seq_col)

Arguments

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.

Value

Returns path that file was written to, invisibly.

Examples

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')

casblaauw/phosphocie documentation built on March 30, 2022, 8:28 p.m.