scripts/aiv_ui.js
/**
     * @function filterNonQueryGenes - add event listener to checkbox to visually filter out non-form gene nodes and edges
     * @param {object} AIVObj - reference to the AIV namespace object
     */
@function filterNonQueryGenes - add event listener to checkbox to visually filter out non-form gene nodes and edges
@param {object} AIVObj - reference to the AIV namespace object
@function filterNonQueryGenes - add event listener to checkbox to visually filter out non - form gene nodes and edges @param { object } AIVObj - reference to the AIV namespace object
function filterNonQueryGenes(AIVObj) {
        document.getElementById('filterNonQueryEyeDiv').addEventListener('click', function(event){
            $("#filterNonQueryEye").toggleClass('fa-eye fa-eye-slash');
            AIVObj.cy.startBatch();
            AIVObj.cy.$('node[!queryGene][id ^= "Protein"], node[!queryGene][id ^= "Effector"]').toggleClass('filteredChildNodes');
            AIVObj.cy.endBatch();
        });
    }
function filterNonQueryGenes ( AIVObj ) { document . getElementById ( 'filterNonQueryEyeDiv' ) . addEventListener ( 'click' , function ( event ) { $ ( "#filterNonQueryEye" ) . toggleClass ( 'fa-eye fa-eye-slash' ) ; AIVObj . cy . startBatch ( ) ; AIVObj . cy . $ ( 'node[!queryGene][id ^= "Protein"], node[!queryGene][id ^= "Effector"]' ) . toggleClass ( 'filteredChildNodes' ) ; AIVObj . cy . endBatch ( ) ; } ) ; }
@function filterNonQueryGenes - add event listener to checkbox to visually filter out non-form gene nodes and edges
 @param {object} AIVObj - reference to the AIV namespace object
@function filterNonQueryGenes - add event listener to checkbox to visually filter out non - form gene nodes and edges @param { object } AIVObj - reference to the AIV namespace object