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

NaN values in some mQTLs parquet file #87

Open
ariadnacilleros opened this issue Feb 6, 2023 · 5 comments
Open

NaN values in some mQTLs parquet file #87

ariadnacilleros opened this issue Feb 6, 2023 · 5 comments

Comments

@ariadnacilleros
Copy link

ariadnacilleros commented Feb 6, 2023

Hi,

I have been conducting several nominal mappings with TensorQTL, and I have realized that, in all the chromosomes, there are a few mQTLs for which I got NaN statistics (p-value, slope and se). The variants don't have rare MAFs or a smaller amount of counts, do you have any idea why this could be happening? Here I paste a few of them.

Thanks!

image

@francois-a
Copy link
Collaborator

Hi, it could be due to missing values. Otherwise, are you able to share the inputs for these specific examples?

@ariadnacilleros
Copy link
Author

Hi,

I am sorry, but I am not able to share the input data, I only have the summary stats. But it seems to me that the problem is the SNP, although I am not sure if this would be due to missing data, as ma_samples and ma_counts are correct, are you suggesting that these SNP could be coded as NaN in some samples?

Thanks!

@Dongmeng-wang
Copy link

Hi,

I also got NaN for phenotypes with NA. Is it possible that tensorQTL can deal with the missing values of phenotypes? Thank you so much!

All the best,
Diana

@francois-a
Copy link
Collaborator

Without more information to reproduce this, the most likely reason for NaNs in the output are missing values. Missing genotypes are imputed to the mean, but missing phenotypes are not imputed since the best imputation strategy is likely data-specific. You'll need to impute/remove any missing phenotypes before running tensorQTL.

@ariadnacilleros
Copy link
Author

Hi François,

Thank you so much for the answer, we will take this into count.

Best,

Ariadna Cilleros

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

3 participants