Skip to content

Commit dad5f52

Browse files
remove
1 parent 6abb543 commit dad5f52

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+562
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
Package: SCRABBLE
2+
Type: Package
3+
Title: Impute scRNAseq data method
4+
Version: 0.0.1
5+
Author: Tao Peng
6+
Maintainer: The package maintainer Tao Peng <software.github@gmail.com>
7+
Description: SCRABBLE imputes drop-out data by optimizing an objective function
8+
that consists of three terms. The first term ensures that imputed values for
9+
genes with nonzero expression remain as close to their original values as possible,
10+
thus minimizing unwanted bias towards expressed genes. The second term ensures the
11+
rank of the imputed data matrix to be as small as possible. The rationale is that
12+
we only expect a limited number of distinct cell types in the samples. The third term
13+
operates on the bulk RNA-Seq data. It ensures consistency between the average gene
14+
expression of the aggregated imputed data and the average gene expression of the bulk
15+
RNA-Seq data. We developed a convex optimization algorithm to minimize the objective function.
16+
License: GPL-3
17+
Encoding: UTF-8
18+
Depends: R(>= 3.3)
19+
LazyData: true
20+
Imports: Rcpp (>= 0.12.13), rARPACK, pracma, ggplot2, RColorBrewer,
21+
reshape2, gridExtra
22+
LinkingTo: Rcpp, RcppEigen, gridExtra
23+
RoxygenNote: 6.1.1
24+
Suggests: knitr,rmarkdown,BiocStyle
25+
VignetteBuilder: knitr
26+
Built: R 3.5.1; x86_64-redhat-linux-gnu; 2019-03-03 21:45:35 UTC; unix
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
scrabble Runs SCRABBLE
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#exportPattern("^[[:alpha:]]+")
2+
importFrom(Rcpp, evalCpp)
3+
useDynLib(SCRABBLE, .registration = TRUE)
4+
export(scrabble)
5+
export(plot_data)
6+
import(Rcpp)
7+
import(rARPACK)
8+
import(pracma)
9+
import(ggplot2)
10+
import(RColorBrewer)
11+
import(reshape2)
12+
import(gridExtra)
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# File share/R/nspackloader.R
2+
# Part of the R package, http://www.R-project.org
3+
#
4+
# Copyright (C) 1995-2012 The R Core Team
5+
#
6+
# This program is free software; you can redistribute it and/or modify
7+
# it under the terms of the GNU General Public License as published by
8+
# the Free Software Foundation; either version 2 of the License, or
9+
# (at your option) any later version.
10+
#
11+
# This program is distributed in the hope that it will be useful,
12+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
# GNU General Public License for more details.
15+
#
16+
# A copy of the GNU General Public License is available at
17+
# http://www.r-project.org/Licenses/
18+
19+
local({
20+
info <- loadingNamespaceInfo()
21+
pkg <- info$pkgname
22+
ns <- .getNamespace(as.name(pkg))
23+
if (is.null(ns))
24+
stop("cannot find namespace environment for ", pkg, domain = NA);
25+
dbbase <- file.path(info$libname, pkg, "R", pkg)
26+
lazyLoad(dbbase, ns, filter = function(n) n != ".__NAMESPACE__.")
27+
})
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
scrabble SCRABBLE
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2+
<html xmlns="http://www.w3.org/1999/xhtml">
3+
<head><title>R: Impute scRNAseq data method</title>
4+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5+
<link rel="stylesheet" type="text/css" href="R.css" />
6+
</head><body>
7+
<h1> Impute scRNAseq data method
8+
<img class="toplogo" src="../../../doc/html/Rlogo.svg" alt="[R logo]" />
9+
</h1>
10+
<hr/>
11+
<div style="text-align: center;">
12+
<a href="../../../doc/html/packages.html"><img class="arrow" src="../../../doc/html/left.jpg" alt="[Up]" /></a>
13+
<a href="../../../doc/html/index.html"><img class="arrow" src="../../../doc/html/up.jpg" alt="[Top]" /></a>
14+
</div><h2>Documentation for package &lsquo;SCRABBLE&rsquo; version 0.0.1</h2>
15+
16+
<ul><li><a href="../DESCRIPTION">DESCRIPTION file</a>.</li>
17+
</ul>
18+
19+
<h2>Help Pages</h2>
20+
21+
22+
<table width="100%">
23+
<tr><td style="width: 25%;"><a href="SCRABBLE.html">scrabble</a></td>
24+
<td>Runs SCRABBLE</td></tr>
25+
</table>
26+
</body></html>
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
body {
2+
background: white;
3+
color: black;
4+
}
5+
6+
a:link {
7+
background: white;
8+
color: blue;
9+
}
10+
11+
a:visited {
12+
background: white;
13+
color: rgb(50%, 0%, 50%);
14+
}
15+
16+
h1 {
17+
background: white;
18+
color: rgb(55%, 55%, 55%);
19+
font-family: monospace;
20+
font-size: x-large;
21+
text-align: center;
22+
}
23+
24+
h2 {
25+
background: white;
26+
color: rgb(40%, 40%, 40%);
27+
font-family: monospace;
28+
font-size: large;
29+
text-align: center;
30+
}
31+
32+
h3 {
33+
background: white;
34+
color: rgb(40%, 40%, 40%);
35+
font-family: monospace;
36+
font-size: large;
37+
}
38+
39+
h4 {
40+
background: white;
41+
color: rgb(40%, 40%, 40%);
42+
font-family: monospace;
43+
font-style: italic;
44+
font-size: large;
45+
}
46+
47+
h5 {
48+
background: white;
49+
color: rgb(40%, 40%, 40%);
50+
font-family: monospace;
51+
}
52+
53+
h6 {
54+
background: white;
55+
color: rgb(40%, 40%, 40%);
56+
font-family: monospace;
57+
font-style: italic;
58+
}
59+
60+
img.toplogo {
61+
width: 4em;
62+
vertical-align: middle;
63+
}
64+
65+
img.arrow {
66+
width: 30px;
67+
height: 30px;
68+
border: 0;
69+
}
70+
71+
span.acronym {
72+
font-size: small;
73+
}
74+
75+
span.env {
76+
font-family: monospace;
77+
}
78+
79+
span.file {
80+
font-family: monospace;
81+
}
82+
83+
span.option{
84+
font-family: monospace;
85+
}
86+
87+
span.pkg {
88+
font-weight: bold;
89+
}
90+
91+
span.samp{
92+
font-family: monospace;
93+
}
94+
95+
div.vignettes a:hover {
96+
background: rgb(85%, 85%, 85%);
97+
}
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Runs SCRABBLE</title>
2+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
3+
<link rel="stylesheet" type="text/css" href="R.css" />
4+
</head><body>
5+
6+
<table width="100%" summary="page for scrabble {SCRABBLE}"><tr><td>scrabble {SCRABBLE}</td><td style="text-align: right;">R Documentation</td></tr></table>
7+
8+
<h2>Runs SCRABBLE</h2>
9+
10+
<h3>Description</h3>
11+
12+
<p>SCRABBLE imputes drop-out data by optimizing an objective function that consists of three terms.
13+
The first term ensures that imputed values for genes with nonzero expression remain as close to their
14+
original values as possible, thus minimizing unwanted bias towards expressed genes. The second term ensures
15+
the rank of the imputed data matrix to be as small as possible. The rationale is that we only expect a
16+
limited number of distinct cell types in the samples. The third term operates on the bulk RNA-Seq data.
17+
It ensures consistency between the average gene expression of the aggregated imputed data and the
18+
average gene expression of the bulk RNA-Seq data. We developed 58 a convex optimization algorithm to minimize
19+
the objective function.
20+
</p>
21+
22+
23+
<h3>Usage</h3>
24+
25+
<pre>
26+
scrabble(data, parameter, nIter = 60, error_out_threshold = 1e-07,
27+
nIter_inner = 100, error_inner_threshold = 1e-05)
28+
</pre>
29+
30+
31+
<h3>Arguments</h3>
32+
33+
<table summary="R argblock">
34+
<tr valign="top"><td><code>data</code></td>
35+
<td>
36+
<p>the input data list. The input
37+
data is a list of two datasets, scRNAseq and bulk RNAseq.</p>
38+
</td></tr>
39+
<tr valign="top"><td><code>parameter</code></td>
40+
<td>
41+
<p>the vector of parameters. The first parameter is the value of alpha in the mathematical model
42+
, the second one is the value of beta in the mathematical model.</p>
43+
</td></tr>
44+
<tr valign="top"><td><code>nIter</code></td>
45+
<td>
46+
<p>the maximum iterations, the default is 60.</p>
47+
</td></tr>
48+
<tr valign="top"><td><code>error_out_threshold</code></td>
49+
<td>
50+
<p>the threshold of the error between the current imputed matrix and the previous one.
51+
Default is 1e-5.</p>
52+
</td></tr>
53+
<tr valign="top"><td><code>nIter_inner</code></td>
54+
<td>
55+
<p>the maximum interations of calculating the sub-optimization problem. Default is 60.</p>
56+
</td></tr>
57+
<tr valign="top"><td><code>error_inner_threshold</code></td>
58+
<td>
59+
<p>the threshold of the error between the current updated matrix and the previous one.
60+
Default is 1e-5.</p>
61+
</td></tr>
62+
</table>
63+
64+
65+
<h3>Value</h3>
66+
67+
<p>A data matrix with the same size of the input scRNAseq data
68+
</p>
69+
70+
71+
<h3>Examples</h3>
72+
73+
<pre>
74+
# Set up the parameter used in SCRABBLE
75+
parameter &lt;- c(1, 1e-6, 1e-4)
76+
77+
# Run SCRABLE
78+
result &lt;- scrabble(data,parameter = parameter)
79+
80+
</pre>
81+
82+
<hr /><div style="text-align: center;">[Package <em>SCRABBLE</em> version 0.0.1 <a href="00Index.html">Index</a>]</div>
83+
</body></html>
Binary file not shown.

R/SCRABBLE_0.0.1_R.Rcheck/00check.log

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
* using log directory ‘/mnt/isilon/tan_lab/pengt/Documents/Chop/SCRABBLE_github/SCRABBLE/R/SCRABBLE_0.0.1_R.Rcheck’
2+
* using R version 3.5.1 (2018-07-02)
3+
* using platform: x86_64-redhat-linux-gnu (64-bit)
4+
* using session charset: UTF-8
5+
* checking package directory ... ERROR
6+
package directory ‘/mnt/isilon/tan_lab/pengt/Documents/Chop/SCRABBLE_github/SCRABBLE/R/SCRABBLE_0.0.1_R.Rcheck/00_pkg_src/SCRABBLE_0.0.1_R’ does not exist
7+
* DONE
8+
Status: 1 ERROR
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
Package: SCRABBLE
2+
Type: Package
3+
Title: Impute scRNAseq data method
4+
Version: 0.0.1
5+
Author: Tao Peng
6+
Maintainer: The package maintainer Tao Peng <software.github@gmail.com>
7+
Description: SCRABBLE imputes drop-out data by optimizing an objective function
8+
that consists of three terms. The first term ensures that imputed values for
9+
genes with nonzero expression remain as close to their original values as possible,
10+
thus minimizing unwanted bias towards expressed genes. The second term ensures the
11+
rank of the imputed data matrix to be as small as possible. The rationale is that
12+
we only expect a limited number of distinct cell types in the samples. The third term
13+
operates on the bulk RNA-Seq data. It ensures consistency between the average gene
14+
expression of the aggregated imputed data and the average gene expression of the bulk
15+
RNA-Seq data. We developed a convex optimization algorithm to minimize the objective function.
16+
License: GPL-3
17+
Encoding: UTF-8
18+
Depends: R(>= 3.3)
19+
LazyData: true
20+
Imports: Rcpp (>= 0.12.13), rARPACK, pracma, ggplot2, RColorBrewer,
21+
reshape2, gridExtra
22+
LinkingTo: Rcpp, RcppEigen, gridExtra
23+
RoxygenNote: 6.1.1
24+
Suggests: knitr,rmarkdown,BiocStyle
25+
VignetteBuilder: knitr
26+
Built: R 3.5.1; x86_64-redhat-linux-gnu; 2019-03-04 01:23:28 UTC; unix
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
scrabble Runs SCRABBLE
Binary file not shown.
Binary file not shown.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#exportPattern("^[[:alpha:]]+")
2+
importFrom(Rcpp, evalCpp)
3+
useDynLib(SCRABBLE, .registration = TRUE)
4+
export(scrabble)
5+
export(plot_data)
6+
import(Rcpp)
7+
import(rARPACK)
8+
import(pracma)
9+
import(ggplot2)
10+
import(RColorBrewer)
11+
import(reshape2)
12+
import(gridExtra)
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# File share/R/nspackloader.R
2+
# Part of the R package, http://www.R-project.org
3+
#
4+
# Copyright (C) 1995-2012 The R Core Team
5+
#
6+
# This program is free software; you can redistribute it and/or modify
7+
# it under the terms of the GNU General Public License as published by
8+
# the Free Software Foundation; either version 2 of the License, or
9+
# (at your option) any later version.
10+
#
11+
# This program is distributed in the hope that it will be useful,
12+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
# GNU General Public License for more details.
15+
#
16+
# A copy of the GNU General Public License is available at
17+
# http://www.r-project.org/Licenses/
18+
19+
local({
20+
info <- loadingNamespaceInfo()
21+
pkg <- info$pkgname
22+
ns <- .getNamespace(as.name(pkg))
23+
if (is.null(ns))
24+
stop("cannot find namespace environment for ", pkg, domain = NA);
25+
dbbase <- file.path(info$libname, pkg, "R", pkg)
26+
lazyLoad(dbbase, ns, filter = function(n) n != ".__NAMESPACE__.")
27+
})
Binary file not shown.
Binary file not shown.
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
scrabble SCRABBLE
Binary file not shown.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2+
<html xmlns="http://www.w3.org/1999/xhtml">
3+
<head><title>R: Impute scRNAseq data method</title>
4+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5+
<link rel="stylesheet" type="text/css" href="R.css" />
6+
</head><body>
7+
<h1> Impute scRNAseq data method
8+
<img class="toplogo" src="../../../doc/html/Rlogo.svg" alt="[R logo]" />
9+
</h1>
10+
<hr/>
11+
<div style="text-align: center;">
12+
<a href="../../../doc/html/packages.html"><img class="arrow" src="../../../doc/html/left.jpg" alt="[Up]" /></a>
13+
<a href="../../../doc/html/index.html"><img class="arrow" src="../../../doc/html/up.jpg" alt="[Top]" /></a>
14+
</div><h2>Documentation for package &lsquo;SCRABBLE&rsquo; version 0.0.1</h2>
15+
16+
<ul><li><a href="../DESCRIPTION">DESCRIPTION file</a>.</li>
17+
</ul>
18+
19+
<h2>Help Pages</h2>
20+
21+
22+
<table width="100%">
23+
<tr><td style="width: 25%;"><a href="SCRABBLE.html">scrabble</a></td>
24+
<td>Runs SCRABBLE</td></tr>
25+
</table>
26+
</body></html>

0 commit comments

Comments
 (0)