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

Visualization of meanQ files fastSTRUCTURE #77

Open
sekhwal opened this issue Mar 13, 2021 · 5 comments
Open

Visualization of meanQ files fastSTRUCTURE #77

sekhwal opened this issue Mar 13, 2021 · 5 comments
Labels
question How to do something

Comments

@sekhwal
Copy link

sekhwal commented Mar 13, 2021

Hi,
Could anyone please let me know the initial codes to start visualizing the meanQ files, generated from fastSTRUCTURE. I am totally lost in the tutorial of pophelper. It is very large and complicate.

@royfrancis
Copy link
Owner

royfrancis commented Mar 19, 2021

Here is a short example. You can run this yourself and it should work on your system.

library(pophelper)

# get a list of run files
f <- list.files(path=system.file("files/faststructure",package="pophelper"), full.names=T)

# read them in
flist <- readQ(files=f)

# plot one of the runs
plotQ(qlist=flist[3],exportpath=getwd())

This exports a figure to your working directory. When reading your own files, change the first line to a folder containing your files.

f <- list.files(path="path/to/your/files", full.names=T)

@royfrancis royfrancis added the question How to do something label Mar 19, 2021
@sekhwal
Copy link
Author

sekhwal commented Mar 21, 2021

Hi,
Thank you for your reply. However, it show still error:

library(pophelper)

f <- list.files(path=system.file("E:/TASSEL-work/SEGI/popheler/", package="pophelper"), full.names=T)

flist <- readQ(files=f)

error:

Error in readQ(files = f) : readQ: No input files.

@sekhwal
Copy link
Author

sekhwal commented Mar 21, 2021

Please let me know how to access my own files generated by faststructure.

@royfrancis
Copy link
Owner

As I said in the last line, for your own files, you should use

f <- list.files(path="E:/TASSEL-work/SEGI/popheler/", full.names=T)

without system.file.

@sekhwal
Copy link
Author

sekhwal commented Mar 22, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question How to do something
Projects
None yet
Development

No branches or pull requests

2 participants