[adegenet-forum] length of 'dimnames' [1] not equal to array extent

Brian Simison bsimison at calacademy.org
Tue Apr 23 21:03:35 CEST 2019


I have tried to convert various format output by Stacks2 'populations'
script with no success. I have tried both structure and genepop formats and
continually get the cryptic error "length of 'dimnames' [1] not equal to
array extent"

In Rstudio in Win10 I run:
 >Trach <- read.genepop("populations.gen")

 Converting data from a Genepop .gen file to a genind object...

File description:  2_52, 2_53, 2_74, 4_15, 4_18, 4_39, 4_84, 5_17, 5_35,
5_61, 6_24, 6_49, 6_50, 6_88, ... (I deleted the middle of the file
description for space)
... 45, 474683_54, 474839_33, 474839_38, 474839_56, 476311_31, 476311_59,
476328_59, 477562_70, 477562_81, 479861_17
Warning: Error in <-: length of 'dimnames' [1] not equal to array extent
  206: rownames<-
  205: read.genepop
  204: import2genind
  203: <reactive:getData> [C:\Program
Files\R\R-3.5.1\library\adegenet\dapcServer/server.R#39]
  201: .func
  198: contextFunc
  197: env$runWith
  190: ctx$run
  189: self$.updateValue
  187: getData
  186: <reactive:getDapc> [C:\Program
Files\R\R-3.5.1\library\adegenet\dapcServer/server.R#222]
  184: .func
  181: contextFunc
  180: env$runWith
  173: ctx$run
  172: self$.updateValue
  170: getDapc
  169: renderPlot [C:\Program
Files\R\R-3.5.1\library\adegenet\dapcServer/server.R#248]
  167: func
  127: drawPlot
  113: <reactive:plotObj>
   97: drawReactive
   84: origRenderFunc
   83: output$scatterplot
    3: runApp
    2: .dapcServer
    1: adegenetServer
Warning: Error in <-: length of 'dimnames' [1] not equal to array extent
  101: <Anonymous>
Warning: Error in <-: length of 'dimnames' [1] not equal to array extent
  101: <Anonymous>
Warning: Error in <-: length of 'dimnames' [1] not equal to array extent
  101: <Anonymous>
Warning: Error in <-: length of 'dimnames' [1] not equal to array extent
  101: <Anonymous>

I have searched for this error and have failed to understand what
"Dimnames" are.

thank you in advance.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
W. Brian Simison, Ph.D.
Curator & Director of Comparative Genomics
California Academy of Sciences
55 Music Concourse Dr. SF, CA 94118
O:415.379.5297
M:415.310.1686
bsimison at calacademy.org
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/adegenet-forum/attachments/20190423/d3e324f3/attachment.html>


More information about the adegenet-forum mailing list