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

Draft: Genomic data counts #10293

Closed
wants to merge 4 commits into from

Conversation

7xuanlu
Copy link
Contributor

@7xuanlu 7xuanlu commented Jul 24, 2023

Implement backend changes in issue #10257

  • add /genomic-data-counts/fetch endpoint to study view controller
  • support query CNA events by gene specifics

@7xuanlu 7xuanlu requested a review from kalletlak July 24, 2023 14:18

public class CopyNumberCountFilter {

private String molecularProfileId;
Copy link
Member

Choose a reason for hiding this comment

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

should support multi profile, use profileType instead of molecularProfileId

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do you mean List?

Copy link
Member

Choose a reason for hiding this comment

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

Looks like you are not using this class anymore. could you remove it?


public class CopyNumberCountFilter {

private String molecularProfileId;
Copy link
Member

Choose a reason for hiding this comment

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

Looks like you are not using this class anymore. could you remove it?

List<String> hugoGeneSymbols,
AlterationFilter alterationFilter) throws StudyNotFoundException {
List<MolecularProfileCaseIdentifier> caseIdentifiers =
molecularProfileService.getFirstDiscreteCNAProfileCaseIdentifiers(studyIds, sampleIds);
Copy link
Member

Choose a reason for hiding this comment

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

Discrete profile comes from request (GenomicDataFilter). Not choosing the first one.
Ref: look into how data is fetched in/genomic-data-bin-counts/fetch

studyIds,
sampleIds,
gdFilters.stream().map(GenomicDataFilter::getHugoGeneSymbol).collect(Collectors.toList()),
studyViewFilter.getAlterationFilter());
Copy link
Member

Choose a reason for hiding this comment

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

studyViewFilter is used in filtering data. This shouldn't be used here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What is the alterationFilter to be used? Do you mean to create a brand new alterationFilter in StudyViewService?

@sonarcloud
Copy link

sonarcloud bot commented Jul 27, 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 19 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@7xuanlu 7xuanlu closed this Jul 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants