structboost.looks_like_ensembl

structboost.looks_like_ensembl(identifiers, *, min_fraction=0.5)[source]

Whether a set of gene identifiers is predominantly Ensembl accessions.

Parameters:
  • identifiers (object) – Iterable of gene identifiers.

  • min_fraction (float) – Fraction that must match the Ensembl pattern. Defaults to 0.5 rather than 1.0 because real panels carry a tail of spike-ins and custom features that never match, and rejecting a whole panel over those would be wrong.

Returns:

True if at least min_fraction of the identifiers are Ensembl accessions.

Return type:

bool