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

A feature request: phenotype transformation and --include option #9

Open
jielab opened this issue May 26, 2021 · 0 comments
Open

A feature request: phenotype transformation and --include option #9

jielab opened this issue May 26, 2021 · 0 comments

Comments

@jielab
Copy link

jielab commented May 26, 2021

Hi, there:

This tool is really nice. However, I have difficulty to follow the scripts to run it.

First, my phenotype file is like below, from running ukbconv.
ICD

Can you please provide a script that could convert such a data into the format as below?
ID R198 R104 M512 L720 M8414 L031 K802 S662 K267
1 1 1 1 0 0 0 0 0 0
2 0 0 0 1 0 0 0 0 0_

Since there are ~20,000 ICD codes and 500,000 individuals, it might be too big to put all the codes in a single file. So, it would be necessary to have an option to specify a "phenotype inclusion file". For example, I might want to analyze the sub-tree for circulatory diseases, i.e., all ICD-codes starting with letter "I".

Please kindly let me know if that is doable.

Best regards,
Jie

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

1 participant