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

Problem structure file format pop info #85

Open
GinnieT opened this issue Sep 7, 2021 · 1 comment
Open

Problem structure file format pop info #85

GinnieT opened this issue Sep 7, 2021 · 1 comment
Labels
need-more-info Need more information

Comments

@GinnieT
Copy link

GinnieT commented Sep 7, 2021

Hi,
I have an issue when I am using pophelper with a structure file containing pop information. The format doesn’t seem to be recognized by the function readQ because of the different : present in the file to separate the different pop.
I have run this script on a structure file with only individual labels and markers, and I didn’t have any problem. The issue arises when I am using structure output files with pop info. The script is running but I have warnings and the output is wrong.
I am using a Mac with the following session parameters on Rstudio.

session

All the the structure files are in the same folder with no other files I have tested k from 1 to 11 with 3 replicates each time.
I have n individuals = 1218 and loci = 20.

Code below :

library(pophelper)
library(gridExtra)

sfiles <- list.files(path="No_prior/", full.names=T)
slist <- readQ(files=sfiles)
readQ(files=sfiles,filetype="structure")

sr1 <- summariseQ(tabulateQ(slist))

warnings

This is an example of one structure file that worked and the output
nopriorfile

working

And an example of a file that didn't work and the output
prior

priorfile2

notworking

I am just wondering if there is an option for this kind of structure file or if I have something to do beforehand with the file.

Thank you in advance for your help.

Best regards,

@royfrancis
Copy link
Owner

Hi, Would you be able to upload some sample files?

@royfrancis royfrancis added the need-more-info Need more information label Jan 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need-more-info Need more information
Projects
None yet
Development

No branches or pull requests

2 participants