Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Perform numericalization": Error in count.temp[, 2] : subscript out of bounds #131

Open
PollyRosy opened this issue Jun 25, 2024 · 16 comments

Comments

@PollyRosy
Copy link

PollyRosy commented Jun 25, 2024

Hello. I encountered a very basic problem but I do not know how to fix it. I would appreciate it if you could help me. Thanks in advance. In my hapmap files, which converted from vcf, there are 2 nucleotide acids (bit=2?) and there are some multiallelic sites, but I removed them manually for now. I converted the vcf to Hapmap using the following way: https://github.com/wenkaiyan-kevin/vcf-to-hapmap.

I think there must be something wrong happening on data input?

myGAPIT <- GAPIT(Y=myacc,G=myG)
[1] "--------------------- Welcome to GAPIT ----------------------------"
[1] "MLM"
[1] "--------------------Processing traits----------------------------------"
[1] "Phenotype provided!"
[1] "The 1 model in all."
[1] "MLM"
[1] "GAPIT.DP in process..."
[1] "Converting genotype..."
[1] "Converting HapMap format to numerical under model of Middle"
[1] "Perform numericalization"
Error in count.temp[, 2] : subscript out of bounds

Screenshot from 2024-06-25 15-46-15
Screenshot from 2024-06-25 15-45-43

@yaoxkkkkk
Copy link

yaoxkkkkk commented Jul 10, 2024

I met the same error too, have you solved it?

I think it's version issue, when I use lower version everything goes well. @jiabowang Could you check this problem?

@PollyRosy
Copy link
Author

Instead of hapmap. I converted to ped and map using plink.

@Lightoscope
Copy link

Instead of hapmap. I converted to ped and map using plink.

This is what I did too.

@yaoxkkkkk
Copy link

yaoxkkkkk commented Jul 17, 2024

OK then. I think it would work when there only SNP exits because plink does not support INDEL, which I intend to keep in my GWAS analysis ;)

@jiabowang
Copy link
Owner

Hi all, I have fixed this error. Please try again with new GAPIT function.

@Lightoscope
Copy link

Hi all, I have fixed this error. Please try again with new GAPIT function.

Where is the new GAPIT function? The file at https://zzlab.net/GAPIT/gapit_functions.txt says it's version 3.4.

@jiabowang
Copy link
Owner

The function in zzlab has not been updated. Please try this one.

gapit_functions.txt

@jiabowang
Copy link
Owner

The version is not changed. The current version is 3.4.

@yaoxkkkkk
Copy link

The function in zzlab has not been updated. Please try this one.

gapit_functions.txt

Hi, I used this script, but it still output the error:
image

@jiabowang
Copy link
Owner

jiabowang commented Jul 20, 2024 via email

@ceciliabruno
Copy link

Hello,

I update GAPIT version 3.4.0 and introduce the gapit_functions.txt. Hovewer I still have a problem.

[1] "--------------------- Welcome to GAPIT ----------------------------"
[1] "MLM"
[1] "--------------------Processing traits----------------------------------"
[1] "Phenotype provided!"
[1] "The 1 model in all."
[1] "MLM"
[1] "GAPIT.DP in process..."
[1] "Converting genotype..."
[1] "Converting HapMap format to numerical under model of Middle"
[1] "Perform numericalization"
Error in count.temp[, 2] : subscript out of bounds

Thank you
Cecilia

@jiabowang
Copy link
Owner

@ceciliabruno Please check your HapMap file whether there are different symbols for missing genotype.

@ceciliabruno
Copy link

@ceciliabruno Please check your HapMap file whether there are different symbols for missing genotype.

Hello,
Thank you for your answer. I reviewed the HapMap file and I solved the problem. Currently, I have another problem with " Manhattan plot (Genowise)...".

[1] "Manhattan plot (Genomewise)..." Error in seq.default(1, nchr, by = ncycle) : invalid '(to - from)/by' In addition: Warning messages: 1: In rm(eig.L) : object 'eig.L' not found 2: In order(as.numeric(GWAS[, 3])) : NAs introduced by coercion 3: In matrix(as.numeric(as.matrix(GI.MP)), nrow(GI.MP), ncol(GI.MP)) : NAs introduced by coercion 4: In min(spd) : no non-missing arguments to min; returning Inf 5: In max(GI.MP[, 3]) : no non-missing arguments to max; returning -Inf 6: In max(GI.MP[, 1]) : no non-missing arguments to max; returning -Inf

 
Thank you
Cecilia

@jiabowang
Copy link
Owner

How many chromosomes are in your genotype file?

@ceciliabruno
Copy link

How many chromosomes are in your genotype file?

Hello,

There are 8 chromosomes in the genotype file.
Thank you
Cecilia

@jiabowang
Copy link
Owner

@ceciliabruno
Please check your genotype file or you can sent it with me.
I can help with checking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants