README.md

JUN2

Travis build status GitHub repository: https://github.com/jr2339/JUN2 Travis link: https://travis-ci.com/github/jr2339/JUN2/builds

The goal of JUN2 is to provides functionality for my package. These functions are only used for my CS599 classes.

Installation

You can install the released version of JUN2 from CRAN with:

install.packages("JUN2")

And the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("jr2339/JUN2")

Example

This is a basic example which shows you how to solve a common problem:

library(data.table)
library(JUN2)
## basic example code
data(neuroblastoma, package="neuroblastoma")
pro.dt <- data.table(neuroblastoma[["profiles"]])
one.sequence <- pro.dt[profile.id=="4" & chromosome=="2"]
(result<-BINSEG(one.sequence$logratio,100))
##change points
[1] 1 2 5 8 10 11 12 13 14 15 16 17 18 20 22 23 24 30 31 33 34 35 36 40 41 42 43 44 46 47 48 49 50 52 54 55 57 59 65 66 69 73 82 84 85 86 87 93 96 98 99 100
$est.signal
 [1] 0.4499261697 0.4499261697 0.3634660304 0.3634660304 0.3634660304 0.2961005761 0.2961005761
 [8] 0.2961005761 0.3807994840 0.3807994840 0.3043119045 0.3091155683 0.2758618508 0.2858990709
[15] 0.3582211184 0.2997826818 0.3802373766 0.4794695805 0.4897558074 0.4897558074 0.3577267154
[22] 0.3577267154 0.3605113038 0.4765022157 0.3707656096 0.3707656096 0.3707656096 0.3707656096
[29] 0.3707656096 0.3707656096 0.4085832170 0.2989008306 0.2989008306 0.3431072685 0.2761201605
[36] 0.2814086557 0.3657002995 0.3657002995 0.3657002995 0.3657002995 0.2988656928 0.1293830683
[43] -0.0020103088 0.0302685970 0.1564482488 0.1564482488 0.1358897168 -0.0326277768 -0.0305658006
[50] -0.0056892830 -0.0032683171 -0.0032683171 0.1155780410 0.1155780410 0.0153446020 -0.0097150717
[57] -0.0097150717 -0.0235840647 -0.0235840647 0.0097491143 0.0097491143 0.0097491143 0.0097491143
[64] 0.0097491143 0.0097491143 -0.0550483167 -0.0336827107 -0.0336827107 - 0.0336827107 -0.0970328745
[71] -0.0970328745 -0.0970328745 -0.0970328745 0.0317127344 0.0317127344  0.0317127344 0.0317127344
[78] 0.0317127344 0.0317127344 0.0317127344 0.0317127344 0.0317127344 - 0.0458424159 -0.0458424159
[85] -0.1253161075 -0.0569848338 -0.0255485950 0.0238149339 0.0238149339 0.0238149339 0.0238149339
[92] 0.0238149339 0.0238149339 -0.0428092422 -0.0428092422 -0.0428092422 -0.0004623655 -0.0004623655
[99] -0.0309512195 0.0110809129
$est.means
[1] 0.4499261697 0.3634660304 0.2961005761 0.3807994840 0.3043119045 0.3091155683 0.2758618508
[8] 0.2858990709 0.3582211184 0.2997826818 0.3802373766 0.4794695805 0.4897558074 0.3577267154
[15] 0.3605113038 0.4765022157 0.3707656096 0.4085832170 0.2989008306 0.3431072685 0.2761201605
[22] 0.2814086557 0.3657002995 0.2988656928 0.1293830683 -0.0020103088 0.0302685970 0.1564482488
[29] 0.1358897168 -0.0326277768 -0.0305658006 -0.0056892830 -0.0032683171 0.1155780410 0.0153446020
[36] -0.0097150717 -0.0235840647 0.0097491143 -0.0550483167 -0.0336827107 -0.0970328745 0.0317127344
[43] -0.0458424159 -0.1253161075 -0.0569848338 -0.0255485950 0.0238149339 -0.0428092422 -0.0004623655
[50] -0.0309512195 0.0110809129


jr2339/JUN2 documentation built on Jan. 1, 2021, 7:10 a.m.