Skip to content

Commit

Permalink
make func_effect_diffs work w many selections (#172)
Browse files Browse the repository at this point in the history
* make `func_effect_diffs` work w many selections

* fix CHANGELOG

* fix bug in new `func_effect_diffs`

* re-run test example
  • Loading branch information
jbloom authored Dec 19, 2024
1 parent f215052 commit 4e2afe7
Show file tree
Hide file tree
Showing 73 changed files with 2,333 additions and 2,778 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# CHANGELOG

### version 3.19.2
- Make `func_effect_diffs` work when there are many selections by making correlation heatmap rather than many scatters, and showing tooltips as list of per-selection values. Also makes `per_selection_tooltips` not needed in config for `func_effect_diffs`.

### version 3.19.1
- Fixed [bug](https://github.com/dms-vep/dms-vep-pipeline-3/issues/163) introduced in version 3.19.0 that causes pip installation of `alignparse==0.6.3` to fail.

Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/htmls/220210_vs_220302_comparison_diffs.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/htmls/220210_vs_220302_comparison_diffs_corr.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/htmls/S2M11_mut_effect.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/htmls/pretending_S2M11_is_receptor_mut_effect.html

Large diffs are not rendered by default.

50 changes: 25 additions & 25 deletions docs/notebooks/analyze_func_scores.html
Original file line number Diff line number Diff line change
Expand Up @@ -7584,7 +7584,7 @@ <h1 id="Analyze-the-functional-scores">Analyze the functional scores<a class="an
</div>
</div>
</div>
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs celltag_injected-parameters" id="cell-id=2f34d6d2">
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs celltag_injected-parameters" id="cell-id=4e087391">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
Expand Down Expand Up @@ -7818,23 +7818,23 @@ <h2 id="Pre--and-post-selection-counts-for-variants">Pre- and post-selection cou
<div class="jp-OutputPrompt jp-OutputArea-prompt">Out[6]:</div>
<div class="jp-RenderedHTMLCommon jp-RenderedHTML jp-OutputArea-output jp-OutputArea-executeResult" data-mime-type="text/html" tabindex="0">
<style>
#altair-viz-3e640b0fe8b441578c7293d17b5d8cd9.vega-embed {
#altair-viz-9fd71b24174c4ad5abce644213251b69.vega-embed {
width: 100%;
display: flex;
}

#altair-viz-3e640b0fe8b441578c7293d17b5d8cd9.vega-embed details,
#altair-viz-3e640b0fe8b441578c7293d17b5d8cd9.vega-embed details summary {
#altair-viz-9fd71b24174c4ad5abce644213251b69.vega-embed details,
#altair-viz-9fd71b24174c4ad5abce644213251b69.vega-embed details summary {
position: relative;
}
</style>
<div id="altair-viz-3e640b0fe8b441578c7293d17b5d8cd9"></div>
<div id="altair-viz-9fd71b24174c4ad5abce644213251b69"></div>
<script type="text/javascript">
var VEGA_DEBUG = (typeof VEGA_DEBUG == "undefined") ? {} : VEGA_DEBUG;
(function(spec, embedOpt){
let outputDiv = document.currentScript.previousElementSibling;
if (outputDiv.id !== "altair-viz-3e640b0fe8b441578c7293d17b5d8cd9") {
outputDiv = document.getElementById("altair-viz-3e640b0fe8b441578c7293d17b5d8cd9");
if (outputDiv.id !== "altair-viz-9fd71b24174c4ad5abce644213251b69") {
outputDiv = document.getElementById("altair-viz-9fd71b24174c4ad5abce644213251b69");
}

const paths = {
Expand Down Expand Up @@ -8054,23 +8054,23 @@ <h2 id="Distributions-of-functional-scores">Distributions of functional scores<a
<div class="jp-OutputPrompt jp-OutputArea-prompt">Out[7]:</div>
<div class="jp-RenderedHTMLCommon jp-RenderedHTML jp-OutputArea-output jp-OutputArea-executeResult" data-mime-type="text/html" tabindex="0">
<style>
#altair-viz-6f86cb0988684714812cc06c80a4c2d1.vega-embed {
#altair-viz-d4d269c9af3144278c6fb72b5709d262.vega-embed {
width: 100%;
display: flex;
}

#altair-viz-6f86cb0988684714812cc06c80a4c2d1.vega-embed details,
#altair-viz-6f86cb0988684714812cc06c80a4c2d1.vega-embed details summary {
#altair-viz-d4d269c9af3144278c6fb72b5709d262.vega-embed details,
#altair-viz-d4d269c9af3144278c6fb72b5709d262.vega-embed details summary {
position: relative;
}
</style>
<div id="altair-viz-6f86cb0988684714812cc06c80a4c2d1"></div>
<div id="altair-viz-d4d269c9af3144278c6fb72b5709d262"></div>
<script type="text/javascript">
var VEGA_DEBUG = (typeof VEGA_DEBUG == "undefined") ? {} : VEGA_DEBUG;
(function(spec, embedOpt){
let outputDiv = document.currentScript.previousElementSibling;
if (outputDiv.id !== "altair-viz-6f86cb0988684714812cc06c80a4c2d1") {
outputDiv = document.getElementById("altair-viz-6f86cb0988684714812cc06c80a4c2d1");
if (outputDiv.id !== "altair-viz-d4d269c9af3144278c6fb72b5709d262") {
outputDiv = document.getElementById("altair-viz-d4d269c9af3144278c6fb72b5709d262");
}

const paths = {
Expand Down Expand Up @@ -8215,23 +8215,23 @@ <h1 id="Correlations-in-variant-functional-scores">Correlations in variant funct
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedHTMLCommon jp-RenderedHTML jp-OutputArea-output" data-mime-type="text/html" tabindex="0">
<style>
#altair-viz-cf9fbe856d194ba18ca5e61074133e60.vega-embed {
#altair-viz-5a048f759d6e44feae131f21a7f64266.vega-embed {
width: 100%;
display: flex;
}

#altair-viz-cf9fbe856d194ba18ca5e61074133e60.vega-embed details,
#altair-viz-cf9fbe856d194ba18ca5e61074133e60.vega-embed details summary {
#altair-viz-5a048f759d6e44feae131f21a7f64266.vega-embed details,
#altair-viz-5a048f759d6e44feae131f21a7f64266.vega-embed details summary {
position: relative;
}
</style>
<div id="altair-viz-cf9fbe856d194ba18ca5e61074133e60"></div>
<div id="altair-viz-5a048f759d6e44feae131f21a7f64266"></div>
<script type="text/javascript">
var VEGA_DEBUG = (typeof VEGA_DEBUG == "undefined") ? {} : VEGA_DEBUG;
(function(spec, embedOpt){
let outputDiv = document.currentScript.previousElementSibling;
if (outputDiv.id !== "altair-viz-cf9fbe856d194ba18ca5e61074133e60") {
outputDiv = document.getElementById("altair-viz-cf9fbe856d194ba18ca5e61074133e60");
if (outputDiv.id !== "altair-viz-5a048f759d6e44feae131f21a7f64266") {
outputDiv = document.getElementById("altair-viz-5a048f759d6e44feae131f21a7f64266");
}

const paths = {
Expand Down Expand Up @@ -8287,23 +8287,23 @@ <h1 id="Correlations-in-variant-functional-scores">Correlations in variant funct
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedHTMLCommon jp-RenderedHTML jp-OutputArea-output" data-mime-type="text/html" tabindex="0">
<style>
#altair-viz-edde253447684e41a0d08a5e82eb7e05.vega-embed {
#altair-viz-27da5a3e150d499682dd7b65c25397b1.vega-embed {
width: 100%;
display: flex;
}

#altair-viz-edde253447684e41a0d08a5e82eb7e05.vega-embed details,
#altair-viz-edde253447684e41a0d08a5e82eb7e05.vega-embed details summary {
#altair-viz-27da5a3e150d499682dd7b65c25397b1.vega-embed details,
#altair-viz-27da5a3e150d499682dd7b65c25397b1.vega-embed details summary {
position: relative;
}
</style>
<div id="altair-viz-edde253447684e41a0d08a5e82eb7e05"></div>
<div id="altair-viz-27da5a3e150d499682dd7b65c25397b1"></div>
<script type="text/javascript">
var VEGA_DEBUG = (typeof VEGA_DEBUG == "undefined") ? {} : VEGA_DEBUG;
(function(spec, embedOpt){
let outputDiv = document.currentScript.previousElementSibling;
if (outputDiv.id !== "altair-viz-edde253447684e41a0d08a5e82eb7e05") {
outputDiv = document.getElementById("altair-viz-edde253447684e41a0d08a5e82eb7e05");
if (outputDiv.id !== "altair-viz-27da5a3e150d499682dd7b65c25397b1") {
outputDiv = document.getElementById("altair-viz-27da5a3e150d499682dd7b65c25397b1");
}

const paths = {
Expand Down
56 changes: 28 additions & 28 deletions docs/notebooks/analyze_pacbio_ccs.html
Original file line number Diff line number Diff line change
Expand Up @@ -7510,7 +7510,7 @@
<!-- End of mermaid configuration --></head>
<body class="jp-Notebook" data-jp-theme-light="true" data-jp-theme-name="JupyterLab Light">
<main>
<div class="jp-Cell jp-MarkdownCell jp-Notebook-cell" id="cell-id=6e6d0590">
<div class="jp-Cell jp-MarkdownCell jp-Notebook-cell" id="cell-id=c2aaba76">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
Expand All @@ -7521,7 +7521,7 @@ <h1 id="Analyze-PacBio-CCSs">Analyze PacBio CCSs<a class="anchor-link" href="#An
</div>
</div>
</div>
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs" id="cell-id=ec2c7a27">
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs" id="cell-id=2bf1f744">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
Expand All @@ -7542,7 +7542,7 @@ <h1 id="Analyze-PacBio-CCSs">Analyze PacBio CCSs<a class="anchor-link" href="#An
</div>
</div>
</div>
<div class="jp-Cell jp-MarkdownCell jp-Notebook-cell" id="cell-id=ff54af04">
<div class="jp-Cell jp-MarkdownCell jp-Notebook-cell" id="cell-id=049b66ca">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
Expand All @@ -7552,7 +7552,7 @@ <h1 id="Analyze-PacBio-CCSs">Analyze PacBio CCSs<a class="anchor-link" href="#An
</div>
</div>
</div>
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs celltag_parameters" id="cell-id=297cd5a5">
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs celltag_parameters" id="cell-id=ddfb6277">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
Expand All @@ -7568,7 +7568,7 @@ <h1 id="Analyze-PacBio-CCSs">Analyze PacBio CCSs<a class="anchor-link" href="#An
</div>
</div>
</div>
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs celltag_injected-parameters" id="cell-id=8645cc3e">
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs celltag_injected-parameters" id="cell-id=205d95ad">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
Expand All @@ -7586,7 +7586,7 @@ <h1 id="Analyze-PacBio-CCSs">Analyze PacBio CCSs<a class="anchor-link" href="#An
</div>
</div>
</div>
<div class="jp-Cell jp-MarkdownCell jp-Notebook-cell" id="cell-id=c7d33ad9">
<div class="jp-Cell jp-MarkdownCell jp-Notebook-cell" id="cell-id=b15a2268">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
Expand All @@ -7596,7 +7596,7 @@ <h1 id="Analyze-PacBio-CCSs">Analyze PacBio CCSs<a class="anchor-link" href="#An
</div>
</div>
</div>
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell" id="cell-id=dc46d46d">
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell" id="cell-id=69d33766">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
Expand Down Expand Up @@ -7684,7 +7684,7 @@ <h1 id="Analyze-PacBio-CCSs">Analyze PacBio CCSs<a class="anchor-link" href="#An
</div>
</div>
</div>
<div class="jp-Cell jp-MarkdownCell jp-Notebook-cell" id="cell-id=39b40850">
<div class="jp-Cell jp-MarkdownCell jp-Notebook-cell" id="cell-id=992e9d09">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
Expand All @@ -7694,7 +7694,7 @@ <h2 id="Stats-on-CCS-alignments">Stats on CCS alignments<a class="anchor-link" h
</div>
</div>
</div>
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell" id="cell-id=492686e2">
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell" id="cell-id=781ed2a8">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
Expand Down Expand Up @@ -7744,23 +7744,23 @@ <h2 id="Stats-on-CCS-alignments">Stats on CCS alignments<a class="anchor-link" h
<div class="jp-OutputPrompt jp-OutputArea-prompt">Out[5]:</div>
<div class="jp-RenderedHTMLCommon jp-RenderedHTML jp-OutputArea-output jp-OutputArea-executeResult" data-mime-type="text/html" tabindex="0">
<style>
#altair-viz-01b47640627f4170a02106da31320d19.vega-embed {
#altair-viz-25f890cfa9634fa2a2bc79bc673d0c6d.vega-embed {
width: 100%;
display: flex;
}

#altair-viz-01b47640627f4170a02106da31320d19.vega-embed details,
#altair-viz-01b47640627f4170a02106da31320d19.vega-embed details summary {
#altair-viz-25f890cfa9634fa2a2bc79bc673d0c6d.vega-embed details,
#altair-viz-25f890cfa9634fa2a2bc79bc673d0c6d.vega-embed details summary {
position: relative;
}
</style>
<div id="altair-viz-01b47640627f4170a02106da31320d19"></div>
<div id="altair-viz-25f890cfa9634fa2a2bc79bc673d0c6d"></div>
<script type="text/javascript">
var VEGA_DEBUG = (typeof VEGA_DEBUG == "undefined") ? {} : VEGA_DEBUG;
(function(spec, embedOpt){
let outputDiv = document.currentScript.previousElementSibling;
if (outputDiv.id !== "altair-viz-01b47640627f4170a02106da31320d19") {
outputDiv = document.getElementById("altair-viz-01b47640627f4170a02106da31320d19");
if (outputDiv.id !== "altair-viz-25f890cfa9634fa2a2bc79bc673d0c6d") {
outputDiv = document.getElementById("altair-viz-25f890cfa9634fa2a2bc79bc673d0c6d");
}

const paths = {
Expand Down Expand Up @@ -7815,7 +7815,7 @@ <h2 id="Stats-on-CCS-alignments">Stats on CCS alignments<a class="anchor-link" h
</div>
</div>
</div>
<div class="jp-Cell jp-MarkdownCell jp-Notebook-cell" id="cell-id=b46de1b0">
<div class="jp-Cell jp-MarkdownCell jp-Notebook-cell" id="cell-id=7dbaebb7">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
Expand All @@ -7825,7 +7825,7 @@ <h2 id="Visualize-target-to-which-reads-are-being-aligned">Visualize target to w
</div>
</div>
</div>
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell" id="cell-id=0140dab1">
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell" id="cell-id=d42e9164">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
Expand Down Expand Up @@ -7862,7 +7862,7 @@ <h2 id="Visualize-target-to-which-reads-are-being-aligned">Visualize target to w
</div>
</div>
</div>
<div class="jp-Cell jp-MarkdownCell jp-Notebook-cell" id="cell-id=76804e36">
<div class="jp-Cell jp-MarkdownCell jp-Notebook-cell" id="cell-id=f80fabbb">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
Expand All @@ -7872,7 +7872,7 @@ <h2 id="Why-were-some-CCSs-filtered?">Why were some CCSs filtered?<a class="anch
</div>
</div>
</div>
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell" id="cell-id=ef5c1524">
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell" id="cell-id=f8d091e0">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
Expand Down Expand Up @@ -7954,23 +7954,23 @@ <h2 id="Why-were-some-CCSs-filtered?">Why were some CCSs filtered?<a class="anch
<div class="jp-OutputPrompt jp-OutputArea-prompt">Out[7]:</div>
<div class="jp-RenderedHTMLCommon jp-RenderedHTML jp-OutputArea-output jp-OutputArea-executeResult" data-mime-type="text/html" tabindex="0">
<style>
#altair-viz-e97f6f8e057e47f18f9cb5c92a1b1a63.vega-embed {
#altair-viz-4a69033858574768b3f5b2078ded9737.vega-embed {
width: 100%;
display: flex;
}

#altair-viz-e97f6f8e057e47f18f9cb5c92a1b1a63.vega-embed details,
#altair-viz-e97f6f8e057e47f18f9cb5c92a1b1a63.vega-embed details summary {
#altair-viz-4a69033858574768b3f5b2078ded9737.vega-embed details,
#altair-viz-4a69033858574768b3f5b2078ded9737.vega-embed details summary {
position: relative;
}
</style>
<div id="altair-viz-e97f6f8e057e47f18f9cb5c92a1b1a63"></div>
<div id="altair-viz-4a69033858574768b3f5b2078ded9737"></div>
<script type="text/javascript">
var VEGA_DEBUG = (typeof VEGA_DEBUG == "undefined") ? {} : VEGA_DEBUG;
(function(spec, embedOpt){
let outputDiv = document.currentScript.previousElementSibling;
if (outputDiv.id !== "altair-viz-e97f6f8e057e47f18f9cb5c92a1b1a63") {
outputDiv = document.getElementById("altair-viz-e97f6f8e057e47f18f9cb5c92a1b1a63");
if (outputDiv.id !== "altair-viz-4a69033858574768b3f5b2078ded9737") {
outputDiv = document.getElementById("altair-viz-4a69033858574768b3f5b2078ded9737");
}

const paths = {
Expand Down Expand Up @@ -8025,7 +8025,7 @@ <h2 id="Why-were-some-CCSs-filtered?">Why were some CCSs filtered?<a class="anch
</div>
</div>
</div>
<div class="jp-Cell jp-MarkdownCell jp-Notebook-cell" id="cell-id=5654a42b">
<div class="jp-Cell jp-MarkdownCell jp-Notebook-cell" id="cell-id=5001a524">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
Expand All @@ -8035,7 +8035,7 @@ <h2 id="Get-CCSs-that-align-to-the-amplicon">Get CCSs that align to the amplicon
</div>
</div>
</div>
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell" id="cell-id=6c7d20b6">
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell" id="cell-id=723b4da1">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
Expand Down Expand Up @@ -8153,7 +8153,7 @@ <h2 id="Get-CCSs-that-align-to-the-amplicon">Get CCSs that align to the amplicon
</div>
</div>
</div>
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs" id="cell-id=335ebd73">
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs" id="cell-id=e5caf91a">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
Expand Down
Loading

0 comments on commit 4e2afe7

Please sign in to comment.