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

Are genotypes only numeric? Can they be categorical? #152

Open
ysc12451 opened this issue Sep 3, 2024 · 2 comments
Open

Are genotypes only numeric? Can they be categorical? #152

ysc12451 opened this issue Sep 3, 2024 · 2 comments

Comments

@ysc12451
Copy link

ysc12451 commented Sep 3, 2024

It seems that by default the genotypes are considered as numeric variables, like 0/0 as number 0, 0/1 as number 1, 1/1 as number 2. I am wondering whether tensorQTL can treat them as categorical variables (like factors) and run. Thanks!

@francois-a
Copy link
Collaborator

Genotypes need to be numeric. Can you describe the specific mapping you're trying to run?

@ysc12451
Copy link
Author

In my mapping case, the effect of genotype does not necessarily have a linear trend in 0-1-2. So treating them as categotical variables could be better.

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

2 participants