diff --git a/browser/src/ConstraintTable/ConstraintTable.spec.tsx b/browser/src/ConstraintTable/ConstraintTable.spec.tsx
index 6b5776d8b..61c4f920b 100644
--- a/browser/src/ConstraintTable/ConstraintTable.spec.tsx
+++ b/browser/src/ConstraintTable/ConstraintTable.spec.tsx
@@ -11,6 +11,10 @@ import { BrowserRouter } from 'react-router-dom'
import ConstraintTable from './ConstraintTable'
import { ExacConstraint } from './ExacConstraintTable'
import { GnomadConstraint } from './GnomadConstraintTable'
+import {
+ ProteinMitochondrialGeneConstraint,
+ RNAMitochondrialGeneConstraint,
+} from '../GenePage/GenePage'
const exacConstraintFactory = Factory.define<ExacConstraint>(() => ({
exp_lof: 0.123,
@@ -42,6 +46,34 @@ const gnomadConstraintFactory = Factory.define<GnomadConstraint>(() => ({
oe_syn_upper: 0.95,
}))
+const proteinMitochondrialConstraintFactory = Factory.define<ProteinMitochondrialGeneConstraint>(
+ () => ({
+ exp_lof: 0.123,
+ exp_syn: 0.234,
+ exp_mis: 0.345,
+ oe_lof: 0.789,
+ oe_lof_lower: 0.6,
+ oe_lof_upper: 0.9,
+ oe_mis: 0.891,
+ oe_mis_lower: 0.8,
+ oe_mis_upper: 0.99,
+ oe_syn: 0.912,
+ oe_syn_lower: 0.8,
+ oe_syn_upper: 0.95,
+ obs_lof: 0.111,
+ obs_syn: 0.222,
+ obs_mis: 0.333,
+ })
+)
+
+const rnaMitochondrialConstraintFactory = Factory.define<RNAMitochondrialGeneConstraint>(() => ({
+ observed: 0.11,
+ expected: 0.22,
+ oe: 0.33,
+ oe_lower: 0.31,
+ oe_upper: 0.35,
+}))
+
forAllDatasets('ConstraintTable with "%s" dataset selected', (datasetId) => {
describe('with a minimal gene', () => {
test('has no unexpected changes', () => {
@@ -65,13 +97,35 @@ forAllDatasets('ConstraintTable with "%s" dataset selected', (datasetId) => {
})
})
- describe('with a mitochondrial gene', () => {
+ describe('with a mitochondrial protein gene', () => {
+ test('has no unexpected changes', () => {
+ const constraint = proteinMitochondrialConstraintFactory.build()
+ const tree = renderer.create(
+ <BrowserRouter>
+ <ConstraintTable
+ datasetId={datasetId}
+ geneOrTranscript={geneFactory.build({
+ chrom: 'M',
+ mitochondrial_constraint: constraint,
+ })}
+ />
+ </BrowserRouter>
+ )
+ expect(tree).toMatchSnapshot()
+ })
+ })
+
+ describe('with a mitochondrial RNA gene', () => {
test('has no unexpected changes', () => {
+ const constraint = rnaMitochondrialConstraintFactory.build()
const tree = renderer.create(
<BrowserRouter>
<ConstraintTable
datasetId={datasetId}
- geneOrTranscript={geneFactory.build({ chrom: 'M' })}
+ geneOrTranscript={geneFactory.build({
+ chrom: 'M',
+ mitochondrial_constraint: constraint,
+ })}
/>
</BrowserRouter>
)
@@ -79,6 +133,20 @@ forAllDatasets('ConstraintTable with "%s" dataset selected', (datasetId) => {
})
})
+ describe('with a mitochondrial gene missing constraint data', () => {
+ const tree = renderer.create(
+ <BrowserRouter>
+ <ConstraintTable
+ datasetId={datasetId}
+ geneOrTranscript={geneFactory.build({
+ chrom: 'M',
+ })}
+ />
+ </BrowserRouter>
+ )
+ expect(tree).toMatchSnapshot()
+ })
+
describe('with a mitochondrial transcript', () => {
test('has no unexpected changes', () => {
const tree = renderer.create(
diff --git a/browser/src/ConstraintTable/ConstraintTable.tsx b/browser/src/ConstraintTable/ConstraintTable.tsx
index 659665ef6..87f18865e 100644
--- a/browser/src/ConstraintTable/ConstraintTable.tsx
+++ b/browser/src/ConstraintTable/ConstraintTable.tsx
@@ -8,6 +8,7 @@ import Link from '../Link'
import ExacConstraintTable from './ExacConstraintTable'
import GnomadConstraintTable from './GnomadConstraintTable'
+import MitochondrialConstraintTable from './MitochondrialConstraintTable'
type Props = {
datasetId: DatasetId
@@ -65,18 +66,16 @@ const ConstraintTable = ({ datasetId, geneOrTranscript }: Props) => {
const { transcriptId, transcriptVersion, transcriptDescription } =
transcriptDetails(geneOrTranscript)
- const gnomadConstraint = geneOrTranscript.gnomad_constraint
- const exacConstraint = geneOrTranscript.exac_constraint
-
if (geneOrTranscript.chrom === 'M') {
- return (
- <p>
- Constraint is not available for mitochondrial{' '}
- {isGene(geneOrTranscript) ? 'genes' : 'transcripts'}
- </p>
- )
+ if (isGene(geneOrTranscript)) {
+ return <MitochondrialConstraintTable constraint={geneOrTranscript.mitochondrial_constraint} />
+ }
+ return <p>Constraint is not available for mitochondrial transcripts</p>
}
+ const gnomadConstraint = geneOrTranscript.gnomad_constraint
+ const exacConstraint = geneOrTranscript.exac_constraint
+
if (datasetId === 'exac') {
if (!exacConstraint) {
return (
diff --git a/browser/src/ConstraintTable/MitochondrialConstraintTable.tsx b/browser/src/ConstraintTable/MitochondrialConstraintTable.tsx
new file mode 100644
index 000000000..0c35d8ee7
--- /dev/null
+++ b/browser/src/ConstraintTable/MitochondrialConstraintTable.tsx
@@ -0,0 +1,136 @@
+import React from 'react'
+import {
+ MitochondrialGeneConstraint,
+ ProteinMitochondrialGeneConstraint,
+ RNAMitochondrialGeneConstraint,
+} from '../GenePage/GenePage'
+import { BaseTable } from '@gnomad/ui'
+
+const isProteinMitochondrialGeneConstraint = (
+ constraint: MitochondrialGeneConstraint
+): constraint is ProteinMitochondrialGeneConstraint =>
+ Object.prototype.hasOwnProperty.call(constraint, 'exp_lof')
+
+const ConstraintRow = ({
+ category,
+ expected,
+ observed,
+ oe,
+ oeLower,
+ oeUpper,
+}: {
+ category: string
+ expected: number
+ observed: number
+ oe: number
+ oeLower: number
+ oeUpper: number
+}) => (
+ <tr>
+ <th scope="row">{category}</th>
+ <td>{expected.toFixed(1)}</td>
+ <td>{observed.toFixed(1)}</td>
+ <td>
+ {oe.toFixed(2)} ({oeLower.toFixed(2)}-{oeUpper.toFixed(2)})
+ </td>
+ </tr>
+)
+
+const ProteinConstraintMetrics = ({
+ constraint,
+}: {
+ constraint: ProteinMitochondrialGeneConstraint
+}) => {
+ const {
+ exp_lof,
+ exp_mis,
+ exp_syn,
+ obs_lof,
+ obs_mis,
+ obs_syn,
+ oe_lof,
+ oe_lof_lower,
+ oe_lof_upper,
+ oe_mis,
+ oe_mis_lower,
+ oe_mis_upper,
+ oe_syn,
+ oe_syn_lower,
+ oe_syn_upper,
+ } = constraint
+ return (
+ <tbody>
+ <ConstraintRow
+ category="Synonymous"
+ expected={exp_syn}
+ observed={obs_syn}
+ oe={oe_syn}
+ oeLower={oe_syn_lower}
+ oeUpper={oe_syn_upper}
+ />
+ <ConstraintRow
+ category="Missense"
+ expected={exp_mis}
+ observed={obs_mis}
+ oe={oe_mis}
+ oeLower={oe_mis_lower}
+ oeUpper={oe_mis_upper}
+ />
+ <ConstraintRow
+ category="pLoF"
+ expected={exp_lof}
+ observed={obs_lof}
+ oe={oe_lof}
+ oeLower={oe_lof_lower}
+ oeUpper={oe_lof_upper}
+ />
+ </tbody>
+ )
+}
+
+const RNAConstraintMetrics = ({ constraint }: { constraint: RNAMitochondrialGeneConstraint }) => {
+ const { expected, observed, oe, oe_lower, oe_upper } = constraint
+ return (
+ <tbody>
+ <ConstraintRow
+ category="RNA variant"
+ expected={expected}
+ observed={observed}
+ oe={oe}
+ oeLower={oe_lower}
+ oeUpper={oe_upper}
+ />
+ </tbody>
+ )
+}
+
+const MitochondrialConstraintTable = ({
+ constraint,
+}: {
+ constraint: MitochondrialGeneConstraint | null
+}) => {
+ if (constraint === null) {
+ return <p>Constraint is not available on this gene</p>
+ }
+
+ return (
+ // @ts-expect-error
+ <BaseTable>
+ <thead>
+ <tr>
+ <th scope="col">Category</th>
+ <th scope="col">Expected SNVs</th>
+ <th scope="col">Observed SNVs</th>
+ <th scope="col">Constraint metric</th>
+ </tr>
+ </thead>
+ {isProteinMitochondrialGeneConstraint(constraint) ? (
+ <ProteinConstraintMetrics constraint={constraint} />
+ ) : (
+ <RNAConstraintMetrics constraint={constraint} />
+ )}
+ </BaseTable>
+ )
+}
+
+export default MitochondrialConstraintTable
diff --git a/browser/src/ConstraintTable/__snapshots__/ConstraintTable.spec.tsx.snap b/browser/src/ConstraintTable/__snapshots__/ConstraintTable.spec.tsx.snap
index 98f96d45f..2480452d7 100644
--- a/browser/src/ConstraintTable/__snapshots__/ConstraintTable.spec.tsx.snap
+++ b/browser/src/ConstraintTable/__snapshots__/ConstraintTable.spec.tsx.snap
@@ -1,5 +1,131 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
+exports[` 1`] = `
+<p>
+ Constraint is not available on this gene
+</p>
+`;
+
+exports[` 2`] = `
+<p>
+ Constraint is not available on this gene
+</p>
+`;
+
+exports[` 3`] = `
+<p>
+ Constraint is not available on this gene
+</p>
+`;
+
+exports[` 4`] = `
+<p>
+ Constraint is not available on this gene
+</p>
+`;
+
+exports[` 5`] = `
+<p>
+ Constraint is not available on this gene
+</p>
+`;
+
+exports[` 6`] = `
+<p>
+ Constraint is not available on this gene
+</p>
+`;
+
+exports[` 7`] = `
+<p>
+ Constraint not yet available for
+ gnomAD v3.1.2
+ .
+</p>
+`;
+
+exports[` 8`] = `
+<p>
+ Constraint not yet available for
+ gnomAD v3.1.2 (controls/biobanks)
+ .
+</p>
+`;
+
+exports[` 9`] = `
+<p>
+ Constraint not yet available for
+ gnomAD v3.1.2 (non-cancer)
+ .
+</p>
+`;
+
+exports[` 10`] = `
+<p>
+ Constraint not yet available for
+ gnomAD v3.1.2 (non-neuro)
+ .
+</p>
+`;
+
+exports[` 11`] = `
+<p>
+ Constraint not yet available for
+ gnomAD v3.1.2 (non-TOPMed)
+ .
+</p>
+`;
+
+exports[` 12`] = `
+<p>
+ Constraint not yet available for
+ gnomAD v3.1.2 (non-v2)
+ .
+</p>
+`;
+
+exports[` 13`] = `
+<p>
+ Constraint is not available on this gene
+</p>
+`;
+
+exports[` 14`] = `
+<p>
+ Constraint is not available on this gene
+</p>
+`;
+
+exports[` 15`] = `
+<p>
+ Constraint is not available on this gene
+</p>
+`;
+
+exports[` 16`] = `
+<p>
+ Constraint is not available on this gene
+</p>
+`;
+
+exports[` 17`] = `
+<p>
+ Constraint is not available on this gene
+</p>
+`;
+
+exports[` 18`] = `
+<p>
+ Constraint is not available on this gene
+</p>
+`;
+
+exports[` 19`] = `
+<p>
+ Constraint is not available on this gene
+</p>
+`;
+
exports[`ConstraintTable with "exac" dataset selected with a minimal gene has no unexpected changes 1`] = `
<p>
Constraint not available for this
@@ -14,19 +140,159 @@ exports[`ConstraintTable with "exac" dataset selected with a minimal transcript
</p>
`;
-exports[`ConstraintTable with "exac" dataset selected with a mitochondrial gene has no unexpected changes 1`] = `
-<p>
- Constraint is not available for mitochondrial
-
- genes
-</p>
+exports[`ConstraintTable with "exac" dataset selected with a mitochondrial RNA gene has no unexpected changes 1`] = `
+<table
+ className="Table__BaseTable-sc-7fgtt2-0 dIBzV"
+>
+ <thead>
+ <tr>
+ <th
+ scope="col"
+ >
+ Category
+ </th>
+ <th
+ scope="col"
+ >
+ Expected SNVs
+ </th>
+ <th
+ scope="col"
+ >
+ Observed SNVs
+ </th>
+ <th
+ scope="col"
+ >
+ Constraint metric
+ </th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <th
+ scope="row"
+ >
+ RNA variant
+ </th>
+ <td>
+ 0.2
+ </td>
+ <td>
+ 0.1
+ </td>
+ <td>
+ 0.33
+ (
+ 0.31
+ -
+ 0.35
+ )
+ </td>
+ </tr>
+ </tbody>
+</table>
+`;
+
+exports[`ConstraintTable with "exac" dataset selected with a mitochondrial protein gene has no unexpected changes 1`] = `
+<table
+ className="Table__BaseTable-sc-7fgtt2-0 dIBzV"
+>
+ <thead>
+ <tr>
+ <th
+ scope="col"
+ >
+ Category
+ </th>
+ <th
+ scope="col"
+ >
+ Expected SNVs
+ </th>
+ <th
+ scope="col"
+ >
+ Observed SNVs
+ </th>
+ <th
+ scope="col"
+ >
+ Constraint metric
+ </th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <th
+ scope="row"
+ >
+ Synonymous
+ </th>
+ <td>
+ 0.2
+ </td>
+ <td>
+ 0.2
+ </td>
+ <td>
+ 0.91
+ (
+ 0.80
+ -
+ 0.95
+ )
+ </td>
+ </tr>
+ <tr>
+ <th
+ scope="row"
+ >
+ Missense
+ </th>
+ <td>
+ 0.3
+ </td>
+ <td>
+ 0.3
+ </td>
+ <td>
+ 0.89
+ (
+ 0.80
+ -
+ 0.99
+ )
+ </td>
+ </tr>
+ <tr>
+ <th
+ scope="row"
+ >
+ pLoF
+ </th>
+ <td>
+ 0.1
+ </td>
+ <td>
+ 0.1
+ </td>
+ <td>
+ 0.79
+ (
+ 0.60
+ -
+ 0.90
+ )
+ </td>
+ </tr>
+ </tbody>
+</table>
`;
exports[`ConstraintTable with "exac" dataset selected with a mitochondrial transcript has no unexpected changes 1`] = `
<p>
- Constraint is not available for mitochondrial
-
- transcripts
+ Constraint is not available for mitochondrial transcripts
</p>
`;
@@ -791,19 +1057,159 @@ exports[`ConstraintTable with "gnomad_cnv_r4" dataset selected with a minimal tr
</p>
`;
-exports[`ConstraintTable with "gnomad_cnv_r4" dataset selected with a mitochondrial gene has no unexpected changes 1`] = `
-<p>
- Constraint is not available for mitochondrial
-
- genes
-</p>
+exports[`ConstraintTable with "gnomad_cnv_r4" dataset selected with a mitochondrial RNA gene has no unexpected changes 1`] = `
+<table
+ className="Table__BaseTable-sc-7fgtt2-0 dIBzV"
+>
+ <thead>
+ <tr>
+ <th
+ scope="col"
+ >
+ Category
+ </th>
+ <th
+ scope="col"
+ >
+ Expected SNVs
+ </th>
+ <th
+ scope="col"
+ >
+ Observed SNVs
+ </th>
+ <th
+ scope="col"
+ >
+ Constraint metric
+ </th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <th
+ scope="row"
+ >
+ RNA variant
+ </th>
+ <td>
+ 0.2
+ </td>
+ <td>
+ 0.1
+ </td>
+ <td>
+ 0.33
+ (
+ 0.31
+ -
+ 0.35
+ )
+ </td>
+ </tr>
+ </tbody>
+</table>
+`;
+
+exports[`ConstraintTable with "gnomad_cnv_r4" dataset selected with a mitochondrial protein gene has no unexpected changes 1`] = `
+<table
+ className="Table__BaseTable-sc-7fgtt2-0 dIBzV"
+>
+ <thead>
+ <tr>
+ <th
+ scope="col"
+ >
+ Category
+ </th>
+ <th
+ scope="col"
+ >
+ Expected SNVs
+ </th>
+ <th
+ scope="col"
+ >
+ Observed SNVs
+ </th>
+ <th
+ scope="col"
+ >
+ Constraint metric
+ </th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <th
+ scope="row"
+ >
+ Synonymous
+ </th>
+ <td>
+ 0.2
+ </td>
+ <td>
+ 0.2
+ </td>
+ <td>
+ 0.91
+ (
+ 0.80
+ -
+ 0.95
+ )
+ </td>
+ </tr>
+ <tr>
+ <th
+ scope="row"
+ >
+ Missense
+ </th>
+ <td>
+ 0.3
+ </td>
+ <td>
+ 0.3
+ </td>
+ <td>
+ 0.89
+ (
+ 0.80
+ -
+ 0.99
+ )
+ </td>
+ </tr>
+ <tr>
+ <th
+ scope="row"
+ >
+ pLoF
+ </th>
+ <td>
+ 0.1
+ </td>
+ <td>
+ 0.1
+ </td>
+ <td>
+ 0.79
+ (
+ 0.60
+ -
+ 0.90
+ )
+ </td>
+ </tr>
+ </tbody>
+</table>
`;
exports[`ConstraintTable with "gnomad_cnv_r4" dataset selected with a mitochondrial transcript has no unexpected changes 1`] = `
<p>
- Constraint is not available for mitochondrial
-
- transcripts
+ Constraint is not available for mitochondrial transcripts
</p>
`;
@@ -1568,19 +1974,159 @@ exports[`ConstraintTable with "gnomad_r2_1" dataset selected with a minimal tran
</p>
`;
-exports[`ConstraintTable with "gnomad_r2_1" dataset selected with a mitochondrial gene has no unexpected changes 1`] = `
-<p>
- Constraint is not available for mitochondrial
-
- genes
-</p>
+exports[`ConstraintTable with "gnomad_r2_1" dataset selected with a mitochondrial RNA gene has no unexpected changes 1`] = `
+<table
+ className="Table__BaseTable-sc-7fgtt2-0 dIBzV"
+>
+ <thead>
+ <tr>
+ <th
+ scope="col"
+ >
+ Category
+ </th>
+ <th
+ scope="col"
+ >
+ Expected SNVs
+ </th>
+ <th
+ scope="col"
+ >
+ Observed SNVs
+ </th>
+ <th
+ scope="col"
+ >
+ Constraint metric
+ </th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <th
+ scope="row"
+ >
+ RNA variant
+ </th>
+ <td>
+ 0.2
+ </td>
+ <td>
+ 0.1
+ </td>
+ <td>
+ 0.33
+ (
+ 0.31
+ -
+ 0.35
+ )
+ </td>
+ </tr>
+ </tbody>
+</table>
+`;
+
+exports[`ConstraintTable with "gnomad_r2_1" dataset selected with a mitochondrial protein gene has no unexpected changes 1`] = `
+<table
+ className="Table__BaseTable-sc-7fgtt2-0 dIBzV"
+>
+ <thead>
+ <tr>
+ <th
+ scope="col"
+ >
+ Category
+ </th>
+ <th
+ scope="col"
+ >
+ Expected SNVs
+ </th>
+ <th
+ scope="col"
+ >
+ Observed SNVs
+ </th>
+ <th
+ scope="col"
+ >
+ Constraint metric
+ </th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <th
+ scope="row"
+ >
+ Synonymous
+ </th>
+ <td>
+ 0.2
+ </td>
+ <td>
+ 0.2
+ </td>
+ <td>
+ 0.91
+ (
+ 0.80
+ -
+ 0.95
+ )
+ </td>
+ </tr>
+ <tr>
+ <th
+ scope="row"
+ >
+ Missense
+ </th>
+ <td>
+ 0.3
+ </td>
+ <td>
+ 0.3
+ </td>
+ <td>
+ 0.89
+ (
+ 0.80
+ -
+ 0.99
+ )
+ </td>
+ </tr>
+ <tr>
+ <th
+ scope="row"
+ >
+ pLoF
+ </th>
+ <td>
+ 0.1
+ </td>
+ <td>
+ 0.1
+ </td>
+ <td>
+ 0.79
+ (
+ 0.60
+ -
+ 0.90
+ )
+ </td>
+ </tr>
+ </tbody>
+</table>
`;
exports[`ConstraintTable with "gnomad_r2_1" dataset selected with a mitochondrial transcript has no unexpected changes 1`] = `
<p>
- Constraint is not available for mitochondrial
-
- transcripts
+ Constraint is not available for mitochondrial transcripts
</p>
`;
@@ -2353,19 +2899,159 @@ exports[`ConstraintTable with "gnomad_r2_1_controls" dataset selected with a min
</p>
`;
-exports[`ConstraintTable with "gnomad_r2_1_controls" dataset selected with a mitochondrial gene has no unexpected changes 1`] = `
-<p>
- Constraint is not available for mitochondrial
-
- genes
-</p>
+exports[`ConstraintTable with "gnomad_r2_1_controls" dataset selected with a mitochondrial RNA gene has no unexpected changes 1`] = `
+<table
+ className="Table__BaseTable-sc-7fgtt2-0 dIBzV"
+>
+ <thead>
+ <tr>
+ <th
+ scope="col"
+ >
+ Category
+ </th>
+ <th
+ scope="col"
+ >
+ Expected SNVs
+ </th>
+ <th
+ scope="col"
+ >
+ Observed SNVs
+ </th>
+ <th
+ scope="col"
+ >
+ Constraint metric
+ </th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <th
+ scope="row"
+ >
+ RNA variant
+ </th>
+ <td>
+ 0.2
+ </td>
+ <td>
+ 0.1
+ </td>
+ <td>
+ 0.33
+ (
+ 0.31
+ -
+ 0.35
+ )
+ </td>
+ </tr>
+ </tbody>
+</table>
+`;
+
+exports[`ConstraintTable with "gnomad_r2_1_controls" dataset selected with a mitochondrial protein gene has no unexpected changes 1`] = `
+<table
+ className="Table__BaseTable-sc-7fgtt2-0 dIBzV"
+>
+ <thead>
+ <tr>
+ <th
+ scope="col"
+ >
+ Category
+ </th>
+ <th
+ scope="col"
+ >
+ Expected SNVs
+ </th>
+ <th
+ scope="col"
+ >
+ Observed SNVs
+ </th>
+ <th
+ scope="col"
+ >
+ Constraint metric
+ </th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <th
+ scope="row"
+ >
+ Synonymous
+ </th>
+ <td>
+ 0.2
+ </td>
+ <td>
+ 0.2
+ </td>
+ <td>
+ 0.91
+ (
+ 0.80
+ -
+ 0.95
+ )
+ </td>
+ </tr>
+ <tr>
+ <th
+ scope="row"
+ >
+ Missense
+ </th>
+ <td>
+ 0.3
+ </td>
+ <td>
+ 0.3
+ </td>
+ <td>
+ 0.89
+ (
+ 0.80
+ -
+ 0.99
+ )
+ </td>
+ </tr>
+ <tr>
+ <th
+ scope="row"
+ >
+ pLoF
+ </th>
+ <td>
+ 0.1
+ </td>
+ <td>
+ 0.1
+ </td>
+ <td>
+ 0.79
+ (
+ 0.60
+ -
+ 0.90
+ )
+ </td>
+ </tr>
+ </tbody>
+</table>
`;
exports[`ConstraintTable with "gnomad_r2_1_controls" dataset selected with a mitochondrial transcript has no unexpected changes 1`] = `
<p>
- Constraint is not available for mitochondrial
-
- transcripts
+ Constraint is not available for mitochondrial transcripts
</p>
`;
@@ -3138,19 +3824,159 @@ exports[`ConstraintTable with "gnomad_r2_1_non_cancer" dataset selected with a m
</p>
`;
-exports[`ConstraintTable with "gnomad_r2_1_non_cancer" dataset selected with a mitochondrial gene has no unexpected changes 1`] = `
-<p>
- Constraint is not available for mitochondrial
-
- genes
-</p>
+exports[`ConstraintTable with "gnomad_r2_1_non_cancer" dataset selected with a mitochondrial RNA gene has no unexpected changes 1`] = `
+<table
+ className="Table__BaseTable-sc-7fgtt2-0 dIBzV"
+>
+ <thead>
+ <tr>
+ <th
+ scope="col"
+ >
+ Category
+ </th>
+ <th
+ scope="col"
+ >
+ Expected SNVs
+ </th>
+ <th
+ scope="col"
+ >
+ Observed SNVs
+ </th>
+ <th
+ scope="col"
+ >
+ Constraint metric
+ </th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <th
+ scope="row"
+ >
+ RNA variant
+ </th>
+ <td>
+ 0.2
+ </td>
+ <td>
+ 0.1
+ </td>
+ <td>
+ 0.33
+ (
+ 0.31
+ -
+ 0.35
+ )
+ </td>
+ </tr>
+ </tbody>
+</table>
+`;
+
+exports[`ConstraintTable with "gnomad_r2_1_non_cancer" dataset selected with a mitochondrial protein gene has no unexpected changes 1`] = `
+<table
+ className="Table__BaseTable-sc-7fgtt2-0 dIBzV"
+>
+ <thead>
+ <tr>
+ <th
+ scope="col"
+ >
+ Category
+ </th>
+ <th
+ scope="col"
+ >
+ Expected SNVs
+ </th>
+ <th
+ scope="col"
+ >
+ Observed SNVs
+ </th>
+ <th
+ scope="col"
+ >
+ Constraint metric
+ </th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <th
+ scope="row"
+ >
+ Synonymous
+ </th>
+ <td>
+ 0.2
+ </td>
+ <td>
+ 0.2
+ </td>
+ <td>
+ 0.91
+ (
+ 0.80
+ -
+ 0.95
+ )
+ </td>
+ </tr>
+ <tr>
+ <th
+ scope="row"
+ >
+ Missense
+ </th>
+ <td>
+ 0.3
+ </td>
+ <td>
+ 0.3
+ </td>
+ <td>
+ 0.89
+ (
+ 0.80
+ -
+ 0.99
+ )
+ </td>
+ </tr>
+ <tr>
+ <th
+ scope="row"
+ >
+ pLoF
+ </th>
+ <td>
+ 0.1
+ </td>
+ <td>
+ 0.1
+ </td>
+ <td>
+ 0.79
+ (
+ 0.60
+ -
+ 0.90
+ )
+ </td>
+ </tr>
+ </tbody>
+</table>
`;
exports[`ConstraintTable with "gnomad_r2_1_non_cancer" dataset selected with a mitochondrial transcript has no unexpected changes 1`] = `
<p>
- Constraint is not available for mitochondrial
-
- transcripts
+ Constraint is not available for mitochondrial transcripts
</p>
`;
@@ -3923,19 +4749,159 @@ exports[`ConstraintTable with "gnomad_r2_1_non_neuro" dataset selected with a mi
</p>
`;
-exports[`ConstraintTable with "gnomad_r2_1_non_neuro" dataset selected with a mitochondrial gene has no unexpected changes 1`] = `
-<p>
- Constraint is not available for mitochondrial
-
- genes
-</p>
+exports[`ConstraintTable with "gnomad_r2_1_non_neuro" dataset selected with a mitochondrial RNA gene has no unexpected changes 1`] = `
+<table
+ className="Table__BaseTable-sc-7fgtt2-0 dIBzV"
+>
+ <thead>
+ <tr>
+ <th
+ scope="col"
+ >
+ Category
+ </th>
+ <th
+ scope="col"
+ >
+ Expected SNVs
+ </th>
+ <th
+ scope="col"
+ >
+ Observed SNVs
+ </th>
+ <th
+ scope="col"
+ >
+ Constraint metric
+ </th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <th
+ scope="row"
+ >
+ RNA variant
+ </th>
+ <td>
+ 0.2
+ </td>
+ <td>
+ 0.1
+ </td>
+ <td>
+ 0.33
+ (
+ 0.31
+ -
+ 0.35
+ )
+ </td>
+ </tr>
+ </tbody>
+</table>
+`;
+
+exports[`ConstraintTable with "gnomad_r2_1_non_neuro" dataset selected with a mitochondrial protein gene has no unexpected changes 1`] = `
+<table
+ className="Table__BaseTable-sc-7fgtt2-0 dIBzV"
+>
+ <thead>
+ <tr>
+ <th
+ scope="col"
+ >
+ Category
+ </th>
+ <th
+ scope="col"
+ >
+ Expected SNVs
+ </th>
+ <th
+ scope="col"
+ >
+ Observed SNVs
+ </th>
+ <th
+ scope="col"
+ >
+ Constraint metric
+ </th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <th
+ scope="row"
+ >
+ Synonymous
+ </th>
+ <td>
+ 0.2
+ </td>
+ <td>
+ 0.2
+ </td>
+ <td>
+ 0.91
+ (
+ 0.80
+ -
+ 0.95
+ )
+ </td>
+ </tr>
+ <tr>
+ <th
+ scope="row"
+ >
+ Missense
+ </th>
+ <td>
+ 0.3
+ </td>
+ <td>
+ 0.3
+ </td>
+ <td>
+ 0.89
+ (
+ 0.80
+ -
+ 0.99
+ )
+ </td>
+ </tr>
+ <tr>
+ <th
+ scope="row"
+ >
+ pLoF
+ </th>
+ <td>
+ 0.1
+ </td>
+ <td>
+ 0.1
+ </td>
+ <td>
+ 0.79
+ (
+ 0.60
+ -
+ 0.90
+ )
+ </td>
+ </tr>
+ </tbody>
+</table>
`;
exports[`ConstraintTable with "gnomad_r2_1_non_neuro" dataset selected with a mitochondrial transcript has no unexpected changes 1`] = `
<p>
- Constraint is not available for mitochondrial
-
- transcripts
+ Constraint is not available for mitochondrial transcripts
</p>
`;
@@ -4708,19 +5674,159 @@ exports[`ConstraintTable with "gnomad_r2_1_non_topmed" dataset selected with a m
</p>
`;
-exports[`ConstraintTable with "gnomad_r2_1_non_topmed" dataset selected with a mitochondrial gene has no unexpected changes 1`] = `
-<p>
- Constraint is not available for mitochondrial
-
- genes
-</p>
+exports[`ConstraintTable with "gnomad_r2_1_non_topmed" dataset selected with a mitochondrial RNA gene has no unexpected changes 1`] = `
+<table
+ className="Table__BaseTable-sc-7fgtt2-0 dIBzV"
+>
+ <thead>
+ <tr>
+ <th
+ scope="col"
+ >
+ Category
+ </th>
+ <th
+ scope="col"
+ >
+ Expected SNVs
+ </th>
+ <th
+ scope="col"
+ >
+ Observed SNVs
+ </th>
+ <th
+ scope="col"
+ >
+ Constraint metric
+ </th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <th
+ scope="row"
+ >
+ RNA variant
+ </th>
+ <td>
+ 0.2
+ </td>
+ <td>
+ 0.1
+ </td>
+ <td>
+ 0.33
+ (
+ 0.31
+ -
+ 0.35
+ )
+ </td>
+ </tr>
+ </tbody>
+</table>
+`;
+
+exports[`ConstraintTable with "gnomad_r2_1_non_topmed" dataset selected with a mitochondrial protein gene has no unexpected changes 1`] = `
+<table
+ className="Table__BaseTable-sc-7fgtt2-0 dIBzV"
+>
+ <thead>
+ <tr>
+ <th
+ scope="col"
+ >
+ Category
+ </th>
+ <th
+ scope="col"
+ >
+ Expected SNVs
+ </th>
+ <th
+ scope="col"
+ >
+ Observed SNVs
+ </th>
+ <th
+ scope="col"
+ >
+ Constraint metric
+ </th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <th
+ scope="row"
+ >
+ Synonymous
+ </th>
+ <td>
+ 0.2
+ </td>
+ <td>
+ 0.2
+ </td>
+ <td>
+ 0.91
+ (
+ 0.80
+ -
+ 0.95
+ )
+ </td>
+ </tr>
+ <tr>
+ <th
+ scope="row"
+ >
+ Missense
+ </th>
+ <td>
+ 0.3
+ </td>
+ <td>
+ 0.3
+ </td>
+ <td>
+ 0.89
+ (
+ 0.80
+ -
+ 0.99
+ )
+ </td>
+ </tr>
+ <tr>
+ <th
+ scope="row"
+ >
+ pLoF
+ </th>
+ <td>
+ 0.1
+ </td>
+ <td>
+ 0.1
+ </td>
+ <td>
+ 0.79
+ (
+ 0.60
+ -
+ 0.90
+ )
+ </td>
+ </tr>
+ </tbody>
+</table>
`;
exports[`ConstraintTable with "gnomad_r2_1_non_topmed" dataset selected with a mitochondrial transcript has no unexpected changes 1`] = `
<p>
- Constraint is not available for mitochondrial
-
- transcripts
+ Constraint is not available for mitochondrial transcripts
</p>
`;
@@ -4756,7 +5862,15 @@ exports[`ConstraintTable with "gnomad_r3" dataset selected with a minimal transc
</p>
`;
-exports[`ConstraintTable with "gnomad_r3" dataset selected with a mitochondrial gene has no unexpected changes 1`] = `
+exports[`ConstraintTable with "gnomad_r3" dataset selected with a mitochondrial RNA gene has no unexpected changes 1`] = `
+<p>
+ Constraint not yet available for
+ gnomAD v3.1.2
+ .
+</p>
+`;
+
+exports[`ConstraintTable with "gnomad_r3" dataset selected with a mitochondrial protein gene has no unexpected changes 1`] = `
<p>
Constraint not yet available for
gnomAD v3.1.2
@@ -4804,7 +5918,15 @@ exports[`ConstraintTable with "gnomad_r3_controls_and_biobanks" dataset selected
</p>
`;
-exports[`ConstraintTable with "gnomad_r3_controls_and_biobanks" dataset selected with a mitochondrial gene has no unexpected changes 1`] = `
+exports[`ConstraintTable with "gnomad_r3_controls_and_biobanks" dataset selected with a mitochondrial RNA gene has no unexpected changes 1`] = `
+<p>
+ Constraint not yet available for
+ gnomAD v3.1.2 (controls/biobanks)
+ .
+</p>
+`;
+
+exports[`ConstraintTable with "gnomad_r3_controls_and_biobanks" dataset selected with a mitochondrial protein gene has no unexpected changes 1`] = `
<p>
Constraint not yet available for
gnomAD v3.1.2 (controls/biobanks)
@@ -4852,7 +5974,15 @@ exports[`ConstraintTable with "gnomad_r3_non_cancer" dataset selected with a min
</p>
`;
-exports[`ConstraintTable with "gnomad_r3_non_cancer" dataset selected with a mitochondrial gene has no unexpected changes 1`] = `
+exports[`ConstraintTable with "gnomad_r3_non_cancer" dataset selected with a mitochondrial RNA gene has no unexpected changes 1`] = `
+<p>
+ Constraint not yet available for
+ gnomAD v3.1.2 (non-cancer)
+ .
+</p>
+`;
+
+exports[`ConstraintTable with "gnomad_r3_non_cancer" dataset selected with a mitochondrial protein gene has no unexpected changes 1`] = `
<p>
Constraint not yet available for
gnomAD v3.1.2 (non-cancer)
@@ -4900,7 +6030,15 @@ exports[`ConstraintTable with "gnomad_r3_non_neuro" dataset selected with a mini
</p>
`;
-exports[`ConstraintTable with "gnomad_r3_non_neuro" dataset selected with a mitochondrial gene has no unexpected changes 1`] = `
+exports[`ConstraintTable with "gnomad_r3_non_neuro" dataset selected with a mitochondrial RNA gene has no unexpected changes 1`] = `
+<p>
+ Constraint not yet available for
+ gnomAD v3.1.2 (non-neuro)
+ .
+</p>
+`;
+
+exports[`ConstraintTable with "gnomad_r3_non_neuro" dataset selected with a mitochondrial protein gene has no unexpected changes 1`] = `
<p>
Constraint not yet available for
gnomAD v3.1.2 (non-neuro)
@@ -4948,7 +6086,15 @@ exports[`ConstraintTable with "gnomad_r3_non_topmed" dataset selected with a min
</p>
`;
-exports[`ConstraintTable with "gnomad_r3_non_topmed" dataset selected with a mitochondrial gene has no unexpected changes 1`] = `
+exports[`ConstraintTable with "gnomad_r3_non_topmed" dataset selected with a mitochondrial RNA gene has no unexpected changes 1`] = `
+<p>
+ Constraint not yet available for
+ gnomAD v3.1.2 (non-TOPMed)
+ .
+</p>
+`;
+
+exports[`ConstraintTable with "gnomad_r3_non_topmed" dataset selected with a mitochondrial protein gene has no unexpected changes 1`] = `
<p>
Constraint not yet available for
gnomAD v3.1.2 (non-TOPMed)
@@ -4996,7 +6142,15 @@ exports[`ConstraintTable with "gnomad_r3_non_v2" dataset selected with a minimal
</p>
`;
-exports[`ConstraintTable with "gnomad_r3_non_v2" dataset selected with a mitochondrial gene has no unexpected changes 1`] = `
+exports[`ConstraintTable with "gnomad_r3_non_v2" dataset selected with a mitochondrial RNA gene has no unexpected changes 1`] = `
+<p>
+ Constraint not yet available for
+ gnomAD v3.1.2 (non-v2)
+ .
+</p>
+`;
+
+exports[`ConstraintTable with "gnomad_r3_non_v2" dataset selected with a mitochondrial protein gene has no unexpected changes 1`] = `
<p>
Constraint not yet available for
gnomAD v3.1.2 (non-v2)
@@ -5773,19 +6927,159 @@ exports[`ConstraintTable with "gnomad_r4" dataset selected with a minimal transc
</p>
`;
-exports[`ConstraintTable with "gnomad_r4" dataset selected with a mitochondrial gene has no unexpected changes 1`] = `
-<p>
- Constraint is not available for mitochondrial
-
- genes
-</p>
+exports[`ConstraintTable with "gnomad_r4" dataset selected with a mitochondrial RNA gene has no unexpected changes 1`] = `
+<table
+ className="Table__BaseTable-sc-7fgtt2-0 dIBzV"
+>
+ <thead>
+ <tr>
+ <th
+ scope="col"
+ >
+ Category
+ </th>
+ <th
+ scope="col"
+ >
+ Expected SNVs
+ </th>
+ <th
+ scope="col"
+ >
+ Observed SNVs
+ </th>
+ <th
+ scope="col"
+ >
+ Constraint metric
+ </th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <th
+ scope="row"
+ >
+ RNA variant
+ </th>
+ <td>
+ 0.2
+ </td>
+ <td>
+ 0.1
+ </td>
+ <td>
+ 0.33
+ (
+ 0.31
+ -
+ 0.35
+ )
+ </td>
+ </tr>
+ </tbody>
+</table>
+`;
+
+exports[`ConstraintTable with "gnomad_r4" dataset selected with a mitochondrial protein gene has no unexpected changes 1`] = `
+<table
+ className="Table__BaseTable-sc-7fgtt2-0 dIBzV"
+>
+ <thead>
+ <tr>
+ <th
+ scope="col"
+ >
+ Category
+ </th>
+ <th
+ scope="col"
+ >
+ Expected SNVs
+ </th>
+ <th
+ scope="col"
+ >
+ Observed SNVs
+ </th>
+ <th
+ scope="col"
+ >
+ Constraint metric
+ </th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <th
+ scope="row"
+ >
+ Synonymous
+ </th>
+ <td>
+ 0.2
+ </td>
+ <td>
+ 0.2
+ </td>
+ <td>
+ 0.91
+ (
+ 0.80
+ -
+ 0.95
+ )
+ </td>
+ </tr>
+ <tr>
+ <th
+ scope="row"
+ >
+ Missense
+ </th>
+ <td>
+ 0.3
+ </td>
+ <td>
+ 0.3
+ </td>
+ <td>
+ 0.89
+ (
+ 0.80
+ -
+ 0.99
+ )
+ </td>
+ </tr>
+ <tr>
+ <th
+ scope="row"
+ >
+ pLoF
+ </th>
+ <td>
+ 0.1
+ </td>
+ <td>
+ 0.1
+ </td>
+ <td>
+ 0.79
+ (
+ 0.60
+ -
+ 0.90
+ )
+ </td>
+ </tr>
+ </tbody>
+</table>
`;
exports[`ConstraintTable with "gnomad_r4" dataset selected with a mitochondrial transcript has no unexpected changes 1`] = `
<p>
- Constraint is not available for mitochondrial
-
- transcripts
+ Constraint is not available for mitochondrial transcripts
</p>
`;
@@ -6550,19 +7844,159 @@ exports[`ConstraintTable with "gnomad_r4_non_ukb" dataset selected with a minima
</p>
`;
-exports[`ConstraintTable with "gnomad_r4_non_ukb" dataset selected with a mitochondrial gene has no unexpected changes 1`] = `
-<p>
- Constraint is not available for mitochondrial
-
- genes
-</p>
+exports[`ConstraintTable with "gnomad_r4_non_ukb" dataset selected with a mitochondrial RNA gene has no unexpected changes 1`] = `
+<table
+ className="Table__BaseTable-sc-7fgtt2-0 dIBzV"
+>
+ <thead>
+ <tr>
+ <th
+ scope="col"
+ >
+ Category
+ </th>
+ <th
+ scope="col"
+ >
+ Expected SNVs
+ </th>
+ <th
+ scope="col"
+ >
+ Observed SNVs
+ </th>
+ <th
+ scope="col"
+ >
+ Constraint metric
+ </th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <th
+ scope="row"
+ >
+ RNA variant
+ </th>
+ <td>
+ 0.2
+ </td>
+ <td>
+ 0.1
+ </td>
+ <td>
+ 0.33
+ (
+ 0.31
+ -
+ 0.35
+ )
+ </td>
+ </tr>
+ </tbody>
+</table>
+`;
+
+exports[`ConstraintTable with "gnomad_r4_non_ukb" dataset selected with a mitochondrial protein gene has no unexpected changes 1`] = `
+<table
+ className="Table__BaseTable-sc-7fgtt2-0 dIBzV"
+>
+ <thead>
+ <tr>
+ <th
+ scope="col"
+ >
+ Category
+ </th>
+ <th
+ scope="col"
+ >
+ Expected SNVs
+ </th>
+ <th
+ scope="col"
+ >
+ Observed SNVs
+ </th>
+ <th
+ scope="col"
+ >
+ Constraint metric
+ </th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <th
+ scope="row"
+ >
+ Synonymous
+ </th>
+ <td>
+ 0.2
+ </td>
+ <td>
+ 0.2
+ </td>
+ <td>
+ 0.91
+ (
+ 0.80
+ -
+ 0.95
+ )
+ </td>
+ </tr>
+ <tr>
+ <th
+ scope="row"
+ >
+ Missense
+ </th>
+ <td>
+ 0.3
+ </td>
+ <td>
+ 0.3
+ </td>
+ <td>
+ 0.89
+ (
+ 0.80
+ -
+ 0.99
+ )
+ </td>
+ </tr>
+ <tr>
+ <th
+ scope="row"
+ >
+ pLoF
+ </th>
+ <td>
+ 0.1
+ </td>
+ <td>
+ 0.1
+ </td>
+ <td>
+ 0.79
+ (
+ 0.60
+ -
+ 0.90
+ )
+ </td>
+ </tr>
+ </tbody>
+</table>
`;
exports[`ConstraintTable with "gnomad_r4_non_ukb" dataset selected with a mitochondrial transcript has no unexpected changes 1`] = `
<p>
- Constraint is not available for mitochondrial
-
- transcripts
+ Constraint is not available for mitochondrial transcripts
</p>
`;
@@ -7327,19 +8761,159 @@ exports[`ConstraintTable with "gnomad_sv_r2_1" dataset selected with a minimal t
</p>
`;
-exports[`ConstraintTable with "gnomad_sv_r2_1" dataset selected with a mitochondrial gene has no unexpected changes 1`] = `
-<p>
- Constraint is not available for mitochondrial
-
- genes
-</p>
+exports[`ConstraintTable with "gnomad_sv_r2_1" dataset selected with a mitochondrial RNA gene has no unexpected changes 1`] = `
+<table
+ className="Table__BaseTable-sc-7fgtt2-0 dIBzV"
+>
+ <thead>
+ <tr>
+ <th
+ scope="col"
+ >
+ Category
+ </th>
+ <th
+ scope="col"
+ >
+ Expected SNVs
+ </th>
+ <th
+ scope="col"
+ >
+ Observed SNVs
+ </th>
+ <th
+ scope="col"
+ >
+ Constraint metric
+ </th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <th
+ scope="row"
+ >
+ RNA variant
+ </th>
+ <td>
+ 0.2
+ </td>
+ <td>
+ 0.1
+ </td>
+ <td>
+ 0.33
+ (
+ 0.31
+ -
+ 0.35
+ )
+ </td>
+ </tr>
+ </tbody>
+</table>
+`;
+
+exports[`ConstraintTable with "gnomad_sv_r2_1" dataset selected with a mitochondrial protein gene has no unexpected changes 1`] = `
+<table
+ className="Table__BaseTable-sc-7fgtt2-0 dIBzV"
+>
+ <thead>
+ <tr>
+ <th
+ scope="col"
+ >
+ Category
+ </th>
+ <th
+ scope="col"
+ >
+ Expected SNVs
+ </th>
+ <th
+ scope="col"
+ >
+ Observed SNVs
+ </th>
+ <th
+ scope="col"
+ >
+ Constraint metric
+ </th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <th
+ scope="row"
+ >
+ Synonymous
+ </th>
+ <td>
+ 0.2
+ </td>
+ <td>
+ 0.2
+ </td>
+ <td>
+ 0.91
+ (
+ 0.80
+ -
+ 0.95
+ )
+ </td>
+ </tr>
+ <tr>
+ <th
+ scope="row"
+ >
+ Missense
+ </th>
+ <td>
+ 0.3
+ </td>
+ <td>
+ 0.3
+ </td>
+ <td>
+ 0.89
+ (
+ 0.80
+ -
+ 0.99
+ )
+ </td>
+ </tr>
+ <tr>
+ <th
+ scope="row"
+ >
+ pLoF
+ </th>
+ <td>
+ 0.1
+ </td>
+ <td>
+ 0.1
+ </td>
+ <td>
+ 0.79
+ (
+ 0.60
+ -
+ 0.90
+ )
+ </td>
+ </tr>
+ </tbody>
+</table>
`;
exports[`ConstraintTable with "gnomad_sv_r2_1" dataset selected with a mitochondrial transcript has no unexpected changes 1`] = `
<p>
- Constraint is not available for mitochondrial
-
- transcripts
+ Constraint is not available for mitochondrial transcripts
</p>
`;
@@ -8112,19 +9686,159 @@ exports[`ConstraintTable with "gnomad_sv_r2_1_controls" dataset selected with a
</p>
`;
-exports[`ConstraintTable with "gnomad_sv_r2_1_controls" dataset selected with a mitochondrial gene has no unexpected changes 1`] = `
-<p>
- Constraint is not available for mitochondrial
-
- genes
-</p>
+exports[`ConstraintTable with "gnomad_sv_r2_1_controls" dataset selected with a mitochondrial RNA gene has no unexpected changes 1`] = `
+<table
+ className="Table__BaseTable-sc-7fgtt2-0 dIBzV"
+>
+ <thead>
+ <tr>
+ <th
+ scope="col"
+ >
+ Category
+ </th>
+ <th
+ scope="col"
+ >
+ Expected SNVs
+ </th>
+ <th
+ scope="col"
+ >
+ Observed SNVs
+ </th>
+ <th
+ scope="col"
+ >
+ Constraint metric
+ </th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <th
+ scope="row"
+ >
+ RNA variant
+ </th>
+ <td>
+ 0.2
+ </td>
+ <td>
+ 0.1
+ </td>
+ <td>
+ 0.33
+ (
+ 0.31
+ -
+ 0.35
+ )
+ </td>
+ </tr>
+ </tbody>
+</table>
+`;
+
+exports[`ConstraintTable with "gnomad_sv_r2_1_controls" dataset selected with a mitochondrial protein gene has no unexpected changes 1`] = `
+<table
+ className="Table__BaseTable-sc-7fgtt2-0 dIBzV"
+>
+ <thead>
+ <tr>
+ <th
+ scope="col"
+ >
+ Category
+ </th>
+ <th
+ scope="col"
+ >
+ Expected SNVs
+ </th>
+ <th
+ scope="col"
+ >
+ Observed SNVs
+ </th>
+ <th
+ scope="col"
+ >
+ Constraint metric
+ </th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <th
+ scope="row"
+ >
+ Synonymous
+ </th>
+ <td>
+ 0.2
+ </td>
+ <td>
+ 0.2
+ </td>
+ <td>
+ 0.91
+ (
+ 0.80
+ -
+ 0.95
+ )
+ </td>
+ </tr>
+ <tr>
+ <th
+ scope="row"
+ >
+ Missense
+ </th>
+ <td>
+ 0.3
+ </td>
+ <td>
+ 0.3
+ </td>
+ <td>
+ 0.89
+ (
+ 0.80
+ -
+ 0.99
+ )
+ </td>
+ </tr>
+ <tr>
+ <th
+ scope="row"
+ >
+ pLoF
+ </th>
+ <td>
+ 0.1
+ </td>
+ <td>
+ 0.1
+ </td>
+ <td>
+ 0.79
+ (
+ 0.60
+ -
+ 0.90
+ )
+ </td>
+ </tr>
+ </tbody>
+</table>
`;
exports[`ConstraintTable with "gnomad_sv_r2_1_controls" dataset selected with a mitochondrial transcript has no unexpected changes 1`] = `
<p>
- Constraint is not available for mitochondrial
-
- transcripts
+ Constraint is not available for mitochondrial transcripts
</p>
`;
@@ -8897,19 +10611,159 @@ exports[`ConstraintTable with "gnomad_sv_r2_1_non_neuro" dataset selected with a
</p>
`;
-exports[`ConstraintTable with "gnomad_sv_r2_1_non_neuro" dataset selected with a mitochondrial gene has no unexpected changes 1`] = `
-<p>
- Constraint is not available for mitochondrial
-
- genes
-</p>
+exports[`ConstraintTable with "gnomad_sv_r2_1_non_neuro" dataset selected with a mitochondrial RNA gene has no unexpected changes 1`] = `
+<table
+ className="Table__BaseTable-sc-7fgtt2-0 dIBzV"
+>
+ <thead>
+ <tr>
+ <th
+ scope="col"
+ >
+ Category
+ </th>
+ <th
+ scope="col"
+ >
+ Expected SNVs
+ </th>
+ <th
+ scope="col"
+ >
+ Observed SNVs
+ </th>
+ <th
+ scope="col"
+ >
+ Constraint metric
+ </th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <th
+ scope="row"
+ >
+ RNA variant
+ </th>
+ <td>
+ 0.2
+ </td>
+ <td>
+ 0.1
+ </td>
+ <td>
+ 0.33
+ (
+ 0.31
+ -
+ 0.35
+ )
+ </td>
+ </tr>
+ </tbody>
+</table>
+`;
+
+exports[`ConstraintTable with "gnomad_sv_r2_1_non_neuro" dataset selected with a mitochondrial protein gene has no unexpected changes 1`] = `
+<table
+ className="Table__BaseTable-sc-7fgtt2-0 dIBzV"
+>
+ <thead>
+ <tr>
+ <th
+ scope="col"
+ >
+ Category
+ </th>
+ <th
+ scope="col"
+ >
+ Expected SNVs
+ </th>
+ <th
+ scope="col"
+ >
+ Observed SNVs
+ </th>
+ <th
+ scope="col"
+ >
+ Constraint metric
+ </th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <th
+ scope="row"
+ >
+ Synonymous
+ </th>
+ <td>
+ 0.2
+ </td>
+ <td>
+ 0.2
+ </td>
+ <td>
+ 0.91
+ (
+ 0.80
+ -
+ 0.95
+ )
+ </td>
+ </tr>
+ <tr>
+ <th
+ scope="row"
+ >
+ Missense
+ </th>
+ <td>
+ 0.3
+ </td>
+ <td>
+ 0.3
+ </td>
+ <td>
+ 0.89
+ (
+ 0.80
+ -
+ 0.99
+ )
+ </td>
+ </tr>
+ <tr>
+ <th
+ scope="row"
+ >
+ pLoF
+ </th>
+ <td>
+ 0.1
+ </td>
+ <td>
+ 0.1
+ </td>
+ <td>
+ 0.79
+ (
+ 0.60
+ -
+ 0.90
+ )
+ </td>
+ </tr>
+ </tbody>
+</table>
`;
exports[`ConstraintTable with "gnomad_sv_r2_1_non_neuro" dataset selected with a mitochondrial transcript has no unexpected changes 1`] = `
<p>
- Constraint is not available for mitochondrial
-
- transcripts
+ Constraint is not available for mitochondrial transcripts
</p>
`;
@@ -9674,19 +11528,159 @@ exports[`ConstraintTable with "gnomad_sv_r4" dataset selected with a minimal tra
</p>
`;
-exports[`ConstraintTable with "gnomad_sv_r4" dataset selected with a mitochondrial gene has no unexpected changes 1`] = `
-<p>
- Constraint is not available for mitochondrial
-
- genes
-</p>
+exports[`ConstraintTable with "gnomad_sv_r4" dataset selected with a mitochondrial RNA gene has no unexpected changes 1`] = `
+<table
+ className="Table__BaseTable-sc-7fgtt2-0 dIBzV"
+>
+ <thead>
+ <tr>
+ <th
+ scope="col"
+ >
+ Category
+ </th>
+ <th
+ scope="col"
+ >
+ Expected SNVs
+ </th>
+ <th
+ scope="col"
+ >
+ Observed SNVs
+ </th>
+ <th
+ scope="col"
+ >
+ Constraint metric
+ </th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <th
+ scope="row"
+ >
+ RNA variant
+ </th>
+ <td>
+ 0.2
+ </td>
+ <td>
+ 0.1
+ </td>
+ <td>
+ 0.33
+ (
+ 0.31
+ -
+ 0.35
+ )
+ </td>
+ </tr>
+ </tbody>
+</table>
+`;
+
+exports[`ConstraintTable with "gnomad_sv_r4" dataset selected with a mitochondrial protein gene has no unexpected changes 1`] = `
+<table
+ className="Table__BaseTable-sc-7fgtt2-0 dIBzV"
+>
+ <thead>
+ <tr>
+ <th
+ scope="col"
+ >
+ Category
+ </th>
+ <th
+ scope="col"
+ >
+ Expected SNVs
+ </th>
+ <th
+ scope="col"
+ >
+ Observed SNVs
+ </th>
+ <th
+ scope="col"
+ >
+ Constraint metric
+ </th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <th
+ scope="row"
+ >
+ Synonymous
+ </th>
+ <td>
+ 0.2
+ </td>
+ <td>
+ 0.2
+ </td>
+ <td>
+ 0.91
+ (
+ 0.80
+ -
+ 0.95
+ )
+ </td>
+ </tr>
+ <tr>
+ <th
+ scope="row"
+ >
+ Missense
+ </th>
+ <td>
+ 0.3
+ </td>
+ <td>
+ 0.3
+ </td>
+ <td>
+ 0.89
+ (
+ 0.80
+ -
+ 0.99
+ )
+ </td>
+ </tr>
+ <tr>
+ <th
+ scope="row"
+ >
+ pLoF
+ </th>
+ <td>
+ 0.1
+ </td>
+ <td>
+ 0.1
+ </td>
+ <td>
+ 0.79
+ (
+ 0.60
+ -
+ 0.90
+ )
+ </td>
+ </tr>
+ </tbody>
+</table>
`;
exports[`ConstraintTable with "gnomad_sv_r4" dataset selected with a mitochondrial transcript has no unexpected changes 1`] = `
<p>
- Constraint is not available for mitochondrial
-
- transcripts
+ Constraint is not available for mitochondrial transcripts
</p>
`;
diff --git a/browser/src/GenePage/GenePage.tsx b/browser/src/GenePage/GenePage.tsx
index c1c1c976c..ccfaad9b2 100644
--- a/browser/src/GenePage/GenePage.tsx
+++ b/browser/src/GenePage/GenePage.tsx
@@ -75,7 +75,7 @@ import {
} from '../ChartStyles'
import { logButtonClick } from '../analytics'
-type ProteinMitochondrialGeneConstraint = {
+export type ProteinMitochondrialGeneConstraint = {
exp_lof: number
exp_mis: number
exp_syn: number
@@ -97,7 +97,7 @@ type ProteinMitochondrialGeneConstraint = {
oe_syn_upper: number
}
-type RNAMitochondrialGeneConstraint = {
+export type RNAMitochondrialGeneConstraint = {
observed: number
expected: number
oe: number
@@ -105,7 +105,7 @@ type RNAMitochondrialGeneConstraint = {
oe_lower: number
}
-type MitochondrialGeneConstraint =
+export type MitochondrialGeneConstraint =
| ProteinMitochondrialGeneConstraint
| RNAMitochondrialGeneConstraint