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

construction of init_values input file #14

Closed
DrLaurenCWhite opened this issue Oct 23, 2020 · 4 comments
Closed

construction of init_values input file #14

DrLaurenCWhite opened this issue Oct 23, 2020 · 4 comments

Comments

@DrLaurenCWhite
Copy link

Hi Felipe,
I was wondering if you could tell me how to construct the input file for --init_values?
I would like to use --fixed_freq and a list of MAF values that I previously estimated from a subset of my data. The total dataset contains a lot of close relatives which I think would skew the MAF estimates.
Thanks a lot,
-Lauren

@fgvieira
Copy link
Owner

Hi Lauren,

the format of the input file for --init_values is the same as the output .pars file, namely a binary file with:

  • global log-likelihood (1 double)
  • per-individual log-likelihood (N_IND doubles)
  • per-individual inbreeding coefficients (N_IND doubles)
  • minor allele frequencies (N_SITES doubles)

since you are only interested on the MAF, you can just include dummy values for the other parameters (lkl and inbreeding).
Hope it makes sense. 😄

@DrLaurenCWhite
Copy link
Author

Thanks for your quick response!
Just to be clear, the file then contains just 4 lines?
Thanks again!

@fgvieira
Copy link
Owner

The file is binary, so there are no 'real' lines... but if you have 10 individuals and 1000 sites, your file will have 1021 doubles (1 + 10 + 10 + 1000)

@DrLaurenCWhite
Copy link
Author

ah I see! Great, thanks again.

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