js/hicBrowser.js
/**
     * Load a .hic file for a control map
     *
     * NOTE: public API function
     *
     * @return a promise for a dataset
     * @param config
     */
Load a .hic file for a control map
NOTE: public API function

@return a promise for a dataset
@param config
Load a . hic file for a control map NOTE : public API function @return a promise for a dataset @param config
async loadHicControlFile(config, noUpdates) {
        try {
            this.$user_interaction_shield.show()
            this.contactMatrixView.startSpinner()
            this.controlUrl = config.url
            const name = extractName(config)
            config.name = name
            const controlDataset = await Dataset.loadDataset(config)
            controlDataset.name = name
            if (!this.dataset || this.dataset.isCompatible(controlDataset)) {
                this.controlDataset = controlDataset;
                if (this.dataset) {
                    this.$contactMaplabel.text("A: " + this.dataset.name);
                }
                this.$controlMaplabel.text("B: " + controlDataset.name);
                this.$controlMaplabel.attr('title', controlDataset.name);
                await controlDataset.getNormVectorIndex(config)
                this.eventBus.post(HICEvent("ControlMapLoad", this.controlDataset));
                if (!noUpdates) {
                    this.update();
                }
            } else {
                Alert.presentAlert('"B" map genome (' + controlDataset.genomeId + ') does not match "A" map genome (' + this.genome.id + ')');
            }
        } finally {
            this.$user_interaction_shield.hide();
            this.stopSpinner();
        }
    }
async loadHicControlFile ( config , noUpdates ) { try { this . $user_interaction_shield . show ( ) this . contactMatrixView . startSpinner ( ) this . controlUrl = config . url const name = extractName ( config ) config . name = name const controlDataset = await Dataset . loadDataset ( config ) controlDataset . name = name if ( ! this . dataset || this . dataset . isCompatible ( controlDataset ) ) { this . controlDataset = controlDataset ; if ( this . dataset ) { this . $contactMaplabel . text ( "A: " + this . dataset . name ) ; } this . $controlMaplabel . text ( "B: " + controlDataset . name ) ; this . $controlMaplabel . attr ( 'title' , controlDataset . name ) ; await controlDataset . getNormVectorIndex ( config ) this . eventBus . post ( HICEvent ( "ControlMapLoad" , this . controlDataset ) ) ; if ( ! noUpdates ) { this . update ( ) ; } } else { Alert . presentAlert ( '"B" map genome (' + controlDataset . genomeId + ') does not match "A" map genome (' + this . genome . id + ')' ) ; } } finally { this . $user_interaction_shield . hide ( ) ; this . stopSpinner ( ) ; } }
Load a .hic file for a control map
 NOTE: public API function
Load a . hic file for a control map NOTE : public API function
//For the control dataset, block until the norm vector index is loaded