Skip to content

Commit

Permalink
Merge pull request #115 from KPMP/develop
Browse files Browse the repository at this point in the history
Release v2.2 (Q4 2023 part deux)
  • Loading branch information
rlreamy authored Dec 22, 2023
2 parents 65be180 + 418d72f commit ca08366
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ public interface RTExpressionDataAllSegmentsRepository extends CrudRepository<RT
@Query(value = "SELECT rts.*, rsv.sample_count, s.segment_name FROM rt_segments rts "
+ "LEFT JOIN rt_summary_v rsv ON rts.segment = rsv.segment AND rts.tissue_type = rsv.tissue_type "
+ "LEFT JOIN segment s on rts.segment = s.abbreviation "
+ "WHERE rts.tissue_type = :tissueType AND rts.gene_symbol = :geneSymbol", nativeQuery = true)
+ "WHERE rts.tissue_type = :tissueType AND rts.gene_symbol = :geneSymbol "
+ "GROUP BY rts.segment", nativeQuery = true)
List<RTExpressionDataAllSegments> findByGeneSymbolAndTissueTypeWithCounts(String geneSymbol, String tissueType);

@Cacheable("rtExpByStructure")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ public interface RTExpressionDataGTIRepository extends CrudRepository<RTExpressi
@Query(value = "SELECT rtg.*, rsv.sample_count, s.segment_name FROM rt_gti rtg "
+ "LEFT JOIN rt_summary_v rsv ON rtg.segment = rsv.segment AND rtg.tissue_type = rsv.tissue_type "
+ "LEFT JOIN segment s on rtg.segment = s.abbreviation "
+ "WHERE rtg.tissue_type = :tissueType AND rtg.gene_symbol = :geneSymbol", nativeQuery = true)
+ "WHERE rtg.tissue_type = :tissueType AND rtg.gene_symbol = :geneSymbol "
+ "GROUP BY rtg.segment", nativeQuery = true)
List<RTExpressionDataGTI> findByGeneSymbolAndTissueTypeWithCounts(String geneSymbol, String tissueType);
}

0 comments on commit ca08366

Please sign in to comment.