motif_counts_: motif enrichment analysis for a target library

View source: R/yz_motif_enrich_fjEdit202111.R View source: R/_old/drewplot.R View source: R/.yz_drewplot_202111.R

motif_counts_R Documentation

motif enrichment analysis for a target library

Description

count motif occurances in a target file (or character vector) of sequences, the frequency is normalized to a background library with the same 1-nt frequency but got randomized

Usage

motif_counts_(seqs, pwmlist)

Arguments

seqs

a DNA sequence file or a character vector of sequences

pwmlist

motifs of PWMartixList format

Examples

pwmlist="/wrk/zhu/test/motif_curation/curated_30N_motif_pwmlist_20211014.rds" %>% readRDS()
seqs="/wrk/wenchenjin/work/Chenjin1_1__ATI_ara.cell_1/pre_processed/cleaned/B8_20_Mock__root__conc_0nM__time_2h__30n.gz"
motif_count <- motif_counts_(seqs,pwmlist)

hbmcsysbio/hbmcbioR documentation built on April 14, 2022, 9:59 p.m.