Skip to content

Commit

Permalink
Add hemizygous count to structural variant tables
Browse files Browse the repository at this point in the history
  • Loading branch information
phildarnowsky-broad committed Jun 12, 2024
1 parent 1878ae6 commit f121a7c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions browser/src/GenePage/StructuralVariantsInGene.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const StructuralVariantsInGene = ({ datasetId, gene, zoomRegion, ...rest }: Prop
gene(gene_id: $geneId, reference_genome: $referenceGenome) {
structural_variants(dataset: $datasetId) {
ac
ac_hemi
ac_hom
an
af
Expand Down
1 change: 1 addition & 0 deletions browser/src/RegionPage/StructuralVariantsInRegion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const StructuralVariantsInRegion = ({ datasetId, region, zoomRegion, ...rest }:
region(chrom: $chrom, start: $start, stop: $stop, reference_genome: $referenceGenome) {
structural_variants(dataset: $datasetId) {
ac
ac_hemi
ac_hom
an
af
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,16 @@ const structuralVariantTableColumns = [
shouldShowInContext: (context: Context) => context.chrom !== 'Y',
},

{
key: 'hemizygote_count',
heading: 'Number of Hemizygotes',
contextNotes: 'Not shown when viewing Y chromosome',
minWidth: 100,
compareFunction: makeNumericCompareFunction('ac_hemi'),
render: (variant: any) => renderAlleleCountCell(variant, 'ac_hemi'),
shouldShowInContext: (context: Context) => context.chrom !== 'Y',
},

{
key: 'length',
heading: 'Size',
Expand Down

0 comments on commit f121a7c

Please sign in to comment.