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
b6d3a968
Commit
b6d3a968
authored
Mar 07, 2019
by
Lena Hersemann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imputation information are now added to the final limma results
parent
edabaa22
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
ms_workflow/ms_limma.R
ms_workflow/ms_limma.R
+21
-0
No files found.
ms_workflow/ms_limma.R
View file @
b6d3a968
...
...
@@ -163,6 +163,7 @@ expMatrix = countData %>%
# remove rows with rowSums == 0
# to remove non-zero rows slightly changes the results
all_rows
<-
expMatrix
%>%
nrow
()
expMatrix
<-
expMatrix
[
rowSums
(
expMatrix
)
>
0
,
]
non_zero_rows
<-
expMatrix
%>%
nrow
()
...
...
@@ -485,6 +486,26 @@ if(nrow(degs)>0){
#'
#'<br>
#'
imp_info
<-
file.path
(
ms_data_infos
,
"data_prep.imputation_info.txt"
)
if
(
file.exists
(
ident_info
))
{
imp
<-
read_tsv
(
imp_info
)
# extract which condition is reported in the de_results
d
<-
gather
(
imp
,
feature
,
value
,
-
intensity
)
%>%
filter
(
value
%in%
unique
(
deAnnot
$
condition_1
))
%$%
feature
%>%
unique
()
imp
<-
imp
[,
colnames
(
imp
)
%in%
c
(
"protein_ids"
,
"is_imputed"
,
d
)]
%>%
push_left
(
c
(
"protein_ids"
,
"is_imputed"
))
colnames
(
imp
)[
3
]
<-
"condition"
imp
%<>%
group_by
(
protein_ids
,
condition
)
%>%
count
(
is_imputed
)
%>%
select
(
-
n
)
deAnnot
%<>%
left_join
(
imp
%>%
rename
(
c1_imp
=
is_imputed
),
by
=
c
(
"protein_ids"
,
"condition_1"
=
"condition"
))
%>%
left_join
(
imp
%>%
rename
(
c2_imp
=
is_imputed
),
by
=
c
(
"protein_ids"
,
"condition_2"
=
"condition"
))
}
########################################################################################################################
#' ## Results & Discussion
...
...
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