scripts/aiv_ui.js
/**
     * @function pearsonAndInterologFilterPPPIonEles - Similar logic to pearsonFilterEPPIonEles function but with additonal logic for the interlog confidence threshold (uses an OR cytoscapejs selector)
     * @param {object} AIVObjReference - reference to the AIV namespace object
     */
@function pearsonAndInterologFilterPPPIonEles - Similar logic to pearsonFilterEPPIonEles function but with additonal logic for the interlog confidence threshold (uses an OR cytoscapejs selector)
@param {object} AIVObjReference - reference to the AIV namespace object
@function pearsonAndInterologFilterPPPIonEles - Similar logic to pearsonFilterEPPIonEles function but with additonal logic for the interlog confidence threshold ( uses an OR cytoscapejs selector ) @param { object } AIVObjReference - reference to the AIV namespace object
function pearsonAndInterologFilterPPPIonEles(AIVObjReference){
        let filterRValue = Number(document.getElementById('PPPICorrThreshold').value);
        let filterInterlogConf = Number(document.getElementById('PPPIConfThreshold').value);
        let selector = `edge[pearsonR <= ${filterRValue}][!published][target ^= 'Protein'], edge[interologConfidence >= 1][interologConfidence <= ${filterInterlogConf}][!published][target ^= 'Protein']`;
        let edges = AIVObjReference.cy.$(selector); 
        edges.connectedNodes('node[!queryGene][id ^="Protein"]').forEach(function(ele){
            if (ele.connectedEdges(selector).size() === ele.degree()){
                ele.addClass('pearsonAndInterologfilterPPPI');
            }
        });
        edges.addClass('pearsonAndInterologfilterPPPI');
    }
function pearsonAndInterologFilterPPPIonEles ( AIVObjReference ) { let filterRValue = Number ( document . getElementById ( 'PPPICorrThreshold' ) . value ) ; let filterInterlogConf = Number ( document . getElementById ( 'PPPIConfThreshold' ) . value ) ; let selector = ` ${ filterRValue } ${ filterInterlogConf } ` ; let edges = AIVObjReference . cy . $ ( selector ) ; edges . connectedNodes ( 'node[!queryGene][id ^="Protein"]' ) . forEach ( function ( ele ) { if ( ele . connectedEdges ( selector ) . size ( ) === ele . degree ( ) ) { ele . addClass ( 'pearsonAndInterologfilterPPPI' ) ; } } ) ; edges . addClass ( 'pearsonAndInterologfilterPPPI' ) ; }
@function pearsonAndInterologFilterPPPIonEles - Similar logic to pearsonFilterEPPIonEles function but with additonal logic for the interlog confidence threshold (uses an OR cytoscapejs selector)
 @param {object} AIVObjReference - reference to the AIV namespace object
@function pearsonAndInterologFilterPPPIonEles - Similar logic to pearsonFilterEPPIonEles function but with additonal logic for the interlog confidence threshold ( uses an OR cytoscapejs selector ) @param { object } AIVObjReference - reference to the AIV namespace object
// OR selector // console.log(ele.data(), "data, degree", ele.degree());