# Define a function that establishes bin borders for use with findInterval later
combineputativepairs <- function (chromosomes,outname)
{
putpairs = c()
for (chrom in chromosomes)
{
pairsfile = paste(outname,".",chrom,".pairs.bedpe",sep="")
if (file.exists(pairsfile)==FALSE){next}
if (length(readLines(pairsfile)) == 0){next}
putpairs = rbind(putpairs,read.table(pairsfile,header=FALSE,sep="\t"))
}
# return
return (putpairs)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.