Skip to content

Commit

Permalink
Fix genomic profile filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
alisman committed Oct 29, 2024
1 parent bfc6179 commit 8ac5d44
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
SELECT * FROM (
<foreach item="ANDGroup" collection="studyViewFilterHelper.studyViewFilter.genomicProfiles" separator="INTERSECT">
SELECT sample_derived.sample_unique_id
FROM sample_profile
FROM sample_profile GYMP
JOIN genetic_profile gp ON sample_profile.genetic_profile_id = gp.genetic_profile_id
JOIN cancer_study cs ON gp.cancer_study_id = cs.cancer_study_id
JOIN sample_derived on sample_profile.sample_id = sample_derived.internal_id
Expand All @@ -48,9 +48,9 @@
#{studyId}
</foreach>
AND
<foreach item="studyId" collection="studyViewFilterHelper.studyViewFilter.studyIds" open="(" separator=" OR " close=")">
<foreach item="genomicProfileId" collection="ANDGroup" open="(" separator="OR" close=")">
gp.stable_id='#{studyId}_#{genomicProfileId}'
<foreach item="studyId" collection="studyViewFilterHelper.studyViewFilter.studyIds" open="(" close=")" separator="OR">
<foreach item="genomicProfileId" collection="ANDGroup" open="(" separator=" OR " close=")">
gp.stable_id=concat(#{studyId}, '_', #{genomicProfileId})
</foreach>
</foreach>
</where>
Expand Down

0 comments on commit 8ac5d44

Please sign in to comment.