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

ref: peds-sim #97

Closed
cherman2 opened this issue Sep 19, 2024 · 0 comments · Fixed by #101
Closed

ref: peds-sim #97

cherman2 opened this issue Sep 19, 2024 · 0 comments · Fixed by #101
Assignees

Comments

@cherman2
Copy link
Contributor

we need to refactor peds simulation to have an even sampling depth

Peds-Simulation Process:

  1. create mismatched pairs
  2. sample mismatched pairs so there are 999 mismatched pairs (simulated mismatched pairs)
  3. create a feature table that evenly samples the donor and recipient from the pair (but does this independently for all pairs in the simulated mismatch pairs data)
  4. create new mismatched pairs because we are people going to have to rename sample for the sampling iteration they are a part of
  5. calculate simulated peds as normal
  6. compare all real values to the new simulated peds distribution

Peds sampling depth process:
For this one we are going to default to none but will allow sampling if a sampling depth is provided and will allow rarefaction if iters is provided.

  1. sample feature table 999 times
  2. run peds 999 times
  3. Average peds values

Alright, (@gregcaporaso if you are interested) This are my rough note from what Evan and I decided re: peds-sim and peds sampling depth.
@ebolyen Does this seem right to you?

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

Successfully merging a pull request may close this issue.

1 participant