pullTF: utility for working with multi-experiment results from ENCODE...

View source: R/pullTF.R

pullTFR Documentation

utility for working with multi-experiment results from ENCODE TFBS in opencravat

Description

utility for working with multi-experiment results from ENCODE TFBS in opencravat

Usage

pullTF(x, tf = "YY1")

Arguments

x

a properly filtered data.frame with the relevant columns

tf

character(1) symbol for TF as recorded by ENCODE

Note

The issue is that many TF experiments are recorded in a single excel spreadsheet cell. A column gives the TFs studied with semicolon delimiter, and other columns give the cell line, quality of result. These columns should be coupled with relevant variant-level metadata

Examples

## Not run: 
x = read.csv("IPF GWAS Variants - Variant.csv")
inds = grep("YY1", x$ENCODE.TFBS)
xyy = x[inds,]
dd = data.frame(t(apply(xyy[,19:23], 1, pullTF)))
hh = cbind(xyy, dd)
impactYY1 = hh[,c(1:10,43,54:58)]
write.csv(impactYY1, "encodeYY1.csv")

## End(Not run)

vjcitn/oc2bioc documentation built on Sept. 7, 2024, 10:23 a.m.