EPACTS icon indicating copy to clipboard operation
EPACTS copied to clipboard

Phenotype values

Open ArianaHC opened this issue 4 years ago • 6 comments

Hello everyone,

I have been trying to run a group-wise burden test, but I'm getting the same error over and over again:

epacts group --vcf PPP_new_bial.vcf.gz --ped PPP.ped --max-maf 0.001 --groupf trunc.grp --pheno DISEASE --test skat --skat-o --out trunc.skat --run 2

ERROR: Phenotypes has only one or less unique values (2)

I have tried changing my ped file phenotype code from 1/2 to 0/1 and I've made sure that it's tab delimited. Does anyone have any idea how to fix this?

ArianaHC avatar Jun 10 '21 11:06 ArianaHC

I'm guessing you need to replace DISEASE with the column name of your phenotype.

jonathonl avatar Jun 10 '21 13:06 jonathonl

I'm guessing you need to replace DISEASE with the column name of your phenotype.

I have named the column for the phenotype DISEASE, but I've tried changing it to other things and it doesn't seem to solve the problem.

Thanks for the suggestion though.

ArianaHC avatar Jun 10 '21 15:06 ArianaHC

Can you provide the first line of your ped file head -n1 PPP.ped and the full log output from your failed run? Does the vcf file and ped file contain the same set of samples?

jonathonl avatar Jun 10 '21 15:06 jonathonl

This is the first line of my ped file:

$ head -n 1 PPP.ped
#FID	IID	PID	MID	SEX	DISEASE

And the full log is in fact really short:

ERROR: Phenotypes has only one or less unique values (2) at /app/software/EPACTS/3.3.2-foss-2016b/bin/epacts.pm line 276, <PED> line 1103.

There are more samples in the vcf file than in the ped file. Should I extract into another vcf file only the samples I want to analyse instead?

Thanks again for the help

ArianaHC avatar Jun 10 '21 16:06 ArianaHC

No, subsetting the VCF is not necessary. I'm not sure what's going on. Can you test with --vcf data/1000G_exome_chr20_example_softFiltered.calls.vcf.gz --ped data/1000G_dummy_pheno.ped? If it runs with the test data, then my only thought is to check for extra whitespace or carriage returns that could be affecting the parsing.

jonathonl avatar Jun 10 '21 17:06 jonathonl

It does indeed work with the test data, and I have looked for whitespaces and carriage returns and nothing there.

Thanks for the suggestions though, it was worth trying

ArianaHC avatar Jun 14 '21 14:06 ArianaHC