We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 904fd0e commit 4c36723Copy full SHA for 4c36723
1 file changed
R/clean_DIANN.R
@@ -149,12 +149,9 @@
149
#' @return cleaned data.table
150
#' @noRd
151
.cleanDIANNCleanAndFilterData <- function(dn_input, quantificationColumn) {
152
- # Remove NH3 and H2O loss fragments
153
- dn_input <- dn_input[!grepl("NH3", FragmentIon)]
154
- dn_input <- dn_input[!grepl("H2O", FragmentIon)]
155
-
156
- # Remove rows with NA in quantification column
157
- dn_input <- na.omit(dn_input, cols = quantificationColumn)
+ # Remove NH3 and H2O loss fragments & remove rows with NA in quant column
+ dn_input <- dn_input[!grepl("NH3|H2O", FragmentIon) &
+ !is.na(get(quantificationColumn))]
158
159
return(dn_input)
160
}
0 commit comments