get_foreground_df_to_motifs: Get filtered foreground data frame that its aligned sequences...

View source: R/get_foreground_df_to_motifs.R

get_foreground_df_to_motifsR Documentation

Get filtered foreground data frame that its aligned sequences with specific motif.

Description

Get filtered foreground data frame that its aligned sequences with specific motif.

Usage

get_foreground_df_to_motifs(
  foreground_sequences_mapped_to_motifs,
  foreground,
  foreground_df
)

Arguments

foreground_sequences_mapped_to_motifs

A list that consists of motifs and its corresponding aligned sequences.

foreground

A vector for aligned sequences.

foreground_df

A data frame from the initial foreground data frame.

Value

A data frame that its aligned sequences with specific motif.

Author(s)

Dongdong Zhan and Mengsha Tong

Examples

## The process needs to load data from PhosMap datasets stored into FTP server and perform large computation.
## It may take a few minutes.
if(FALSE){
    ftp_url <- "ftp://111.198.139.72:4000/pub/PhosMap_datasets/function_demo_data/get_foreground_df_to_motifs.RData"
    load_data <- load_data_with_ftp(ftp_url, 'RData')
    writeBin(load_data, "get_foreground_df_to_motifs.RData")
    load("get_foreground_df_to_motifs.RData")

    foreground_df_mapped_to_motifs <- get_foreground_df_to_motifs(
      foreground_sequences_mapped_to_motifs,
      foreground, foreground_df
    )
   head(foreground_df_mapped_to_motifs)
}



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