Browse code

updated the qcReport

Divyagash authored on 15/10/2018 11:08:10
Showing 1 changed files
... ...
@@ -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
 }
Browse code

Removed dependency on dplyr

Divyagash authored on 20/03/2018 20:15:55
Showing 1 changed files
... ...
@@ -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
 }
Browse code

added additional option in cpgDensity function for small data sets

Divyagash authored on 20/03/2018 19:13:40
Showing 1 changed files
... ...
@@ -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
 }
Browse code

updated the man file for cpgDensity function

Divyagash authored on 19/03/2018 03:22:03
Showing 1 changed files
... ...
@@ -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
 }
Browse code

Updated according to second review

Divyagash authored on 09/02/2018 22:42:04
Showing 1 changed files
... ...
@@ -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.}
Browse code

Updated the files according to the review

Divyagash authored on 06/02/2018 16:16:57
Showing 1 changed files
... ...
@@ -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.}
Browse code

Updated the package based on review comments.

Divyagash authored on 30/01/2018 16:00:41
Showing 1 changed files
... ...
@@ -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
 }
Browse code

Updated the extdata files to be compatible with new HDF5Array package

Divyagash authored on 23/01/2018 17:52:01
Showing 1 changed files
... ...
@@ -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
 }
Browse code

Updated the examples with bismark data

Divyagash authored on 18/09/2017 00:25:55
Showing 1 changed files
... ...
@@ -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
 }
Browse code

Updated according to BiocCheck

Divyagash authored on 23/05/2017 01:08:18
Showing 1 changed files
... ...
@@ -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
 }
Browse code

added genomic build as an input for the functions

Divyagash authored on 18/05/2017 02:47:33
Showing 1 changed files
... ...
@@ -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
 }
Browse code

Added examples

Divyagash authored on 28/04/2017 21:46:39
Showing 1 changed files
... ...
@@ -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
 }
Browse code

Updated according to R CMD check

Divyagash authored on 25/04/2017 15:11:11
Showing 1 changed files
... ...
@@ -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
 }
Browse code

Added functions for the pheno Data of the bs object

Divyagash authored on 28/03/2017 15:08:04
Showing 1 changed files
... ...
@@ -4,7 +4,7 @@
4 4
 \alias{cpgDensity}
5 5
 \title{Provides Coverage metrics in the repeat masker region}
6 6
 \usage{
7
-cpgDensity(bs, organism, windowLength = 100)
7
+cpgDensity(bs, organism, windowLength = 1000)
8 8
 }
9 9
 \arguments{
10 10
 \item{bs}{bsseq object}
Browse code

Added the density

Divyagash authored on 08/03/2017 17:48:37
Showing 1 changed files
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
+}