Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
siRNA paper analysis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Siu, Pui Chung
siRNA paper analysis
Commits
ea8bbcc2
Commit
ea8bbcc2
authored
3 years ago
by
Siu, Pui Chung
Browse files
Options
Downloads
Patches
Plain Diff
included quality control and filtering
parent
db5b75e6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
R_script.R
+46
-0
46 additions, 0 deletions
R_script.R
with
46 additions
and
0 deletions
R_script.R
+
46
−
0
View file @
ea8bbcc2
...
...
@@ -33,3 +33,49 @@ table(seurat.combined$orig.ident)#track which sample originated from
##checkpt
save
(
seurat.combined
,
file
=
'seurat.combined.Rdata'
)
seurat.combined
=
get
(
load
(
file
=
'seurat.combined.Rdata'
))
#Quality control and making of violin plots
#reference from https://satijalab.org/seurat/archive/v3.0/pbmc3k_tutorial.html
seurat.combined
[[
"percent.mt"
]]
<-
PercentageFeatureSet
(
seurat.combined
,
pattern
=
"^MT-"
)
seurat.combined
[[
"percent.ribo"
]]
<-
PercentageFeatureSet
(
seurat.combined
,
pattern
=
"^RP"
)
plot1
<-
FeatureScatter
(
seurat.combined
,
feature1
=
"nCount_RNA"
,
feature2
=
"percent.mt"
)
plot2
<-
FeatureScatter
(
seurat.combined
,
feature1
=
"nCount_RNA"
,
feature2
=
"nFeature_RNA"
)
CombinePlots
(
plots
=
list
(
plot1
,
plot2
))
VlnPlot
(
seurat.combined
,
features
=
c
(
"percent.ribo"
,
"percent.mt"
),
ncol
=
2
)
VlnPlot
(
seurat.combined
,
features
=
c
(
"nFeature_RNA"
,
"nCount_RNA"
),
ncol
=
2
)
VlnPlot
(
seurat.combined
,
features
=
c
(
"percent.ribo"
,
"nCount_RNA"
),
ncol
=
2
)
#TODO: interpret violin plots to generate filtering parameters
# Each sample, from a total of 1359 naive and 683 SR1 cells, was
# first filtered to remove cells with low gene counts (naive, n = 92;
# SR1, n = 37) that arise from aborted sequencing, and gene
# expression was normalized between cells.
##due to unknown parameter for filtering, parameters used are based on
##https://blog.katastros.com/a?ID=af0c80dc-5f37-4a17-b7b4-31edb9e51c2b
filtered.seurat.combined
<-
subset
(
seurat.combined
,
subset
=
nFeature_RNA
>
200
&
nCount_RNA
>
1000
&
percent.mt
<
20
)
filtered.seurat.combined
table
(
filtered.seurat.combined
$
orig.ident
)
##checkpt
save
(
filtered.seurat.combined
,
file
=
'filtered.seurat.combined.Rdata'
)
filtered.seurat.combined
=
get
(
load
(
file
=
'filtered.seurat.combined.Rdata'
))
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment