I hope you can help me with a problem I'm having while processing my HiChip data using the positive poison model of MAPS. Specifically, I'm getting this error in the script MAPS_regression_and_peak_caller.r. The specific function that is failing is the line
fit <- vglm(count ~ logl + loggc + logm + logdist + logShortCount, family = pospoisson(), data = mm)
in the function pospoisson_regression
The error message I get is
Error in if (one.more) { : missing value where TRUE/FALSE needed
The error coming from VGAM vglm, and I think the data that MAPS is feeding to this function could be bad.
The error only occurs while trying to process chromosome chr1, and I've attached a simplified repro code here with the failing input file.
library(VGAM)
mm <- read.table("reg_raw.chr1.AllCellTypes_H3K27ac_withInput.30k.and.txt", header=T, sep="\t", stringsAsFactors=F)
fit <- vglm(count ~ logl + loggc + logm + logdist + logShortCount, family = pospoisson(), data = mm)
Error in if (one.more) { : missing value where TRUE/FALSE needed
I hope you can help me with a problem I'm having while processing my HiChip data using the positive poison model of MAPS. Specifically, I'm getting this error in the script
MAPS_regression_and_peak_caller.r
. The specific function that is failing is the linefit <- vglm(count ~ logl + loggc + logm + logdist + logShortCount, family = pospoisson(), data = mm)
in the function
pospoisson_regression
The error message I get is
Error in if (one.more) { : missing value where TRUE/FALSE needed
The error coming from VGAM vglm, and I think the data that MAPS is feeding to this function could be bad.The error only occurs while trying to process chromosome chr1, and I've attached a simplified repro code here with the failing input file.
reg_raw.chr1.AllCellTypes_H3K27ac_withInput.30k.and.txt
Here is my session info for R