static/js/rule.js
/**
 * Guess which column represents the highest taxonomic rank.
 * @function guessRankColumn
 * @param {Object} cols - cols object
 * @returns {number} - index of high rank column
 */
Guess which column represents the highest taxonomic rank.
@function guessRankColumn
@param {Object} cols - cols object
@returns {number} - index of high rank column
Guess which column represents the highest taxonomic rank . @function guessRankColumn @param { Object } cols - cols object @returns { number } - index of high rank column
function guessRankColumn(cols) {
  const keys = ['phylum', 'class', 'order', 'family', 'genus'];
  return findColumnByKeys(cols, keys, ['cat']);
}
function guessRankColumn ( cols ) { const keys = [ 'phylum' , 'class' , 'order' , 'family' , 'genus' ] ; return findColumnByKeys ( cols , keys , [ 'cat' ] ) ; }
Guess which column represents the highest taxonomic rank.
Guess which column represents the highest taxonomic rank .
// ignore kingdom/domain and species