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

Running winSFS on a region #12

Open
msrigyan opened this issue Sep 12, 2024 · 1 comment
Open

Running winSFS on a region #12

msrigyan opened this issue Sep 12, 2024 · 1 comment

Comments

@msrigyan
Copy link

Hi,

I am wondering if it is possible to run winSFS on a particular chromosome/region, if the saf files are already generated? I want to examine the SFS for a single region from the saf.idx file for the whole genome.

Previously, I did this using realSFS with the command:
$angsd/misc/realSFS $file.saf.idx -r $chr1 > $chr1.sfs

If there's a way to do this using winsfs, that would be really helpful, thank you!

@malthesr
Copy link
Owner

Hi,

Depending on what you need to do, some of the discussion here might be relevant.

Apart from that, the only way would be to to generate SAF files separately by regions and run winsfs by those. In any case, be aware that winsfs is intended for use on large input data, so you'd want to keep the separate input blocks large (in the 10s-100s of mb, at least). For smaller blocks, realSFS would be the better choice.

Best,
Malthe

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

No branches or pull requests

2 participants