motif_data_frame_to_sequence: Convert data frame of motif to the sequence pattern

View source: R/motif_data_frame_to_sequence.R

motif_data_frame_to_sequenceR Documentation

Convert data frame of motif to the sequence pattern

Description

Convert data frame of motif to the sequence pattern

Usage

motif_data_frame_to_sequence(motif_data_frame, center, width)

Arguments

motif_data_frame

A data frame with two columns including amino acid and index on sequence with fixed length.

center

A character for center of k-mer.

width

A numeric for specific k-mer.

Value

A string for motif pattern

Author(s)

Dongdong Zhan and Mengsha Tong

Examples

## Not run: 
ftp_url <- "ftp://111.198.139.72:4000/pub/PhosMap_datasets/function_demo_data/motif_data_frame_to_sequence.RData"
load_data <- load_data_with_ftp(ftp_url, 'RData')
writeBin(load_data, "motif_data_frame_to_sequence.RData")
load("motif_data_frame_to_sequence.RData")

motif_pattern <- motif_data_frame_to_sequence(
  motif_coordinate_data_frame,
  center, width
)
head(motif_pattern)

## End(Not run)

ecnuzdd/PhosMap documentation built on Dec. 7, 2022, 4:09 a.m.