vatlab / varianttools

software tool for the manipulation, annotation, selection, and analysis of variants in the context of next-gen sequencing analysis
https://vatlab.github.io/vat-docs/
GNU General Public License v3.0
31 stars 4 forks source link

vtools associate qualtitative phenotypes #91

Open fabiennejh opened 5 years ago

fabiennejh commented 5 years ago

Hello,

is it possible to use a qualitative phenotype in variant tools (with my own R test) ? I tried, but received the following error message :

Invalid (non-numeric) coding in phenotype/covariates values

Thank you for your answer ! best Fabienne

gaow commented 5 years ago

@fabiennejh it would be very helpful if you could provide a minimal working example to us, including a very small vtools project, your customized R test script and the command you used. Possibly start from the command you used? If it is your own R test we should not check if a test only works for case/ctrl data and throw that error ..

fabiennejh commented 5 years ago

Here is the command line I used. vtools associate RYR3_lowEXAC_SNP groupe_T4 --samples "groupe_T4 is not NULL" --discard_variants "%(NA) >0.40" -m "RTest CAST_order.R --phenotype.name 'groupe_T4' --MAF.filter 0.2 --MAF.grp 'all' --class.order 'MILD,MODERATE,SEVERE'" --group_by Gene_name --jobs 8

I tried to give you a copy of my vtools project, with essential data. I don't give you the Rscript, but it shoudn't be a problem because the error comes before running the R script if I understand correctly.

Best Fabienne

gaow commented 5 years ago

@fabiennejh I cannot unzip the file you uploaded. Could you verify you can download it, unzip and be able to run vtools command on it?

fabiennejh commented 5 years ago

It's not a real zip file. I added the .zip extension to be able to upload the file in Github. You only need to delete the extension.

gaow commented 5 years ago

We need the genotype database as well -- *.proj will not work.

fabiennejh commented 5 years ago

It's too big to load it here ....

fabiennejh commented 5 years ago

Here are the .proj and DB files RYR3_genotype.DB.gz RYR3.proj.gz

fabiennejh commented 4 years ago

Hello Did you solve the problem ? Best Fabienne