Samples
graph TD A["All Variants\n(n=1,738)"] --"Sample:mother"--> B - B["Mother Variants\n(n=385)"] + B["Mother Variants\n(n=1187)"]
diff --git a/filtering.html b/filtering.html index 7c8e8e5..19fc98d 100644 --- a/filtering.html +++ b/filtering.html @@ -101,10 +101,21 @@
We will go through each of these filters and their functionality.
+We will go through each of these filters and their functionality after we talk about the common GUI elements of each.
+We will use a subset of a synthetic dataset that is a trio. There are 5 individuals in this dataset.
+Some of the variants are shared by the Proband and Mother, and all other combinations.
You can remove variants associated with a set of sample IDs by unselecting them in the checkboxes here.
+You can remove variants associated with a set of sample IDs by clicking on the checkboxes here. For example, we want all of the variants that are associated with the mother. We’ll click on the “mother” checkbox until it is a green check.
+ If we look at the Variant tab, we can see that our variants include multiple members:
Here’s a visual summary of the results.
graph TD A["All Variants\n(n=1,738)"] --"Sample:mother"--> B - B["Mother Variants\n(n=385)"] + B["Mother Variants\n(n=1187)"]
These are all of the variants that are associated with the mother, and include variants that are shared by other family members. What about variants that are exclusive to the mother?
For example, we can filter for
+To exclude samples, click on the checkbox until you see a red x.
+ After filtering, we find that 385 variants are exclusive to the mother. We can confirm this by going to the Variant tab:
Here’s the visual summary:
graph TD + A["All Variants\n(n=1,738)"] --"Sample:mother\nExclude:others"--> B + B["Mother Variants\n(n=385)"] ++
Gene-level filtering can be done here. You can input a list of genes, separated by line-breaks
+Gene-level filtering can be done here. You can input a list of genes, separated by line-breaks.
+Clearing our previous filter, let’s filter to only those variants that are in BRCA1 and BRCA2.
+To filter, we take the following steps in the Gene filter section:
+ Going to the Variant tab, we can confirm that the variants belong to BRCA1 and BRCA2.
Here’s the visual summary of the filter:
In variant properties, you can filter by variant type based on your annotations. For example, let’s filter our dataset to missense variants.
-Under Variant Properties:
+A. Under Variant Properties:
Make your filter by selecting the following dropdown boxes:
+B. Make your filter by selecting the values for the following dropdown boxes:
Finally, click the “Apply Filter” Button:
C. Finally, click the “Apply Filter” Button:
You will be left with 299 variants. Here’s a visual summary of what we did:
graph TD A["All Variants\n(n=1,738)"] --"Sequence Ontology:\nMissense"--> B["Missense Variants\n(n=299)"] -
You can build more sophisticated operations by combining each filter step using Boolean logic.
+You can add another filter by clicking the + underneath your filter.
+By default, the filters are combined using AND logic, which are more restrictive, because they require variants to meet both filters.
-Here’s an example of using AND logic. Here we are combining two filters: Missense Variants (from Variant Annotation –> Sequence Ontology) and Pathogenic variants (from ClinVar –> Clinical Significance).
- When we apply the filter, we get 9 variants that meet both criteria. Here’s a visual summary of the filtering:
Here’s an example of using AND logic. Here we are combining two filters: Missense Variants (from Variant Annotation >> Sequence Ontology) and Pathogenic variants (from ClinVar >> Clinical Significance).
+ Then do the following:
If we look at the Variant tab, we can see that our combined filter selected both Pathogenic and Missense Variants.
When we apply the filter, we get 9 variants that meet both criteria. Here’s a visual summary of the filtering:
We can use the parentheses to group filters together. This can be helpful when we combine different types of logic.
+To make a grouped filter, click the ( button next to the + button in the interface:
+Then you can build a set of filters much like above. Notice that they are grouped within a set of parentheses.
+ Keep in mind that you can nest parentheses within parentheses to make even more complex filters. We’ll use this to be able to combine three filters with AND and OR logic below.
By default, when you click the “and” / “or” of one set of filters, all filters will be changed. If you want to combine AND / OR logic, you can group one of the logic operations using parentheses.
For example, say we want the above OR subset combined as an AND with those variants that have PS1 evidence. We can
This is what our final filter looks like:
@@ -244,14 +304,11 @@If we mouse over the top left of a filter or filter group, we’ll see a faint “NOT”.
+Clicking this will change the logic to NOT.
+In our case, we have 1,729 variants that do not meet our filter criterion.
If you need to delete a filter, you can mouse to the right of the filter. A faint “X” will appear. Clicking on it will delete that filter.
+ ## Case Study: Filtering Pathogenic Variants