-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat: gene info cards #298
Conversation
Codecov Report
@@ Coverage Diff @@
## main #298 +/- ##
==========================================
+ Coverage 76.16% 76.28% +0.11%
==========================================
Files 90 90
Lines 6670 6712 +42
==========================================
+ Hits 5080 5120 +40
- Misses 1590 1592 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. |
…erberg/single-cell-explorer into sienacizdziel/gene-info
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WIP Review
* adding in backend changes * unit tests and status codes * requested change * requested change Co-authored-by: Siena Cizdziel <[email protected]>
* feature id checks, reverting global rightsidebarwidth change, passing smoke tests * chore: gene info icon and minor design changes (#320) * icon changes * requested design changes Co-authored-by: Siena Cizdziel <[email protected]> Co-authored-by: Siena Cizdziel <[email protected]>
* remove error checking for no feature id column * functionality for datasets that don't have feature ids * lint * removing style changes * hook up new api endpoint * add gene param Co-authored-by: Siena Cizdziel <[email protected]>
// if feature id column is available in var | ||
if (annoMatrix.getMatrixColumns("var").includes(geneIdCol)) { | ||
dfIds = await annoMatrix.fetch("var", geneIdCol); | ||
console.log("id, success"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
left in debug code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed the console.log, but the rest I think is still important for datasets that contain feature_id columns
console.error("Could not find feature IDs."); | ||
} | ||
|
||
setStatus("name, success"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why the change, just curious
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code is only for datasets that already have the "feature_id" column. Otherwise, we'll call the API with only gene name, since we don't have gene IDs built into the dataset (more of the code is implemented in the other PR that just recently got merged to this one)
…erberg/single-cell-explorer into sienacizdziel/gene-info
…erberg/single-cell-explorer into sienacizdziel/gene-info
Reviewers
Functional:
frontend: @seve
backend in #323 : @MDunitz
Readability:
Depends on PRs:
Changes
Notes for Reviewers
For my intern project: gene info cards. This feature allows users to search gene information (e.g. gene description, summary, synonyms, etc) about a gene in question by clicking on an info circle next to a gene name. On info button click, a pop-up similar to the scatterplot feature appears. This works for genes in both quick gene and genesets.