Package DPBBM. September 29, 2016

Similar documents
Package mixphm. July 23, 2015

Package semisup. March 10, Version Title Semi-Supervised Mixture Model

Package texteffect. November 27, 2017

Package RCA. R topics documented: February 29, 2016

Package Combine. R topics documented: September 4, Type Package Title Game-Theoretic Probability Combination Version 1.

Package bisect. April 16, 2018

Package mederrrank. R topics documented: July 8, 2015

Package StVAR. February 11, 2017

Package hbm. February 20, 2015

Package GLDreg. February 28, 2017

Package sspse. August 26, 2018

Package CatEncoders. March 8, 2017

Package LCMCR. R topics documented: July 8, 2017

Package misclassglm. September 3, 2016

Package mmeta. R topics documented: March 28, 2017

Package ArrayBin. February 19, 2015

Package OptimaRegion

Package cgh. R topics documented: February 19, 2015

Package NNLM. June 18, 2018

Package nfca. February 20, 2015

Package glmmml. R topics documented: March 25, Encoding UTF-8 Version Date Title Generalized Linear Models with Clustering

Package Rambo. February 19, 2015

Package dirmcmc. R topics documented: February 27, 2017

Package gibbs.met. February 19, 2015

Package beast. March 16, 2018

Package rankdist. April 8, 2018

Package gee. June 29, 2015

Package GenSA. R topics documented: January 17, Type Package Title Generalized Simulated Annealing Version 1.1.

Package EMC. February 19, 2015

Package clusterpower

The GLMMGibbs Package

Package SSLASSO. August 28, 2018

Package BayesMetaSeq

Package TBSSurvival. January 5, 2017

Package spatialtaildep

Package TANDEM. R topics documented: June 15, Type Package

Package MixSim. April 29, 2017

Package naivebayes. R topics documented: January 3, Type Package. Title High Performance Implementation of the Naive Bayes Algorithm

Package XMRF. June 25, 2015

Package rknn. June 9, 2015

Package BayesCR. September 11, 2017

Semiparametric Mixed Effecs with Hierarchical DP Mixture

Package r2d2. February 20, 2015

Package lhs. R topics documented: January 4, 2018

Package pnmtrem. February 20, Index 9

Package Bergm. R topics documented: September 25, Type Package

Package libstabler. June 1, 2017

Package arulesnbminer

Package stockr. June 14, 2018

Package CoImp. August 8, 2016

Package Mondrian. R topics documented: March 4, Type Package

Package CSclone. November 12, 2016

Package SSRA. August 22, 2016

Package SparseFactorAnalysis

Package manet. September 19, 2017

Package ssd. February 20, Index 5

Package mcemglm. November 29, 2015

Package CoClust. December 17, 2017

Package HMRFBayesHiC

Package swcrtdesign. February 12, 2018

Package DTRlearn. April 6, 2018

Package treedater. R topics documented: May 4, Type Package

Package robustreg. R topics documented: April 27, Version Date Title Robust Regression Functions

Package assortnet. January 18, 2016

Package PRISMA. May 27, 2018

Clustering Relational Data using the Infinite Relational Model

Package mrm. December 27, 2016

Package sigqc. June 13, 2018

Package StagedChoiceSplineMix

Package JBTools. R topics documented: June 2, 2015

Package hergm. R topics documented: January 10, Version Date

Package bayescl. April 14, 2017

Package PTE. October 10, 2017

Package intccr. September 12, 2017

Package hsiccca. February 20, 2015

Package binomlogit. February 19, 2015

Package areaplot. October 18, 2017

Package pcapa. September 16, 2016

Package r.jive. R topics documented: April 12, Type Package

Package simed. November 27, 2017

Package svmpath. R topics documented: August 30, Title The SVM Path Algorithm Date Version Author Trevor Hastie

Package anidom. July 25, 2017

Package GADAG. April 11, 2017

Package RAMP. May 25, 2017

Package sfc. August 29, 2016

Package LVGP. November 14, 2018

Package sure. September 19, 2017

Package ccapp. March 7, 2016

Package mwa. R topics documented: February 24, Type Package

The GSM Package. August 9, 2007

Package datasets.load

Package TROM. August 29, 2016

Package BKPC. March 13, 2018

Package conclust. August 15, 2016

Package sglr. February 20, 2015

Package weco. May 4, 2018

Package bingat. R topics documented: July 5, Type Package Title Binary Graph Analysis Tools Version 1.3 Date

Package sensory. R topics documented: February 23, Type Package

Package GCAI.bias. February 19, 2015

Package ClusterBootstrap

Transcription:

Type Package Title Dirichlet Process Beta-Binomial Mixture Version 0.2.5 Date 2016-09-21 Author Lin Zhang Package DPBBM September 29, 2016 Maintainer Lin Zhang <lin.zhang@cumt.edu.cn> Depends R (>= 3.1.0) Imports tmvtnorm, VGAM, gplots, CEoptim Beta-binomial Mixture Model is used to infer the pattern from count data. It can be used for clustering of RNA methylation sequencing data. License GPL (>= 2) NeedsCompilation no Repository CRAN Date/Publication 2016-09-29 08:02:30 R topics documented: DPBBM-package...................................... 1 bbm_data_generate..................................... 2 BCubed_metric....................................... 3 dpbbm_mc_iterations.................................... 4 Index 7 DPBBM-package DPBBM This package is developed for the beta-binomial mixture model based clustering 1

2 bbm_data_generate Package: DPBBM Type: Package Version: 1.0.1 Date: 2016-06-26 License: GPL-2 Coming soon! # Please check the main function of the package?dpbbm_mc_iterations bbm_data_generate bbm_data_generate Usage This is to generate the simulation data based on Beta-bionomial mixture model bbm_data_generate(s=3, G=50, K=3, prob=rep(1,times=3), alpha_band=c(2,6), beta_band=c(2,6), nb_mu=100,nb_size=0.2, plotf = FALSE, max_cor=0.5) Arguments S G K prob alpha_band beta_band nb_mu nb_size Number of samples in the simulated data Number of sites in the simulated data Number of clusters that exist in the simulated data the cluster weight for each cluster the region used to generate the parameter of beta distribution alpha the region used to generate the parameter of beta distribution beta alternative parametrization via mean for Negative Binomial distribution target for number of successful trials, or dispersion parameter (the shape parameter of the gamma mixing distribution) for Negative binomial distrition. Must be strictly positive, need not be integer.

BCubed_metric 3 plotf max_cor option for whether plot the generated data according to clusters or not The maximized correlation allowed for the simulated data, which used to guarantee the data is not highly correlated. Value The Dirichlet Process based beta-binomial mixture model clustering The function returns simulation data generated based on beta binomial mixture model Author(s) Lin Zhang, PhD <lin.zhang@cumt.edu.cn> Reference coming soon! set.seed(123455) S <- 4 G <- 100 K <- 3 nb_mu <- 100 nb_size <- 0.8 prob <- c(1,1,1) mat <- bbm_data_generate(s=s,g=g,k=k,prob=prob,alpha_band=c(2,6),beta_band=c(2,6), nb_mu=nb_mu,nb_size=nb_size, plotf = TRUE, max_cor=0.5) table(mat$gamma) pie(mat$gamma) id <- order(mat$gamma); c <- mat$gamma[id] mat_ratio <- (mat$k+1)/(mat$n+1); heatmap(mat_ratio[id,], Rowv = NA, Colv = NA, scale="none", RowSideColors=as.character(c), xlab = "4 samples", ylab="100 RNA methylation sites") BCubed_metric BCubed_metric This is to evaluate the clustering method with Bcubed F sore. Usage BCubed_metric(L, C, alpha)

4 dpbbm_mc_iterations Arguments L C alpha real label of classes classification label of classes drawn by clustering method F metric parameter which used to average precision and recall The clustering evaluation method based on Bcubed F metric. Value The function returns Bcubed F score of the clustering method. The higher the value is, the better performance the clustering method can get. Author(s) Lin Zhang, PhD <lin.zhang@cumt.edu.cn> Reference coming soon! L <- c(1,1,2,1,1,2,2) C <- c(2,2,1,2,2,1,1) alpha <- 0.5 Bcubed_score <- BCubed_metric(L, C, alpha) Bcubed_score dpbbm_mc_iterations dpbbm_mc_iterations This is the Markov Chain Monte Carlo iterations for DPBBM Usage dpbbm_mc_iterations(x, size.x, m = 1, max_iter = 2000, a = 0.1, b = 1, tau = 1, sig_alpha = 25/9, sig_beta = 25/9, tau.method = "auto", debug = FALSE)

dpbbm_mc_iterations 5 Arguments x size.x m max_iter a b tau sig_alpha sig_beta tau.method debug a matrix of k for clustering, referring to IP reads in m6a seq data a matrix of n for clustering, referring to the summation of IP reads and input reads in m6a seq data a value indicating the auxiliary clusters used in DPBBM maximized iterations in DPBBM Hyperparameter a for tau Hyperparameter b for tau Prior for tau variation for parameter alpha of beta distribution variation for parameter beta of beta distribution tau.method should be set to "auto" or "stable", refer to tau for detail description. whether DPBBM print the debug info or not. Default: FALSE Value The Dirichlet Process based beta-binomial mixture model clustering The function returns the cluster label withdrawn by DPBBM Author(s) Lin Zhang, PhD <lin.zhang@cumt.edu.cn> Reference coming soon! # generate a simulated dataset set.seed(123455) S <- 4 G <- 100 K <- 3 nb_mu <- 100 nb_size <- 0.8 prob <- c(1,1,1) mat <- bbm_data_generate(s=s,g=g,k=k,prob=prob,alpha_band=c(2,6),beta_band=c(2,6), nb_mu=nb_mu,nb_size=nb_size, plotf = FALSE, max_cor=0.5) # check generated data id <- order(mat$gamma); c <- mat$gamma[id] mat_ratio <- (mat$k+1)/(mat$n+1); heatmap(mat_ratio[id,], Rowv = NA, Colv = NA, scale="none", RowSideColors=as.character(c),

6 dpbbm_mc_iterations xlab = "4 samples", ylab="100 RNA methylation sites") ## Run the DPBBM result. This step takes a really long time. ## You are suggested to check the pre-prepared example for a quick start F=system.file("extdata", "DPBBM_example.html", package="dpbbm") browseurl(url=f) ## Alternatively # cluster_label <- dpbbm_mc_iterations(mat$k, mat$n) # # Show the clustering result. # table(cluster_label) # pie(table(mat$gamma)) # # # Compare the clustering result with the true clustering IDs. # id <- order(mat$gamma); # c <- cluster_label # r <- rainbow(3, start = 0, end = 0.3) # mat_ratio <- (mat$k+1)/(mat$n+1); # heatmap(mat_ratio[id,], Rowv = NA, Colv = NA, scale="none", # RowSideColors = as.character(cluster_label[id]), # margins = c(3,25))

Index Topic statistical Inference bbm_data_generate, 2 BCubed_metric, 3 dpbbm_mc_iterations, 4 bbm_data_generate, 2 BCubed_metric, 3 DPBBM (DPBBM-package), 1 DPBBM-package, 1 dpbbm_mc_iterations, 4 7