Open abilska opened 1 month ago
What is the error you get exactly?
it's about the function and message: "pcadapt_result <- pcadapt(x = file_input, K = 6, population = pop_info) # K = number of populations" "Error in pcadapt(x = file_input, K = 6, population = pop_info) : unused arguments (x = file_input, population = pop_info)"
Our goal is to identify which SNPs shown as outliers belong to a given population (in our case 6 pops). is such information included somewhere in the results of pcadapt analysis?
I am not sure what you mean exactly by "a SNP belongs to a population". If the goal is to find, for the pcadapt outlier variants, for which population they have a different allele frequency (AF), then just compute AFs per population with e.g. PLINK, then find the population for which the AF deviates the most from e.g. the median AF of the 6 pops.
Hello, we would like to analyze SNPs under selection across different populations (in our case, we have six), and the sample sizes (belove) provided are just examples. Unfortunately, we keep encountering an error, and it seems that the term related to different populations (pop_vector) has been deleted from the program. Could you please help us understand what we might be doing wrong? Is this population selection option available in another feature/version?
Best regards,