cpgcount {methylMnM} | R Documentation

## Call C programs to R.

### Description

Call C programs to R for calculate which CpG are contained in MRE-CpG.

### Usage

    cpgcount(data2, data3, cpg2, cpg3, datalength, cpglength,
    count=rep(0,cpglength))

### Arguments

`data2` | Start position of each MRE-CpG.
`data3` | End position of each MRE-CpG.
`cpg2` | Start position of each CpG.
`cpg3` | End position of each CpG.
`datalength` | The number of MRE-CpG.
`cpglength` | The number of MRE-CpG.
`count` | MRE-CpG count of each CpG.

### Value

MRE-CpG count of each CpG.

### Author(s)

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

### Examples

      cpg<-matrix( 1:800, nrow=400 )
      cpg[,2]<-cpg[,1]+2
      data<-cpg[3:100,]
      data[,1]<-data[,1]-1
      data[,2]<-data[,2]+1
      f <- cpgcount(data[,1], data[,2], cpg[,1], cpg[,2], length(data[,1]),
     length(cpg[,2]), count=rep(0,length(cpg[,2])))

[Package methylMnM version 1.32.0 Index]