Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Strand Lab
sc-TissueMapper
Commits
e11be2da
Commit
e11be2da
authored
Feb 27, 2019
by
Gervaise Henry
🤠
Browse files
Update load to handel cellranger v3 and different species/references
parent
c13c6967
Changes
2
Hide whitespace changes
Inline
Side-by-side
r.scripts/sc-TissueMapper_RUN.R
View file @
e11be2da
...
...
@@ -25,7 +25,7 @@ project.name="PdPbPc"
scFolders
()
sc10x
<-
scLoad
(
p
=
project.name
)
sc10x
<-
scLoad
(
p
=
project.name
,
cellranger
=
2
,
ref
=
"GRCh38"
)
lg
=
500
hg
=
3000
...
...
r.scripts/sc-TissueMapper_functions.R
View file @
e11be2da
...
...
@@ -23,7 +23,7 @@ scFolders <- function(){
}
scLoad
<-
function
(
p
,
mc
=
3
,
mg
=
200
,
sub
=
FALSE
){
scLoad
<-
function
(
p
,
mc
=
3
,
mg
=
200
,
sub
=
FALSE
,
cellranger
=
3
,
ref
=
"GRCh38"
){
#Load and prefilter filtered_gene_bc_matrices_mex output from cellranger
#Inputs:
...
...
@@ -37,9 +37,17 @@ scLoad <- function(p,mc=3,mg=200,sub=FALSE){
#Load filtered_gene_bc_matrices_mex output from cellranger
if
(
sub
==
FALSE
){
sc10x.data
<-
Read10X
(
data.dir
=
"./analysis/DATA/10x/filtered_gene_bc_matrices_mex/GRCh38/"
)
if
(
cellranger
==
2
){
sc10x.data
<-
Read10X
(
data.dir
=
paste0
(
"./analysis/DATA/10x/filtered_gene_bc_matrices_mex/"
,
ref
,
"/"
))
}
else
{
sc10x.data
<-
Read10X
(
data.dir
=
paste0
(
"./analysis/DATA/10x/filtered_feature_bc_matrix/"
))
}
}
else
{
sc10x.data
<-
Read10X
(
data.dir
=
paste0
(
"./analysis/DATA/"
,
p
,
"/10x/filtered_gene_bc_matrices_mex/GRCh38/"
))
if
(
cellranger
==
2
){
sc10x.data
<-
Read10X
(
data.dir
=
paste0
(
"./analysis/DATA/"
,
p
,
"/10x/filtered_gene_bc_matrices_mex/GRCh38/"
))
}
else
{
sc10x.data
<-
Read10X
(
data.dir
=
paste0
(
"./analysis/DATA/"
,
p
,
"/10x/filtered_feature_bc_matrix/"
))
}
}
sc10x
<-
new
(
"seurat"
,
raw.data
=
sc10x.data
)
...
...
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