question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Optional genomic-scale for popgen stats

See original GitHub issue

See discussion in #888

Most methods within popgen.py are automatically applied over windows and default to variants if the dataset has not been windowed. It would be useful to optionally apply these methods over the whole genome and potentially per contig. Additionally, some methods such as identity_by_state and Weir_Goudet_beta are currently applied to the whole genome, but it would also be useful to apply them within windows/contigs.

An option to allow more user control, whist keeping sensible defaults, would be to introduce a by parameter which can be used to specify the genomic scale (e.g., one of {"genome", "windows", "variants"}). The specified scale would determine the genomic-dimension and shape of the resulting values.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
timothymillarcommented, Nov 1, 2022

SGTM also, but this may require some re-working of the identity_by_state and Weir_Goudet_beta methods if/when windowing is required.

1reaction
jeromekellehercommented, Nov 1, 2022

SGTM @tomwhite, I’ll cast my vote for adding the window_by_genome function then.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dsuite ‐ Fast D‐statistics and related admixture evidence from ...
statistic reflects excess sharing of alleles between the population or species P3 and the descendants of the branch labelled b, relative to ...
Read more >
Calculating Basic Population Genetic Statistics from SNP Data
In this vignette, you will calculate basic population genetic statistics from SNP data using R packages. These statistics serve as exploratory analysis and ......
Read more >
Population genomics reveals moderate genetic differentiation ...
Conclusions. Genetic diversity of Forest Musk Deer was moderate at the genomic scale compared with other endangered species. Genetic ...
Read more >
a web-based visualization browser for sliding window analysis
Moreover, a genomic-scale browser is needed to view the test statistics in whole-genome or multitarget sliding window analysis.
Read more >
Key considerations for measuring allelic expression on ... - NCBI
Key considerations for measuring allelic expression on a genomic scale using ... Analysis of sequencing statistics, informative reads and allelic expression.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found