Skip to content

Commit fc755cd

Browse files
committed
omit na in mean and median calculations
1 parent 9046490 commit fc755cd

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: structToolbox
22
Type: Package
33
Title: Data processing & analysis tools for Metabolomics and other omics
4-
Version: 1.5.5
4+
Version: 1.5.6
55
Authors@R: c(
66
person(
77
c("Gavin","Rhys"),
@@ -116,7 +116,7 @@ Imports: ggplot2,
116116
sp,
117117
stats,
118118
utils
119-
RoxygenNote: 7.1.1
119+
RoxygenNote: 7.1.2
120120
Suggests: agricolae,
121121
BiocFileCache,
122122
BiocStyle,

R/fold_change_class.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ setMethod(f="model_apply",
245245
out=lapply(D2$data,function(x) {
246246
y1=x[D2$sample_meta[[M$factor_name]]==L[A]]
247247
y2=x[D2$sample_meta[[M$factor_name]]==L[B]]
248-
val=ci_delta_nu(y1,y2,alpha=1-M$conf_level,paired=M$paired)
248+
val=ci_delta_nu(na.omit(y1),na.omit(y2),alpha=1-M$conf_level,paired=M$paired)
249249
val=matrix(val,nrow=1,ncol=3)
250250
colnames(val)=c('median','lci','uci')
251251
return(val)
@@ -296,7 +296,7 @@ setMethod(f="model_apply",
296296
out=lapply(D2$data,function(x) {
297297
y1=x[D2$sample_meta[[M$factor_name]]==L[A]]
298298
y2=x[D2$sample_meta[[M$factor_name]]==L[B]]
299-
ret=ci.mean.bs(1-M$conf_level,y1,y2)
299+
ret=ci.mean.bs(1-M$conf_level,na.omit(y1),na.omit(y2))
300300
return(ret)
301301
})
302302

man/fold_change_int.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)