Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
N
ngs_tools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
15
Issues
15
List
Boards
Labels
Service Desk
Milestones
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
bioinfo
ngs_tools
Commits
3639fda3
Commit
3639fda3
authored
Jan 15, 2018
by
Lena Hersemann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed bug; cosmetics
parent
9440a74e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
sc_workflow/sc_quality_check.R
sc_workflow/sc_quality_check.R
+4
-5
No files found.
sc_workflow/sc_quality_check.R
View file @
3639fda3
...
@@ -13,7 +13,7 @@ Quality control and filtering of scRNAseq data
...
@@ -13,7 +13,7 @@ Quality control and filtering of scRNAseq data
Usage: sc_quality_check.R <folder_with_star_counts_matrices_and_design>
Usage: sc_quality_check.R <folder_with_star_counts_matrices_and_design>
'
'
# commandArgs <- function(x) c("metrices")
# commandArgs <- function(x) c("metrices
_subsetted
")
opts
=
docopt
(
doc
,
commandArgs
(
TRUE
))
opts
=
docopt
(
doc
,
commandArgs
(
TRUE
))
...
@@ -93,11 +93,10 @@ sce <- lapply(setNames(names(sce), names(sce)), function(x) {
...
@@ -93,11 +93,10 @@ sce <- lapply(setNames(names(sce), names(sce)), function(x) {
})
})
#'<br><br>
#'<br><br>
#' ## Check
for
sequencing saturation
#' ## Check sequencing saturation
#' The following saturation plot of the invidivudal cells is based on the sequencing depth of per cell as well as higher
#' The following saturation plot of the invidivudal cells is based on the sequencing depth of per cell as well as higher
#' and lower simulated sequencing depths. For this plot all features with a counts > 0 were taken into account.
#' and lower simulated sequencing depths. For this plot all features with a counts > 0 were taken into account.
lapply
(
setNames
(
names
(
sce
),
names
(
sce
)),
function
(
x
){
lapply
(
setNames
(
names
(
sce
),
names
(
sce
)),
function
(
x
){
x
=
"SC2"
dat
<-
readData
(
data
=
counts
(
sce
[[
x
]]),
factors
=
colData
(
sce
[[
x
]]))
dat
<-
readData
(
data
=
counts
(
sce
[[
x
]]),
factors
=
colData
(
sce
[[
x
]]))
mysaturation
=
dat
(
dat
,
k
=
0
,
ndepth
=
7
,
type
=
"saturation"
)
mysaturation
=
dat
(
dat
,
k
=
0
,
ndepth
=
7
,
type
=
"saturation"
)
sat_data
<-
dat2save
(
mysaturation
)
sat_data
<-
dat2save
(
mysaturation
)
...
@@ -117,7 +116,7 @@ lapply(setNames(names(sce), names(sce)), function(x){
...
@@ -117,7 +116,7 @@ lapply(setNames(names(sce), names(sce)), function(x){
#'<br><br>
#'<br><br>
#' ## Check
cell's library sizes
#' ## Check
library size
#' The library size is defined by the sum of all counts per cell and corresponds to the number of reads mapped to the reference genome
#' The library size is defined by the sum of all counts per cell and corresponds to the number of reads mapped to the reference genome
#' <br>
#' <br>
lapply
(
names
(
sce
),
function
(
x
){
lapply
(
names
(
sce
),
function
(
x
){
...
@@ -130,7 +129,7 @@ lapply(names(sce), function(x){
...
@@ -130,7 +129,7 @@ lapply(names(sce), function(x){
# grid.arrange(grobs = ., nrow = plot_rows, heights=unit(0.5, "npc"))
# grid.arrange(grobs = ., nrow = plot_rows, heights=unit(0.5, "npc"))
#' <br><br>
#' <br><br>
#' ## Check
cell's
number of expressed genes
#' ## Check number of expressed genes
#' The number of expressed genes corresponds to the number of genes per cell with an actual count (i.e. > 0)
#' The number of expressed genes corresponds to the number of genes per cell with an actual count (i.e. > 0)
#' <br>
#' <br>
lapply
(
names
(
sce
),
function
(
x
){
lapply
(
names
(
sce
),
function
(
x
){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment