#Demo run
# Input: sample dataset
library(MeinteR)
rm(list = ls())
#Reorder columns
re.sample <- reorderBed(sample, 1, 2, 3, 5, 4)
#Select site with |delta-beta|>0.5
bed.data <- re.sample[re.sample$score >= 0.50,]
#Core function calling
altSS <- findAltSplicing(bed.data)
ss <- findSpliceSites(bed.data, persim = 0.8, offset = 10)
pals <- findPals(bed.data)
quads <- findQuads(bed.data, offset = 50)
tfbs <-
findTFBS(
bed.data,
target = "all",
tf.ID = c("MA0107.1", "MA0098", "MA115.1", "MA0131.2")
)
ctfbs <-
findConservedTFBS(bed.data, known.conserved.tfbs.file = "~/Downloads/tfbsConsSites.txt.gz")
shapes <- findShapes(bed.data)
#Weight assignment
weights = list()
weights[["spls"]] = 1
weights[["ctfbs"]] = 1
weights[["tfbs"]] = 1
weights[["pals"]] = 1
weights[["quads"]] = 1
weights[["shapes"]] = 1
#Mappings to function lists
funList = list()
funList[["spls"]] = ss
funList[["altss"]] = altSS
funList[["tfbs"]] = tfbs
funList[["ctfbs"]] = ctfbs
funList[["pals"]] = pals
funList[["quads"]] = quads
funList[["shapes"]] = shapes
#Calculate genomic index
index <- meinter(re.sample, funList, weights)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.