Skip to content

Commit

Permalink
CNA profile counts should only count samples once
Browse files Browse the repository at this point in the history
  • Loading branch information
alisman committed Nov 8, 2024
1 parent 9782432 commit 64fd700
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@
<select id="getTotalProfiledCounts" resultType="org.cbioportal.model.AlterationCountByGene">
SELECT
gene as hugoGeneSymbol,
COUNT(*) as numberOfProfiledCases
COUNT(DISTINCT sample_unique_id) as numberOfProfiledCases
FROM sample_to_gene_panel_derived stgp
INNER JOIN gene_panel_to_gene_derived gptg on stgp.gene_panel_id = gptg.gene_panel_id
<where>
Expand All @@ -453,7 +453,7 @@
</select>

<select id="getSampleProfileCountWithoutPanelData" resultType="int">
SELECT COUNT(*)
SELECT COUNT(DISTINCT sample_unique_id)
FROM sample_to_gene_panel_derived
<where>
alteration_type = #{alterationType} AND gene_panel_id = 'WES'
Expand Down

0 comments on commit 64fd700

Please sign in to comment.