GeneGA Error Message
0
0
Entering edit mode
@levasseurmaxence-8970
Last seen 3.5 years ago
Canada

I installed the GeneGA package but got an error message while trying the example: 

seqfile = system.file("sequence", "EGFP.fasta", package="GeneGA")
seq = unlist(getSequence(read.fasta(seqfile), as.string=TRUE))
GeneGA.result = GeneGA(sequence=seq, popSize=40, iters=100, crossoverRate=0.3, mutationChance=0.05, region=c(1,60))

This is the error message I get after the GeneGA.result:

The current generation is: 1 
Error in index02:index01 : argument of length 0

 

Someone else experienced a similar error while playing with the example (GeneGA Error Message). Does anyone know how to fix this error?

And here is my session Info. 

> sessionInfo()
R version 3.5.1 (2018-07-02)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252    LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C                           LC_TIME=English_United States.1252    
attached base packages:
[1] stats4    parallel  stats     graphics  grDevices utils     datasets  methods   base     
other attached packages:
 [1] GeneGA_1.32.0       hash_2.2.6          seqinr_3.4-5        bindrcpp_0.2.2      R.utils_2.7.0       R.oo_1.22.0         R.methodsS3_1.7.1  
 [8] Peptides_2.4        forcats_0.3.0       stringr_1.3.1       dplyr_0.7.8         purrr_0.2.5         readr_1.3.0         tidyr_0.8.2        
[15] tibble_1.4.2        ggplot2_3.1.0       tidyverse_1.2.1     UniProt.ws_2.22.0   RCurl_1.95-4.11     bitops_1.0-6        RSQLite_2.1.1      
[22] data.table_1.11.8   Biostrings_2.50.1   XVector_0.22.0      IRanges_2.16.0      S4Vectors_0.20.1    BiocGenerics_0.28.0

 

GeneGA • 532 views
ADD COMMENT

Login before adding your answer.

Traffic: 820 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