Skip to content

Commit

Permalink
Update SQL to remove duplicate Reference Genome entry
Browse files Browse the repository at this point in the history
  • Loading branch information
haynescd committed Oct 10, 2024
1 parent 0ac1039 commit b8b00e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/resources/db-scripts/clickhouse/clickhouse.sql
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ FROM cna_event ce
INNER JOIN sample ON sce.sample_id = sample.internal_id
INNER JOIN patient on sample.patient_id = patient.internal_id
INNER JOIN gene ON ce.entrez_gene_id = gene.entrez_gene_id
INNER JOIN reference_genome_gene rgg ON rgg.entrez_gene_id = ce.entrez_gene_id
INNER JOIN (SELECT DISTINCT entrez_gene_id, cytoband from reference_genome_gene) rgg ON rgg.entrez_gene_id = ce.entrez_gene_id
UNION ALL
-- Insert Structural Variants Site1
SELECT concat(cs.cancer_study_identifier, '_', s.stable_id) AS sample_unique_id,
Expand Down

0 comments on commit b8b00e9

Please sign in to comment.