Question: Error in plot_AS_segfit
0
gravatar for hannanwong
28 days ago by
hannanwong0
hannanwong0 wrote:

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!

hapseg R • 68 views
ADD COMMENTlink modified 28 days ago by zx87549.4k • written 28 days ago by hannanwong0
0
gravatar for zx8754
28 days ago by
zx87549.4k
London
zx87549.4k wrote:

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 COMMENTlink written 28 days ago by zx87549.4k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1555 users visited in the last hour