Description Usage Arguments Author(s) Source Examples
Assosiate each ChIP enrinchement region with the closest peak within a bound defined by the user
1 | geneAssociation(bedData, geneList, bounds, n = FALSE)
|
bedData |
three column data.frame |
geneList |
a data.frame loaded without a header from the refseq gene data base |
bounds |
c(A,B,C,D) Region 1 = (tss-A,tss+B) Region 2 = (ess-C ess+D) |
n |
Number of nodes to use. |
Alexander Griffith griffita@gmail.com
https://github.com/alexjgriffith/mulcal
1 2 3 4 5 | fileLocation="~/Dropbox/UTX-Alex/jan/"
bedData<-read.delim(paste(fileLocation,"combined_sorted.bed",sep=""),header=0)
geneList<-read.delim(paste(fileLocation,"hg19.RefSeqGenes.csv",sep=""))
genes<-geneAssociation(bedData,geneList, c(50000,0,0,0))
write.table(cbind(bedData,unlist(t(lapply(genes, function(x) {if(identical(x,character(0))){"None"} else{x}})))) ,"combined_tagged_genes.bed" ,col.names=FALSE,row.names=FALSE,quote=FALSE,sep="\t")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.