Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Araformatics group
Araformatics project
Commits
4837ad36
Commit
4837ad36
authored
Dec 06, 2021
by
Schoorlemmer, Joran
Browse files
Replace Diff_analysis.R added new binomtest mean
parent
5f1dc14c
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/Diff_analysis.R
View file @
4837ad36
...
...
@@ -7,7 +7,6 @@
# import
library
(
DESeq2
)
# Functions
run_analysis
<-
function
(
file_name
)
{
data
<-
read.table
(
file_name
,
row.names
=
1
,
header
=
TRUE
)
...
...
@@ -29,8 +28,8 @@ run_analysis <- function(file_name) {
# do glm test
dds
=
nbinomWaldTest
(
dds
)
res
=
results
(
dds
)
write.table
(
res
,
col.names
=
NA
,
row.names
=
T
,
file
=
paste
(
file_name
,
".tsv"
),
sep
=
"\t"
)
res
=
results
(
dds
,
lfcThreshold
=
1
,
altHypothesis
=
"greaterAbs"
)
write.table
(
res
,
col.names
=
NA
,
row.names
=
T
,
file
=
paste
(
file_name
,
".tsv"
,
collapse
=
""
,
sep
=
""
),
sep
=
"\t"
)
}
...
...
Write
Preview
Supports
Markdown
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