Skip to content

bwgs.cv:Error in geno_impute[1:5, 1:20] : subscript out of bounds #2

@Long-zhe

Description

@Long-zhe

Dear author, hello. Thank you very much for developing the BWGS package, which allows me, as a rookie, to easily conduct research related to genome selection breeding.When I use the bwgs.cv function in the BWGS package, the following error occurs:

Running BB iteration 1 ...
2021 BWGS  - Version 3.0.0 Release date: 25/09/2021
Start time:
[1] "2025-03-11 22:57:28 CST"

Number of common lines between geno and pheno
[1] 100
Number of markers after filtering
[1] 100  11
random pop size not applied
[1] 0

POPULATION SAMPLING METHOD
[1] "NULL"

Imputed by MNI.
Time of imputation by MNI (mins):
[1] 0
A part 5x20 of Imputed genotypic matrix:
Error in geno_impute[1:5, 1:20] : subscript out of bounds
In addition: Warning message:
In bwgs.cv(geno_1e6, pheno, geno.impute.method = "mni", predict.method = method,  :
  NAs introduced by coercion

I guess it's because the number of SNPs is too small, so the program can't calculate properly? Because when I increase the number of SNPs (after trying many times, the program can run successfully after about 25 SNPs). The program can run normally. Could you please help me check what caused this situation during your free time? Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions