calculatecount1: Call C programs to R.

Description Usage Arguments Value Author(s) Examples

View source: R/calculatecount1.R

Description

Call C programs to R for calculate MRE-seq "+" direction count of each bin.

Usage

1
2
calculatecount1(data2, data3, cpg2, cpg3, datalength, cpglength,
 count=rep(0,cpglength))

Arguments

data2

Start position of each tag.

data3

End position of each tag.

cpg2

Start position of each bin.

cpg3

End position of each bin.

datalength

The number of tags

cpglength

The number of bins

count

Count of MRE-seq "+" direction of each bin.

Value

Count of MRE-seq "+" direction of each bin.

Author(s)

Yan Zhou, Bo Zhang, Nan Lin, BaoXue Zhang and Ting Wang

Examples

1
2
3
4
5
6
  data<-matrix( 1:400, nrow=200 )
  cpg<-matrix( 1:40, nrow=20)
  cpg[,1]<-seq(0,380,length=20)
  cpg[,2]<-seq(20,400,length=20)
  f <- calculatecount1(data[,1], data[,2], cpg[,1], cpg[,2], length(data[,1]),
 length(cpg[,2]), count=rep(0,length(cpg[,2])))

methylMnM documentation built on Nov. 8, 2020, 6:47 p.m.