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.

Genotype ploidy summary functions

See original GitHub issue

It would be useful to be able to summarize ploidy along different dimensions when working with mixed ploidy data. Currently ploidy can only be inferred from the call_genotype array by the number of allele values > -1 at each call.

Methods could be implemented to calculate the following arrays:

  • 'call_genotype_ploidy' of shape (variants, samples)
  • 'variant_ploidy' of shape (variants, )
  • 'sample_ploidy' of shape (samples, )

If ploidy is variable across a given variant or sample then -1 should be returned indicating mixed-ploidy along that dimension.

There was some discussion of this in #243 but it was agreed that this is better as a separate PR #373 (comment)

Example: call_genotype array:

[[[0, 0, -1, -1], [0, 0,  1,  1], [0, 0, 1, 1]],
 [[0, 0,  0, -1], [0, 1, -2, -2], [0, 1, 1, 1]],
 [[0, 0,  0,  1], [0, 0, -2, -2], [0, 0, 0, 0]],]

call_genotype_ploidy array:

[[4, 4, 4],
 [4, 2, 4],
 [4, 2, 4]]

variant_ploidy array:

[ 4,
 -1,
 -1]

sample_ploidy array:

[4, -1, 4]

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
timothymillarcommented, Apr 6, 2021

@tomwhite I actually realized a couple of days ago that the methods in #472 still need to be added to the docs and top level API. I’ll put another PR together shortly.

0reactions
tomwhitecommented, Apr 6, 2021

Can this be closed now that #472 is merged?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ploidy - an overview | ScienceDirect Topics
Ploidy level is a term referring to the number of chromosome sets in somatic cells of the diplophase (2n) or gametophytic cells of...
Read more >
Assessing Ploidy Level Analysis and Single Pollen ... - NCBI
This strategy was used to analyze the genetic composition of single pollen nuclei of different citrus species. The flow cytometry and microscope ...
Read more >
Ploidy and the Causes of Genomic Evolution - Oxford Academic
Polyploidization results primarily from 3 mutational mechanisms: gametic nonreduction (the production of unreduced gametes caused by an error in meiosis), ...
Read more >
Disaggregation of Ploidy, Gender, and Genotype Effects on ...
Our findings provide new insights into the genetic effects of ploidy, gender, and genotype on wood and fiber traits within a full-sib poplar...
Read more >
Detection of individual ploidy levels with genotyping‐by‐ ...
Whereas the method does not require prior information on ploidy, a reference set of samples with known ploidy can be included in the...
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