Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clickbase #5

Open
wants to merge 173 commits into
base: demo-clickhouse-k8s
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
173 commits
Select commit Hold shift + click to select a range
967afbe
fix #9461 - mutations api endpoint
jagnathan May 26, 2022
eeb8f8a
Updated more files for removed fields
jagnathan Oct 12, 2022
3b2f8bb
db changes and renaming the column prefixes from oncotator to mutation
jagnathan Oct 27, 2022
d1a400d
Update SQL statements
jagnathan Nov 11, 2022
871eccd
db changes and renaming the column prefixes from oncotator to mutation
jagnathan Oct 27, 2022
98c892f
Update migration.sql
jagnathan Nov 12, 2022
dec3627
Removed Link columns
jagnathan Dec 2, 2022
1c56e26
Update news.md
sbabyanusha Feb 6, 2023
f8e3350
update news.md
sbabyanusha Feb 14, 2023
d7be358
update cosmic importer for new cosmic datafiles
MatthijsPon Feb 24, 2023
89bde61
Update DB version and renaming mutation_event fields
dippindots Mar 8, 2023
9ca0563
Update Mutation model
dippindots Mar 8, 2023
ec2236f
Merge pull request #9914 from jagnathan/fix-9461-mutations-api-endpoi…
dippindots Mar 14, 2023
30578f4
Update SQL to fix incompatibility with sqlmode OnlyFullGroupBy and ad…
haynescd Mar 13, 2023
c1a38a8
Merge remote-tracking branch 'origin/master' into bugfix/ch/Fix-incom…
haynescd Mar 15, 2023
f375e62
Merge pull request #10079 from haynescd/bugfix/ch/Fix-incompatible-wi…
haynescd Mar 15, 2023
5ec8632
Allow binning and filtering of custom (numerical and categorical) data
pvannierop Jan 16, 2023
b4f3097
Several small fixes and cleanup after feedback @dippindots
Mar 14, 2023
bae8b2b
Remove excess whitespace
Mar 14, 2023
ca13827
Merge pull request #10039 from BasLee/custom_data_binning_endpoint
dippindots Mar 17, 2023
05bfd35
Fix combined Entrez Gene Id and Stuct Var Query in StructuralVariantM…
pvannierop Mar 20, 2023
0d6ca0e
update bilkent members
inodb Mar 21, 2023
327a4eb
Merge pull request #10097 from cBioPortal/master
dippindots Mar 22, 2023
4c46c8d
Frontend v5.3.0
dippindots Mar 22, 2023
b1308d5
Update ClinicalEventMyBatisRepositoryTest.java
dippindots Mar 22, 2023
945cd5a
Address java8 compatible issues in more tests
dippindots Mar 22, 2023
0b2dfa6
Merge pull request #10098 from cBioPortal/demo-v5.3.0
dippindots Mar 22, 2023
1656299
Merge pull request #10054 from thehyve/update-cosmic-importer
inodb Mar 24, 2023
2f3653a
Merge pull request #10091 from pvannierop/fix_sv_queries
dippindots Mar 24, 2023
3711cf7
Add importer and validator section to release-drafter.yml
dippindots Mar 28, 2023
c6140e5
Fix release-drafter.yml error
dippindots Mar 28, 2023
3443d56
Update news.md
sbabyanusha Mar 28, 2023
b851a6f
Frontend v5.3.1
dippindots Mar 29, 2023
5051c4c
Update News.md
sbabyanusha Mar 29, 2023
2e10871
Merge branch 'master' into feb-6-2023-newsreleas
sbabyanusha Mar 29, 2023
33948e9
Use custom driver annotations in sv counts
Mar 15, 2023
4857a14
Test custom driver annotations filter in sv count query
Mar 16, 2023
3a3fd84
Differentiate between test svs by making annotations unique
Mar 20, 2023
3fa82fd
Fix sv whereSite1IsNot2 clause, add es0 sv custom driver data
Mar 20, 2023
a534eb7
Remove unused DriverManagerDataSource fields from db tests
Apr 3, 2023
17f8b7e
Add comment to mybatis sv whereSite1IsNot2 clause
Apr 3, 2023
363488b
Fix validation result_report.html: include new sv
Apr 4, 2023
d6bd1e2
Frontend v5.3.2
dippindots Apr 5, 2023
5456f33
Merge pull request #10092 from BasLee/sv-counts-with-custom-driver-an…
dippindots Apr 5, 2023
90c123d
Update News.md
sbabyanusha Apr 5, 2023
d47b8d0
Merge branch 'master' into feb-6-2023-newsreleas
sbabyanusha Apr 5, 2023
5255b5a
Merge pull request #9994 from cBioPortal/feb-6-2023-newsreleas
inodb Apr 5, 2023
a57c489
fixed swagger page validation errors
jfkonecn Mar 25, 2023
1898d06
Merge pull request #10101 from jfkonecn/hotfix
inodb Apr 7, 2023
d790883
Frontend v5.3.3
dippindots Apr 11, 2023
880d6b9
Add MSK database migration documentation (#10115)
dippindots Apr 12, 2023
5679255
Do not call next study view filter when no samples left (#10124)
pvannierop Apr 13, 2023
1ff02a5
Add studyId to CancerStudyTag entity
Apr 4, 2023
a33532d
Merge pull request #10116 from BasLee/tags-with-study-id
alisman Apr 17, 2023
68c53a6
Frontend v5.3.4
alisman Apr 19, 2023
2c107f9
Merge pull request #10130 from cBioPortal/alisman-patch-7
alisman Apr 20, 2023
95c80c7
:wrench: Add Configuration Properties for study view summary limits
haynescd Apr 18, 2023
593c589
Merge pull request #10128 from haynescd/feature/10125-Add-Configurati…
alisman Apr 21, 2023
fe3ab58
add sitemaps for retype
inodb Apr 22, 2023
76cf44f
Frontend v5.3.5
dippindots Apr 25, 2023
2265fe2
Merge pull request #10137 from cBioPortal/frontend-v5.3.5
dippindots Apr 25, 2023
d2d46f9
Add tutorials from others
inodb Apr 26, 2023
ef862a1
Add Farhan Haq tutorial video
inodb Apr 26, 2023
c06ccad
Merge pull request #10142 from cBioPortal/add-additional-tutorials
inodb Apr 27, 2023
1cdfdb9
:wrench: Add StudyDownloadUrl to portal.properties
haynescd Apr 27, 2023
808bd6b
Frontend v5.3.6
dippindots May 3, 2023
d5aeab9
Merge pull request #10143 from haynescd/feature/10135-Add-Configurati…
inodb May 3, 2023
d066ae8
Update News-Genie.md
ritikakundra May 4, 2023
0bc22ac
Fix study tag search when no studies present
May 8, 2023
46275a6
Merge pull request #10164 from BasLee/fix-study-tags-search-with-no-s…
inodb May 8, 2023
57cd682
Add dsnparse Python requirement
pvannierop May 8, 2023
ff6f0e7
Merge pull request #10165 from cBioPortal/pvannierop-patch-4
dippindots May 8, 2023
567f7bf
add jeremy to about page
tmazor May 8, 2023
584008b
Merge pull request #10166 from cBioPortal/tmazor-patch-7
inodb May 8, 2023
f83dc50
Documentation markdown fixes (#10186)
justinjao May 19, 2023
383ea00
Frontend v5.3.7
dippindots May 9, 2023
037b361
Update gene set version and update tests
dippindots May 10, 2023
16da69b
Merge pull request #10168 from cBioPortal/frontend-v5.3.7
dippindots May 23, 2023
326e765
Fix integration test
dippindots May 24, 2023
8d0008b
Merge pull request #10193 from cBioPortal/fix-integration-test
dippindots May 24, 2023
1f162e5
Frontend v5.3.8
dippindots May 24, 2023
21947e1
:books: Update Priority Documentation
haynescd May 3, 2023
d07e617
:sparkles: Add ability to set priority to -1 for clinical attr
haynescd May 3, 2023
d0b7a1d
Merge pull request #10156 from haynescd/feature/10133-Exclude-Clinica…
haynescd May 24, 2023
f004fad
add statistical tests in FAQ
jjgao May 26, 2023
9af6061
extend File-Formats.md with mutational signature datatype (#10172)
MatthijsPon May 26, 2023
c41f29e
Frontend v5.3.9
dippindots May 30, 2023
d72a44f
Merge pull request #10202 from cBioPortal/frontend-v5.3.9
dippindots May 31, 2023
566da57
change docker compose cmds
inodb Jun 2, 2023
8532fe3
fix contact email in dev section
inodb Jun 2, 2023
09bdc01
fix release notes docs link
inodb Jun 2, 2023
838557f
fix release procedure info
inodb Jun 2, 2023
383b6bb
Frontend v5.3.10
dippindots Jun 6, 2023
23178a8
Merge pull request #10210 from cBioPortal/frontend-v5.3.10
dippindots Jun 7, 2023
100d642
Add note about official releases
inodb Jun 7, 2023
ad324a8
Add AACR GENIE BPC tutorial videos (#10215)
ritikakundra Jun 8, 2023
1768381
Adding new features news (#10149)
dippindots Jun 9, 2023
b2f0fbf
Update web-API-and-Clients.md (#10209)
karissawhiting Jun 9, 2023
ff4c6ea
Merge pull request #10199 from cBioPortal/jjgao-patch-1
dippindots Jun 12, 2023
1654557
Frontend v5.3.11
dippindots Jun 13, 2023
9b70fcc
Paginate clinical table response using Page and Pagable spring interf…
Apr 18, 2023
08b7aa2
Use PaginatedClinicalData
Apr 19, 2023
b7e4de0
Add query to count items in clinical table
Apr 20, 2023
f8aa8b0
Replace spring page with page response headers
May 24, 2023
92dc40a
Fix page size when sorting clinical table
Jun 5, 2023
2ae0269
Sort clinical table by sample and patient ID
Jun 6, 2023
c3f8588
Fix distinct in patient attr sorting
Jun 6, 2023
f828ee0
Fix difference h2 and mysql in sorting nulls last
Jun 12, 2023
9d7c2b3
Rename *SampleClinicalTable* methods
Jun 14, 2023
fede09e
update members about us page
inodb Jun 14, 2023
654a5d6
Revert controler rename to keep backward compatible
Jun 15, 2023
15cf8ce
Merge pull request #10211 from BasLee/poc-paginated-clinical-table
dippindots Jun 16, 2023
f07c966
Impl. Struct Var count endpoint for Study View
pvannierop Nov 18, 2022
f14a3ea
Remove unused imports
pvannierop Apr 14, 2023
a06ba40
Correct variable name
pvannierop Apr 14, 2023
615644d
Change HashMap to Set
pvannierop Apr 14, 2023
804aa0b
Return counts when gene 1 or gene2 is null
pvannierop May 4, 2023
077a0b3
Change missing site1 or site2 gene for SV to INFO log level
pvannierop Jun 13, 2023
631a5b3
Update result report
pvannierop Jun 13, 2023
dbee688
Create property to show reference genome in study list
oplantalech Jun 20, 2023
69c17d4
Frontend v5.3.12
alisman Jun 20, 2023
f7189e4
Merge pull request #10234 from alisman/v5.3.12
alisman Jun 20, 2023
8bf1312
Merge pull request #10233 from oplantalech/reference_genome_badge
alisman Jun 21, 2023
7e7717f
fix contributor last name
onursumer Jun 22, 2023
8b911fc
Merge pull request #10239 from onursumer/about-us-name-correction
alisman Jun 26, 2023
670337a
Merge pull request #10119 from pvannierop/sv_counts_endpoint
alisman Jun 26, 2023
5b51b70
Frontend v5.3.13
dippindots Jun 28, 2023
49adca0
Merge pull request #10243 from cBioPortal/frontend-v5.3.13
dippindots Jun 28, 2023
105661f
Impl. Struct Var filter queries for /filtered-samples/fetch endpoint
pvannierop Dec 1, 2022
1ed61f4
Add unit tests for resolveEntrezGeneIds
pvannierop Jun 9, 2023
28e0134
Changes after PR reviews
Jun 13, 2023
2d79405
Merge pull request #10214 from pvannierop/studyview_sv_queryfilter
dippindots Jul 7, 2023
8acd3df
Add Java 11 as requirement
inodb Jul 7, 2023
b205cb5
modify documentation for skin.hide_download_controls
qlu-cls Jul 7, 2023
249d4ca
Merge pull request #10258 from h164654156465/data-download-control
alisman Jul 10, 2023
719e5d2
Improve treatment data api performance
kalletlak Jul 10, 2023
48f4d69
Improve study view treatment api performance
kalletlak Jul 11, 2023
2712b20
Update download control options (#10264)
kalletlak Jul 12, 2023
fcac80a
Merge remote-tracking branch 'cbio/master' into timeline-performance
kalletlak Jul 12, 2023
dc487c2
Add more tests and comments
kalletlak Jul 12, 2023
b3400e6
Merge pull request #10261 from kalletlak/timeline-performance
kalletlak Jul 13, 2023
660ed0a
fix 10221 - 403 issue
jagnathan Jul 11, 2023
9e90a2a
Merge pull request #10267 from jagnathan/fix10221-403-authorized-stud…
dippindots Jul 18, 2023
b7de8f3
Update Pyyaml package
dippindots Jul 18, 2023
78dbe9e
Merge pull request #10283 from cBioPortal/update-pyyaml
dippindots Jul 18, 2023
1a115f6
Frontend v5.3.14
dippindots Jul 18, 2023
a3794f7
Merge pull request #10281 from cBioPortal/frontend-v5.3.14
dippindots Jul 18, 2023
16acfa7
Changes related to download group
kalletlak Jul 3, 2023
8f6534e
Merge pull request #10254 from kalletlak/feature/10248
kalletlak Jul 19, 2023
7339191
Allow ProfiledCasesCounter to add counts to empty alteration count li…
Jul 20, 2023
173cb57
Update about us page
dippindots Jul 20, 2023
8412f5e
Frontend v5.3.15
dippindots Jul 25, 2023
4ac327b
Merge pull request #10297 from cBioPortal/frontend-v5.3.15
dippindots Jul 25, 2023
0ed4759
Cache treatment endpoints (#10282)
kalletlak Jul 26, 2023
0425e7b
update one-sided fisher test to two-sided
Jul 19, 2023
70f4597
Merge pull request #10288 from gblaih/two-sided-fisher-test
dippindots Aug 1, 2023
dbee06e
Allow redis service unavailable when Redis is enabled
dippindots Aug 1, 2023
731bd62
Merge pull request #10305 from dippindots/catch-redis-error
dippindots Aug 1, 2023
4b76f51
Frontend v5.3.16
dippindots Aug 1, 2023
58a9cbe
Merge pull request #10306 from cBioPortal/frontend-v5.3.16
dippindots Aug 1, 2023
d035bb1
Update two-sided fisher tests news (#10312)
dippindots Aug 3, 2023
ca2bdff
Genomic data counts study-view endpoint (#10300)
7xuanlu Aug 8, 2023
1b9b31c
Frontend v5.3.17
dippindots Aug 8, 2023
1acb7a1
Merge pull request #10292 from cBioPortal/dippindots-patch-1
dippindots Aug 8, 2023
4956dcb
Merge pull request #10318 from cBioPortal/frontend-v5.3.17
dippindots Aug 8, 2023
7b2bbe2
Add defaults for genomic evolution tab in patient view (#10309)
Aug 10, 2023
7f523c8
Add data access token user role filter feature (#10315)
kalletlak Aug 14, 2023
63d2c6a
Update About-Us.md (#10196)
ritikakundra Aug 14, 2023
ca96047
Add label check test for pull request
dippindots Aug 15, 2023
dc7b0ea
Merge pull request #10329 from cBioPortal/label-check
dippindots Aug 15, 2023
92d79bf
Frontend v5.3.18
dippindots Aug 15, 2023
e9cbd82
Merge pull request #10331 from cBioPortal/frontend-v5.3.18
dippindots Aug 15, 2023
643cfcd
add info about adding labels
inodb Aug 16, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Describe changes proposed in this pull request:
- [ ] Has tests or has a separate issue that describes the types of test that should be created. If no test is included it should explicitly be mentioned in the PR why there is no test.
- [ ] The commit log is comprehensible. It follows [7 rules of great commit messages](http://chris.beams.io/posts/git-commit/). For most PRs a single commit should suffice, in some cases multiple topical commits can be useful. During review it is ok to see tiny commits (e.g. Fix reviewer comments), but right before the code gets merged to master or rc branch, any such commits should be squashed since they are useless to the other developers. Definitely avoid [merge commits, use rebase instead.](http://nathanleclaire.com/blog/2014/09/14/dont-be-scared-of-git-rebase/)
- [ ] Is this PR adding logic based on one or more **clinical** attributes? If yes, please make sure validation for this attribute is also present in the data validation / data loading layers (in backend repo) and documented in [File-Formats Clinical data section](https://github.com/cBioPortal/cbioportal/blob/master/docs/File-Formats.md#clinical-data)!
- [ ] Make sure your PR has one of the labels defined in https://github.com/cBioPortal/cbioportal/blob/master/.github/release-drafter.yml

# Any screenshots or GIFs?
If this is a new visual feature please add a before/after screenshot or gif
Expand Down
6 changes: 5 additions & 1 deletion .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ categories:
labels:
- 'documentation'
- 'cl-documentation'
- title: '🖊️ Data Importer & Validator'
labels:
- 'importer'
- 'validator'
- title: '🧹 Cleanup & Refactoring 🔧'
labels:
- 'cleanup'
Expand Down Expand Up @@ -79,4 +83,4 @@ template: |
- Frontend: https://github.com/cBioPortal/cbioportal-frontend/compare/$PREVIOUS_TAG...v$NEXT_PATCH_VERSION

## 🏷Notes on versioning and release procedure
https://docs.cbioportal.org/4.-development/release-procedure#a-note-on-versioning
https://docs.cbioportal.org/development/release-procedure/#a-note-on-versioning
50 changes: 50 additions & 0 deletions .github/workflows/label-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# This GitHub Actions workflow is designed to automatically check pull requests in the cBioPortal repository for valid labels before they can be merged.
# The workflow ensures that pull requests have labels that are defined in the .github/release-drafter.yml file's "categories" section.
# If a pull request lacks a valid label, the workflow will fail, preventing the merge until valid labels are applied.
name: Label Check

on:
pull_request:
types:
- opened
- synchronize

jobs:
label-check:
runs-on: ubuntu-latest
steps:
- name: Check PR Labels
uses: actions/checkout@v2

- name: Install dependencies
run: |
wget https://github.com/mikefarah/yq/releases/download/v4.34.2/yq_linux_amd64 -O /usr/local/bin/yq
chmod +x /usr/local/bin/yq
- name: Get Labels from release-drafter.yml
id: get_labels
run: |
curl -s "https://raw.githubusercontent.com/cBioPortal/cbioportal/master/.github/release-drafter.yml" | \
yq -r '.categories[].labels[]' > labels.txt
- name: Check Labels
id: check_labels
run: |
PR_NUMBER=$(jq -r ".number" $GITHUB_EVENT_PATH)
PR_LABELS=$(curl -s "https://api.github.com/repos/${{ github.repository }}/pulls/$PR_NUMBER" | \
jq -r '.labels[].name')
mapfile -t AVAILABLE_LABELS < labels.txt
for LABEL in ${PR_LABELS[@]}; do
if [[ "$LABEL" == "skip-changelog" ]]; then
echo "PR contains a valid label: skip-changelog"
exit 0 # Valid label found, exit successfully
fi
for AVAILABLE_LABEL in "${AVAILABLE_LABELS[@]}"; do
if [[ "$AVAILABLE_LABEL" == "$LABEL" ]]; then
echo "PR contains a valid label: $LABEL"
exit 0 # Valid label found, exit successfully
fi
done
done
echo "No valid label found on PR."
echo "Available label options from release-drafter.yml:"
cat labels.txt
exit 1 # No valid label found, exit with an error
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
Expand Down Expand Up @@ -116,7 +115,7 @@ private static Set<CosmicMutationFrequency> filterTruncatingCosmicByPosition(

Set<CosmicMutationFrequency> ret = new HashSet<CosmicMutationFrequency>();
Pattern p = Pattern.compile("[0-9]+");
int mutPos = mut.getOncotatorProteinPosStart();
int mutPos = mut.getProteinPosStart();
for (CosmicMutationFrequency cmf : cmfs) {
String aa = cmf.getAminoAcidChange();
Matcher m = p.matcher(aa);
Expand Down
40 changes: 13 additions & 27 deletions core/src/main/java/org/mskcc/cbio/portal/dao/DaoMutation.java
Original file line number Diff line number Diff line change
Expand Up @@ -145,23 +145,16 @@ public static int addMutationEvent(ExtendedMutation.MutationEvent event) throws
event.getTumorSeqAllele(),
event.getProteinChange(),
event.getMutationType(),
event.getFunctionalImpactScore(),
Float.toString(event.getFisValue()),
event.getLinkXVar(),
event.getLinkPdb(),
event.getLinkMsa(),
event.getNcbiBuild(),
event.getStrand(),
event.getVariantType(),
event.getDbSnpRs(),
event.getDbSnpValStatus(),
event.getOncotatorDbSnpRs(),
event.getOncotatorRefseqMrnaId(),
event.getOncotatorCodonChange(),
event.getOncotatorUniprotName(),
event.getOncotatorUniprotAccession(),
Integer.toString(event.getOncotatorProteinPosStart()),
Integer.toString(event.getOncotatorProteinPosEnd()),
event.getRefseqMrnaId(),
event.getCodonChange(),
event.getUniprotAccession(),
Integer.toString(event.getProteinPosStart()),
Integer.toString(event.getProteinPosEnd()),
boolToStr(event.isCanonicalTranscript()),
keyword==null ? "\\N":(event.getGene().getHugoGeneSymbolAllCaps()+" "+keyword));
return 1;
Expand Down Expand Up @@ -800,24 +793,17 @@ private static ExtendedMutation.MutationEvent extractMutationEvent(ResultSet rs)
event.setEndPosition(rs.getLong("END_POSITION"));
event.setProteinChange(rs.getString("PROTEIN_CHANGE"));
event.setMutationType(rs.getString("MUTATION_TYPE"));
event.setFunctionalImpactScore(rs.getString("FUNCTIONAL_IMPACT_SCORE"));
event.setFisValue(rs.getFloat("FIS_VALUE"));
event.setLinkXVar(rs.getString("LINK_XVAR"));
event.setLinkPdb(rs.getString("LINK_PDB"));
event.setLinkMsa(rs.getString("LINK_MSA"));
event.setNcbiBuild(rs.getString("NCBI_BUILD"));
event.setStrand(rs.getString("STRAND"));
event.setVariantType(rs.getString("VARIANT_TYPE"));
event.setDbSnpRs(rs.getString("DB_SNP_RS"));
event.setDbSnpValStatus(rs.getString("DB_SNP_VAL_STATUS"));
event.setReferenceAllele(rs.getString("REFERENCE_ALLELE"));
event.setOncotatorDbSnpRs(rs.getString("ONCOTATOR_DBSNP_RS"));
event.setOncotatorRefseqMrnaId(rs.getString("ONCOTATOR_REFSEQ_MRNA_ID"));
event.setOncotatorCodonChange(rs.getString("ONCOTATOR_CODON_CHANGE"));
event.setOncotatorUniprotName(rs.getString("ONCOTATOR_UNIPROT_ENTRY_NAME"));
event.setOncotatorUniprotAccession(rs.getString("ONCOTATOR_UNIPROT_ACCESSION"));
event.setOncotatorProteinPosStart(rs.getInt("ONCOTATOR_PROTEIN_POS_START"));
event.setOncotatorProteinPosEnd(rs.getInt("ONCOTATOR_PROTEIN_POS_END"));
event.setRefseqMrnaId(rs.getString("REFSEQ_MRNA_ID"));
event.setCodonChange(rs.getString("CODON_CHANGE"));
event.setUniprotAccession(rs.getString("UNIPROT_ACCESSION"));
event.setProteinPosStart(rs.getInt("PROTEIN_POS_START"));
event.setProteinPosEnd(rs.getInt("PROTEIN_POS_END"));
event.setCanonicalTranscript(rs.getBoolean("CANONICAL_TRANSCRIPT"));
event.setTumorSeqAllele(rs.getString("TUMOR_SEQ_ALLELE"));
event.setKeyword(rs.getString("KEYWORD"));
Expand Down Expand Up @@ -1391,12 +1377,12 @@ public static Collection<Map<String, Object>> countSamplesWithProteinPosStarts(
if (geneIdSet.size() == 0 || internalProfileIds.size() == 0) return new ArrayList<Map<String, Object>>(); //empty IN() clause would be a SQL error below
try {
con = JdbcUtil.getDbConnection(DaoMutation.class);
String sql = "SELECT ONCOTATOR_PROTEIN_POS_START, GENETIC_PROFILE_ID, mutation.ENTREZ_GENE_ID, count(DISTINCT SAMPLE_ID) " +
String sql = "SELECT PROTEIN_POS_START, GENETIC_PROFILE_ID, mutation.ENTREZ_GENE_ID, count(DISTINCT SAMPLE_ID) " +
"FROM mutation INNER JOIN mutation_event ON mutation.MUTATION_EVENT_ID=mutation_event.MUTATION_EVENT_ID " +
"WHERE mutation.ENTREZ_GENE_ID IN (" + StringUtils.join(geneIdSet, ",") + ") " +
"AND GENETIC_PROFILE_ID IN (" + StringUtils.join(internalProfileIds, ",") + ") " +
"AND (mutation.ENTREZ_GENE_ID, ONCOTATOR_PROTEIN_POS_START) IN (" + StringUtils.join(proteinPosStarts, ",") + ") " +
"GROUP BY ONCOTATOR_PROTEIN_POS_START, GENETIC_PROFILE_ID, mutation.ENTREZ_GENE_ID";
"AND (mutation.ENTREZ_GENE_ID, PROTEIN_POS_START) IN (" + StringUtils.join(proteinPosStarts, ",") + ") " +
"GROUP BY PROTEIN_POS_START, GENETIC_PROFILE_ID, mutation.ENTREZ_GENE_ID";
pstmt = con.prepareStatement(sql);
rs = pstmt.executeQuery();
Collection<Map<String, Object>> data = new ArrayList<Map<String, Object>>();
Expand Down
Loading
Loading