Error in plot_AS_segfit
1
0
Entering edit mode
3.8 years ago
hannanwong • 0

Hi,

I am currently running HAPSEG v1.1.1 on R v3.4.4. There is this error:

Error in if (!is.na(loci.annot)) { : argument is of length zero

which seems to be coming from the PlotSnpAscn function. May I know what is causing this error and how to resolve it?

Thanks!

R HAPSEG • 657 views
ADD COMMENT
0
Entering edit mode
3.8 years ago
zx8754 11k

Error message is clear, we have no values in loci.annot, see this example:

loci.annot <- character()

length(loci.annot)
# [1] 0

!is.na(character())
# logical(0)

if( !is.na(character()) ) { "yes" } else { "no" }
# Error in if (!is.na(character())) { : argument is of length zero
ADD COMMENT

Login before adding your answer.

Traffic: 2911 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6