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
e698d45e
Commit
e698d45e
authored
Apr 18, 2018
by
Holger Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed output prefixing in limma workflow
parent
f62cfeac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
dge_workflow/limma/dge_limma.R
dge_workflow/limma/dge_limma.R
+11
-3
No files found.
dge_workflow/limma/dge_limma.R
View file @
e698d45e
...
...
@@ -48,7 +48,7 @@ designFormula = opts$design
assert
(
str_detect
(
designFormula
,
".*condition$"
))
results_prefix
=
if
(
str_length
(
opts
$
out
)
>
0
)
paste0
(
opts
$
out
,
"."
)
else
""
# used by add_prefix
results_prefix
=
if
(
str_length
(
opts
$
out
)
>
0
)
opts
$
out
else
""
# used by add_prefix
pcutoff
=
if
(
is.null
(
opts
$
pcutoff
))
NULL
else
as.numeric
(
opts
$
pcutoff
)
qcutoff
=
if
(
is.numeric
(
pcutoff
))
NULL
else
as.numeric
(
opts
$
qcutoff
)
...
...
@@ -68,14 +68,22 @@ vec_as_df(unlist(opts)) %>%
#' The working directory of the analysis was: `r getwd()`
## both batches combines
contrasts
=
read_tsv
(
contrasts_file
)
%T>%
{
print
(
kable
(
.
))}
expDesign
=
read_tsv
(
design_matrix_file
)
%T>%
glimpse
# countData = read_tsv(interp_from_env("../logms_inten_matrix_acc.txt")) %T>% glimpse
countData
=
read_tsv
(
count_matrix_file
)
%T>%
glimpse
names
(
countData
)[
1
]
=
"gene_id"
if
(
!
is.null
(
contrasts_file
))
{
contrasts
=
read_tsv
(
contrasts_file
)
%T>%
{
print
(
kable
(
.
))}
}
else
{
contrasts
=
select
(
expDesign
,
condition
)
%>%
distinct
%>%
merge
(
.
,
.
,
suffixes
=
c
(
"_1"
,
"_2"
),
by
=
NULL
)
%>%
filter
(
ac
(
condition_1
)
>
ac
(
condition_2
))
# write_tsv(contrasts, paste(resultsBase, "contrasts.txt"))
}
# zero-imputation is disabled here because this should be better implement per experiment
# countData %<>% mutate_if(is.numeric, funs(replace(., is.na(.), 0)))
...
...
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