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

Generic assay binary types #10335

Merged
merged 3 commits into from
Aug 22, 2023

Conversation

Djokovic0311
Copy link
Collaborator

This pr is an enhancement of previous one inspired by one recent data sample. #10303 Add other allowed values for generic assay binary data. Now it supports both "yes" and "true" for pos samples while "no" and "false" for neg samples.
Could you please have a look at this pr? @dippindots @fuzhaoyuan Any suggestions or modifications are welcome!

Copy link
Member

@dippindots dippindots left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Djokovic0311 Just one comment about this, it should be an easy fix

Comment on lines 51 to 52
private static final String[] posTypeList = {"true", "yes"};
private static final String[] negTypeList = {"false", "no"};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about doing this, so we can avoid doing the conversion every time?

Suggested change
private static final String[] posTypeList = {"true", "yes"};
private static final String[] negTypeList = {"false", "no"};
private static final List<String> posTypeList = Arrays.asList("true", "yes");
private static final List<String> negTypeList = Arrays.asList("false", "no");

Copy link
Member

@dippindots dippindots left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks!

@sonarcloud
Copy link

sonarcloud bot commented Aug 22, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

warning The version of Java (11.0.20) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17.
Read more here

@dippindots dippindots merged commit feec2e3 into cBioPortal:master Aug 22, 2023
9 of 10 checks passed
jagnathan pushed a commit to pughlab/cbioportal that referenced this pull request Nov 8, 2023
* update possible valid binary types

* Update ExpressionEnrichmentUtil.java

* modify postypelist datatype
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants