location1 location2
condition1 group1 group3
condition2 group2 group4
vcftools --gzvcf all_HC_SV_SNP.vcf.gz --plink --chrom-map scaffold_chrom-map.txt --out all_HC_SV_SNP&
plink --file all_HC_SV_SNP --aec --allow-no-sex --make-bed --noweb --out all_HC_SV_SNP.binary &
plink --bfile all_HC_SV_SNP.binary --make-pheno condition.pheno "condition1" --aec --assoc --reference-allele babblers_alt_alleles --allow-no-sex --adjust --noweb --out babblers_all_low &
The out put shows the association of condition1 by
calculating the Chi-square between (group1,group3) and (group2,group4)
but I also want to analyze the association SNP site of condition1 in location1(group1,2) and location2(group3,4) separately without generate the vcf files of two location.
Is there any way to indicate PLINK 1.9 to analysis a subset of data in a data set?
I have tried
plink --bfile all_HC_SV_SNP.binary --within location.txt "location1" --make-pheno condition.pheno "condition1" --aec --assoc --reference-allele babblers_alt_alleles --allow-no-sex --adjust --noweb --out location1_condition1 &
plink --bfile all_HC_SV_SNP.binary --keep location1.txt --make-pheno condition.pheno "condition1" --aec --assoc --reference-allele babblers_alt_alleles --allow-no-sex --adjust --noweb --out babblers_east_high &
But these two command failed to analyze the subset of data.
one shows Error: Invalid --within parameter sequence.
and the other shows Error: Line 1 of --keep file has fewer tokens than expected.
Thanks for help