... | ... |
@@ -29,7 +29,7 @@ of CpGs observed in certain base pair long region. |
29 | 29 |
} |
30 | 30 |
\examples{ |
31 | 31 |
library(BSgenome.Hsapiens.NCBI.GRCh38) |
32 |
-directory <- system.file("extdata/bismark_data",package='scmeth') |
|
32 |
+directory <- system.file("extdata/bismark_data", package='scmeth') |
|
33 | 33 |
bs <- HDF5Array::loadHDF5SummarizedExperiment(directory) |
34 |
-cpgDensity(bs,Hsapiens,1000,small=TRUE) |
|
34 |
+cpgDensity(bs, Hsapiens, 1000, small=TRUE) |
|
35 | 35 |
} |
... | ... |
@@ -31,6 +31,5 @@ of CpGs observed in certain base pair long region. |
31 | 31 |
library(BSgenome.Hsapiens.NCBI.GRCh38) |
32 | 32 |
directory <- system.file("extdata/bismark_data",package='scmeth') |
33 | 33 |
bs <- HDF5Array::loadHDF5SummarizedExperiment(directory) |
34 |
-memory.limit(size=300) |
|
35 | 34 |
cpgDensity(bs,Hsapiens,1000,small=TRUE) |
36 | 35 |
} |
... | ... |
@@ -5,7 +5,7 @@ |
5 | 5 |
\title{Provides Coverage by the CpG density. CpG Density is defined as the number |
6 | 6 |
of CpGs observed in certain base pair long region.} |
7 | 7 |
\usage{ |
8 |
-cpgDensity(bs, organism, windowLength = 1000) |
|
8 |
+cpgDensity(bs, organism, windowLength = 1000, small = FALSE) |
|
9 | 9 |
} |
10 | 10 |
\arguments{ |
11 | 11 |
\item{bs}{bsseq object} |
... | ... |
@@ -13,7 +13,11 @@ cpgDensity(bs, organism, windowLength = 1000) |
13 | 13 |
\item{organism}{scientific name of the organism of interest, |
14 | 14 |
e.g. Mmusculus or Hsapiens} |
15 | 15 |
|
16 |
-\item{windowLength}{Length of the window to calculate the density |
|
16 |
+\item{windowLength}{Length of the window to calculate the density} |
|
17 |
+ |
|
18 |
+\item{small}{Indicator for a small dataset, cpg density is calculated more |
|
19 |
+memory efficiently for large dataset but for small dataset a different quicker |
|
20 |
+method is used |
|
17 | 21 |
Default value for window length is 1000 basepairs.} |
18 | 22 |
} |
19 | 23 |
\value{ |
... | ... |
@@ -28,5 +32,5 @@ library(BSgenome.Hsapiens.NCBI.GRCh38) |
28 | 32 |
directory <- system.file("extdata/bismark_data",package='scmeth') |
29 | 33 |
bs <- HDF5Array::loadHDF5SummarizedExperiment(directory) |
30 | 34 |
memory.limit(size=300) |
31 |
-cpgDensity(bs,Hsapiens,1000) |
|
35 |
+cpgDensity(bs,Hsapiens,1000,small=TRUE) |
|
32 | 36 |
} |
... | ... |
@@ -27,5 +27,6 @@ of CpGs observed in certain base pair long region. |
27 | 27 |
library(BSgenome.Hsapiens.NCBI.GRCh38) |
28 | 28 |
directory <- system.file("extdata/bismark_data",package='scmeth') |
29 | 29 |
bs <- HDF5Array::loadHDF5SummarizedExperiment(directory) |
30 |
+memory.limit(size=300) |
|
30 | 31 |
cpgDensity(bs,Hsapiens,1000) |
31 | 32 |
} |
... | ... |
@@ -11,7 +11,7 @@ cpgDensity(bs, organism, windowLength = 1000) |
11 | 11 |
\item{bs}{bsseq object} |
12 | 12 |
|
13 | 13 |
\item{organism}{scientific name of the organism of interest, |
14 |
-e.g. Mus musculus or Homo sapiens} |
|
14 |
+e.g. Mmusculus or Hsapiens} |
|
15 | 15 |
|
16 | 16 |
\item{windowLength}{Length of the window to calculate the density |
17 | 17 |
Default value for window length is 1000 basepairs.} |
... | ... |
@@ -11,7 +11,7 @@ cpgDensity(bs, organism, windowLength = 1000) |
11 | 11 |
\item{bs}{bsseq object} |
12 | 12 |
|
13 | 13 |
\item{organism}{scientific name of the organism of interest, |
14 |
-i.e. Mus musculus or Homo sapiens} |
|
14 |
+e.g. Mus musculus or Homo sapiens} |
|
15 | 15 |
|
16 | 16 |
\item{windowLength}{Length of the window to calculate the density |
17 | 17 |
Default value for window length is 1000 basepairs.} |
... | ... |
@@ -2,7 +2,8 @@ |
2 | 2 |
% Please edit documentation in R/cpgDensity.R |
3 | 3 |
\name{cpgDensity} |
4 | 4 |
\alias{cpgDensity} |
5 |
-\title{Provides Coverage metrics in the repeat masker region} |
|
5 |
+\title{Provides Coverage by the CpG density. CpG Density is defined as the number |
|
6 |
+of CpGs observed in certain base pair long region.} |
|
6 | 7 |
\usage{ |
7 | 8 |
cpgDensity(bs, organism, windowLength = 1000) |
8 | 9 |
} |
... | ... |
@@ -12,17 +13,19 @@ cpgDensity(bs, organism, windowLength = 1000) |
12 | 13 |
\item{organism}{scientific name of the organism of interest, |
13 | 14 |
i.e. Mus musculus or Homo sapiens} |
14 | 15 |
|
15 |
-\item{windowLength}{Length of the window to calculate the density} |
|
16 |
+\item{windowLength}{Length of the window to calculate the density |
|
17 |
+Default value for window length is 1000 basepairs.} |
|
16 | 18 |
} |
17 | 19 |
\value{ |
18 | 20 |
Data frame with sample name and coverage in repeat masker regions |
19 | 21 |
} |
20 | 22 |
\description{ |
21 |
-Provides Coverage metrics in the repeat masker region |
|
23 |
+Provides Coverage by the CpG density. CpG Density is defined as the number |
|
24 |
+of CpGs observed in certain base pair long region. |
|
22 | 25 |
} |
23 | 26 |
\examples{ |
24 | 27 |
library(BSgenome.Hsapiens.NCBI.GRCh38) |
25 |
-directory<-system.file("extdata/bismark_data",package='scmeth') |
|
26 |
-bs<-HDF5Array::loadHDF5SummarizedExperiment(directory) |
|
28 |
+directory <- system.file("extdata/bismark_data",package='scmeth') |
|
29 |
+bs <- HDF5Array::loadHDF5SummarizedExperiment(directory) |
|
27 | 30 |
cpgDensity(bs,Hsapiens,1000) |
28 | 31 |
} |
... | ... |
@@ -23,6 +23,6 @@ Provides Coverage metrics in the repeat masker region |
23 | 23 |
\examples{ |
24 | 24 |
library(BSgenome.Hsapiens.NCBI.GRCh38) |
25 | 25 |
directory<-system.file("extdata/bismark_data",package='scmeth') |
26 |
-bs<-SummarizedExperiment::loadHDF5SummarizedExperiment(directory) |
|
26 |
+bs<-HDF5Array::loadHDF5SummarizedExperiment(directory) |
|
27 | 27 |
cpgDensity(bs,Hsapiens,1000) |
28 | 28 |
} |
... | ... |
@@ -21,7 +21,8 @@ Data frame with sample name and coverage in repeat masker regions |
21 | 21 |
Provides Coverage metrics in the repeat masker region |
22 | 22 |
} |
23 | 23 |
\examples{ |
24 |
-library(BSgenome.Mmusculus.UCSC.mm10) |
|
25 |
-load(system.file("extdata",'bsObject.rda',package='scmeth')) |
|
26 |
-cpgDensity(bs,Mmusculus,1000) |
|
24 |
+library(BSgenome.Hsapiens.NCBI.GRCh38) |
|
25 |
+directory<-system.file("extdata/bismark_data",package='scmeth') |
|
26 |
+bs<-SummarizedExperiment::loadHDF5SummarizedExperiment(directory) |
|
27 |
+cpgDensity(bs,Hsapiens,1000) |
|
27 | 28 |
} |
... | ... |
@@ -9,7 +9,8 @@ cpgDensity(bs, organism, windowLength = 1000) |
9 | 9 |
\arguments{ |
10 | 10 |
\item{bs}{bsseq object} |
11 | 11 |
|
12 |
-\item{organism}{scientific name of the organism of interest, i.e. Mus musculus or Homo sapiens} |
|
12 |
+\item{organism}{scientific name of the organism of interest, |
|
13 |
+i.e. Mus musculus or Homo sapiens} |
|
13 | 14 |
|
14 | 15 |
\item{windowLength}{Length of the window to calculate the density} |
15 | 16 |
} |
... | ... |
@@ -20,6 +20,7 @@ Data frame with sample name and coverage in repeat masker regions |
20 | 20 |
Provides Coverage metrics in the repeat masker region |
21 | 21 |
} |
22 | 22 |
\examples{ |
23 |
+library(BSgenome.Mmusculus.UCSC.mm10) |
|
23 | 24 |
load(system.file("extdata",'bsObject.rda',package='scmeth')) |
24 |
-cpgDensity(bs,'Mus musculus',1000) |
|
25 |
+cpgDensity(bs,Mmusculus,1000) |
|
25 | 26 |
} |
... | ... |
@@ -20,5 +20,6 @@ Data frame with sample name and coverage in repeat masker regions |
20 | 20 |
Provides Coverage metrics in the repeat masker region |
21 | 21 |
} |
22 | 22 |
\examples{ |
23 |
-cpgDensity(bsseqObject,'Mus musculus',1000) |
|
23 |
+load(system.file("extdata",'bsObject.rda',package='scmeth')) |
|
24 |
+cpgDensity(bs,'Mus musculus',1000) |
|
24 | 25 |
} |
... | ... |
@@ -11,7 +11,7 @@ cpgDensity(bs, organism, windowLength = 1000) |
11 | 11 |
|
12 | 12 |
\item{organism}{scientific name of the organism of interest, i.e. Mus musculus or Homo sapiens} |
13 | 13 |
|
14 |
-\item{genome}{reference alignment, i.e. mm10 or hg38} |
|
14 |
+\item{windowLength}{Length of the window to calculate the density} |
|
15 | 15 |
} |
16 | 16 |
\value{ |
17 | 17 |
Data frame with sample name and coverage in repeat masker regions |
... | ... |
@@ -20,5 +20,5 @@ Data frame with sample name and coverage in repeat masker regions |
20 | 20 |
Provides Coverage metrics in the repeat masker region |
21 | 21 |
} |
22 | 22 |
\examples{ |
23 |
-repMask(bsseqObject,'Mus musculus','mm10') |
|
23 |
+cpgDensity(bsseqObject,'Mus musculus',1000) |
|
24 | 24 |
} |
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,24 @@ |
1 |
+% Generated by roxygen2: do not edit by hand |
|
2 |
+% Please edit documentation in R/cpgDensity.R |
|
3 |
+\name{cpgDensity} |
|
4 |
+\alias{cpgDensity} |
|
5 |
+\title{Provides Coverage metrics in the repeat masker region} |
|
6 |
+\usage{ |
|
7 |
+cpgDensity(bs, organism, windowLength = 100) |
|
8 |
+} |
|
9 |
+\arguments{ |
|
10 |
+\item{bs}{bsseq object} |
|
11 |
+ |
|
12 |
+\item{organism}{scientific name of the organism of interest, i.e. Mus musculus or Homo sapiens} |
|
13 |
+ |
|
14 |
+\item{genome}{reference alignment, i.e. mm10 or hg38} |
|
15 |
+} |
|
16 |
+\value{ |
|
17 |
+Data frame with sample name and coverage in repeat masker regions |
|
18 |
+} |
|
19 |
+\description{ |
|
20 |
+Provides Coverage metrics in the repeat masker region |
|
21 |
+} |
|
22 |
+\examples{ |
|
23 |
+repMask(bsseqObject,'Mus musculus','mm10') |
|
24 |
+} |