-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: styling and settings * feat: remove DatasetIdSelect previously needed to keep track of the datasets searched between pages. Not needed now since we want a list of patient ID instead * feat: remove Reference Genome and VariantSets/VCFs no longer needed * feat: remove setDatasetId and searchVarientSets no longer needed * feat: remove selected for variant * feat: add reference genome dropdownbox * WIP: mock api for variant search * feat: IG Viewer add react-new-window plugin IGV working * Update IGViewer with alert * feat: CramVcfInstance added * WIP: varirant search * WIP: variant search - add package for new-window - dummy data for fetchFederationClinicalData and searchVariant in constant.js - api calling fake dummy data - Variant Search and Variant table working * fix: variant search with Tyk Variant Search now using Tyk auth correctly to query data * Cancer type table Signed-off-by: Courtney Gosselin <[email protected]> * Merge clinical and genomic search Signed-off-by: Courtney Gosselin <[email protected]> * fix env Signed-off-by: Courtney Gosselin <[email protected]> * Take Son dummy data Signed-off-by: Courtney Gosselin <[email protected]> * Fix filtering error Signed-off-by: Courtney Gosselin <[email protected]> * Remove fake data Signed-off-by: Courtney Gosselin <[email protected]> * Remove federation/ from api calls and dummy data Signed-off-by: Courtney Gosselin <[email protected]> Signed-off-by: Courtney Gosselin <[email protected]> Co-authored-by: Son Chau <[email protected]> Co-authored-by: Courtney Gosselin <[email protected]>
- Loading branch information
1 parent
fa5d6ac
commit 085f60a
Showing
13 changed files
with
735 additions
and
317 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { useRef, useEffect } from 'react'; | ||
import PropTypes from 'prop-types'; | ||
|
||
// TODO: Importing from igv.esm.min.js is not working | ||
import igv from '@candig/igv/dist/igv.esm'; | ||
|
||
function CramVcfInstance({ options }) { | ||
/** * | ||
* A functional component that returns an IGV.js instance dedicated to rendering VCF files. | ||
*/ | ||
const igvBrowser = useRef(null); | ||
|
||
useEffect(() => { | ||
igv.removeAllBrowsers(); // Remove existing browser instances | ||
|
||
if (options.tracks.length > 0) { | ||
igv.createBrowser(igvBrowser.current, options); | ||
} | ||
}, [options]); | ||
|
||
return ( | ||
<> | ||
<div className="ml-auto mr-auto" style={{ background: 'white', marginTop: '15px' }} ref={igvBrowser} /> | ||
</> | ||
); | ||
} | ||
|
||
CramVcfInstance.propTypes = { | ||
options: PropTypes.object.isRequired | ||
}; | ||
|
||
export default CramVcfInstance; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.