Skip to content

Commit

Permalink
fix(dataProcessPlots): Remove duplicate log-transformation of intensity
Browse files Browse the repository at this point in the history
  • Loading branch information
tonywu1999 committed Sep 13, 2024
1 parent 9631641 commit e0974cc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions R/utils_dataProcessPlots.R
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,6 @@
## Adjust colnames to avoid repeating code
for (i in seq_along(data.list)) {
colnames(data.list[[i]]) = toupper(colnames(data.list[[i]]))
if ('INTENSITY' %in% colnames(data.list[[i]])){
data.list[[i]]$ABUNDANCE = log2(data.list[[i]]$INTENSITY)
}
setnames(data.list[[i]], c('LOGINTENSITIES', 'GROUP', 'PROTEIN',
'Protein', 'LOG2INTENSITY'),
c('ABUNDANCE', 'CONDITION', 'PROTEINNAME', 'PROTEINNAME',
Expand Down Expand Up @@ -1755,4 +1752,4 @@
if (address != FALSE) {
dev.off()
}
}
}

0 comments on commit e0974cc

Please sign in to comment.