ZFN Off-Target Ranking
⚠️ EXPERIMENTAL. The engineering defects tracked in #82 have been addressed, but the ZFN arm still requires independent validation in genomic and experimental settings. Current artifacts use
worst_site_scorefor the maximum concerning off-target score andbest_offtarget_scorefor the minimum. Historical v1 artifacts used the inverse convention and must be regenerated. See ZFN Module Guide.
siRNAforge provides deterministic ZFN off-target ordering via sirnaforge.zfn.rank.rank_sites.
Policy
When two sites have equal score, tie-breaks are applied in this order:
Region priority:
exon>promoter>intron>intergenic>unknownChromosomal location (chromosome, then
start_1based, thenend_1based)Stable fallback by
site_id
This policy is designed to match PROGNOS-style ranking behavior used by the ZFN regression tests.
API
from sirnaforge.zfn.rank import rank_sites
ranked = rank_sites(sites, params)
sites: sequence ofZFNOffTargetSiteparams: optionalZFNDesignParameters(reserved for algorithm-specific extension)returns: new
list[ZFNOffTargetSite]sorted by rank