Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bio334_spring2020_exam
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Can Ulutekin Alvarez
bio334_spring2020_exam
Commits
afdb945f
Commit
afdb945f
authored
May 07, 2020
by
Mark Robinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add 2 files
parent
12d0ff5d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
0 deletions
+49
-0
code/README.md
code/README.md
+3
-0
code/maybe_diffcyt_bug.R
code/maybe_diffcyt_bug.R
+46
-0
No files found.
code/README.md
0 → 100644
View file @
afdb945f
# Code
Save command-line scripts and shared R code here.
code/maybe_diffcyt_bug.R
0 → 100644
View file @
afdb945f
source
(
here
::
here
(
"code/my_diffcyt.R"
))
library
(
diffcyt
)
library
(
CATALYST
)
rdsdir
<-
here
::
here
(
"output"
)
sce
<-
readRDS
(
file.path
(
rdsdir
,
"sce_tumor_merged.rds"
))
(
ei
<-
metadata
(
sce
)
$
experiment_info
)
(
mm
<-
model.matrix
(
~
treatment
,
data
=
ei
))
da_res
<-
diffcyt
(
sce
,
design
=
mm
,
contrast
=
c
(
0
,
-1
),
analysis_type
=
"DA"
,
method_DA
=
"diffcyt-DA-voom"
,
clustering_to_use
=
"merging"
,
verbose
=
TRUE
)
assay
(
da_res
$
d_counts
)
# repeat after outlier removal
outliers
<-
c
(
"5__untreated"
,
"6_7__untreated"
)
sce_s
<-
filterSCE
(
sce
,
!
(
sample_id
%in%
outliers
))
(
ei
<-
metadata
(
sce_s
)
$
experiment_info
)
(
mm
<-
model.matrix
(
~
treatment
,
data
=
ei
))
da_res
<-
diffcyt
(
sce_s
,
design
=
mm
,
contrast
=
c
(
0
,
-1
),
analysis_type
=
"DA"
,
method_DA
=
"diffcyt-DA-voom"
,
clustering_to_use
=
"merging"
,
verbose
=
TRUE
)
z
<-
my_diffcyt
(
sce_s
,
design
=
mm
,
contrast
=
c
(
0
,
-1
),
analysis_type
=
"DA"
,
method_DA
=
"diffcyt-DA-voom"
,
clustering_to_use
=
"merging"
,
verbose
=
TRUE
)
table
(
cluster_ids
(
sce
,
"merging"
),
sce
$
sample_id
)
assay
(
z
)
table
(
cluster_ids
(
sce_s
,
"merging"
),
sce_s
$
sample_id
)
sessionInfo
()
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