Skip to content

Commit

Permalink
working for samples only
Browse files Browse the repository at this point in the history
  • Loading branch information
alisman committed Jun 7, 2024
1 parent b64d010 commit c70f91a
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,10 @@

<!-- for /clinical-data-counts/fetch (returns ClinicalData) which will then be converted to clinicalDataCountItems -->
<select id="getClinicalDataCounts" resultType="org.cbioportal.model.ClinicalDataCount">
<include refid="getCategoricalClinicalDataCountsQuery">
<property name="table_name_prefix" value="patient"/>
</include>
UNION ALL
<!-- <include refid="getCategoricalClinicalDataCountsQuery">-->
<!-- <property name="table_name_prefix" value="patient"/>-->
<!-- </include>-->
<!-- UNION ALL-->
<include refid="getCategoricalClinicalDataCountsQuery">
<property name="table_name_prefix" value="sample"/>
</include>
Expand All @@ -113,7 +113,8 @@
Count(*) as count
FROM ${table_name_prefix}_clinical_attribute_categorical_view
<where>
patient_unique_id IN ( <include refid="getPatientIdsFromSampleIdFilters"/>
sample_unique_id IN ( <include refid="sampleUniqueIdsFromStudyViewFilter"/>

<if test="applyPatientIdFilters == true">
INTERSECT <include refid="patientUniqueIdsFromStudyViewFilter"/>
</if>
Expand Down

0 comments on commit c70f91a

Please sign in to comment.