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.

Make "Show variants present only in unaffected" checked by default

See original GitHub issue

Dear developers,

We continue using Scout in teaching and I have rolled forward to the latest code. To not break our lab, I need to have “Show variants present only in unaffected” checked by default in the “Clinical SNV and INDELs” page.

This page is controlled in scout/server/blueprints/variants/templates/variants/utils.html but I do not know if there is a way update the html to pass a setting to automatically have it checked when the page loads.

{% macro filter_form_footer(form, result_size, total_variants, more_variants, page, nvars) %}
<div class="card-footer text-center">
  <input type="hidden" id="expand_search" name="expand_search">
  <div class="row">
    <div class="col-4">
      <div class="form-check d-flex justify-content-start">
        {{ form.hide_dismissed(class="form-check-input") }}
        {{ form.hide_dismissed.label(class="form-check-label ms-2") }}
      </div>
      <div class="form-check d-flex justify-content-start">
        {{ form.show_unaffected(class="form-check-input") }}
        {{ form.show_unaffected.label(class="form-check-label ms-2", **{'data-bs-toggle': 'tooltip', 'title':'This filter applies only to cases with more than one sample. When this is unchecked, only variants that are predicted by callers to be present in an affected individual genotype are shown.'}) }}
      </div>
    </div>
    <div class="col-4 d-flex justify-content-center">
      Filter returns {{result_size}} / {{ total_variants }} variants.
    </div>
    <div class="col-4 d-flex justify-content-end">
      Showing {%if more_variants %}page {{page}}{%else%}last page{% endif %} with {{nvars}} variants.
    </div>
  </div>
</div>
{% endmacro %}

Can someone please help?

image

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
andreaswallbergcommented, Aug 23, 2022

We use the platform differently from how it is used in a true clinical setting.

In our case, we only have a few hand-crafted variants per case that students are stepping through to observe genotypes across pedigrees and verify how they match pathologies and patterns of inheritance and the affected individuals and such. I just want to make sure all variants are shown per default.

1reaction
northwestwitchcommented, Aug 23, 2022

Perhaps we can introduce a new settings option on the institute page, so that it applies only to your institute

Read more comments on GitHub >

github_iconTop Results From Across the Web

BIO182 Chapter 19 MasteringBiology Homework - Quizlet
Sort the items according to whether they may be found only in free virus particles, only in uninfected host cells, or in both...
Read more >
Configure build variants | Android Developers
This page shows you how you can configure build variants to create different versions of your app from a single project and how...
Read more >
Standards and Guidelines for the Interpretation of Sequence ...
The variant classification approach described in this paper is meant to be applicable to variants in all Mendelian genes whether identified by single...
Read more >
Variant Effect Predictor Results - Ensembl
By default, the results for five variants are shown. Note that since a variant can overlap multiple transcripts, the table will often show...
Read more >
VariantStudio™ 3.0 Software Guide - Support Illumina
This column is displayed only when View. All Samples is selected. Gene. The name of the gene. Variant. Lists the reference allele and...
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