# Contains rules for partially present clusters, missing one or more functional parts

# Cutoffs and neighbourhoods are given in kilobases

RULE NRPS-like
    CATEGORY NRPS
    COMMENT Catches NRPS-like fragments that are not detected by the NRPS rule
    SUPERIORS NRPS, NAPAA
    CUTOFF 0  # since we're really looking at single CDS fragments
    NEIGHBOURHOOD 20
    CONDITIONS cds((PP-binding or NAD_binding_4) and (AMP-binding or A-OX))

RULE PKS-like
    CATEGORY PKS
    COMMENT Catches PKS-like fragments that are not detected by another PKS rule
    SUPERIORS T2PKS
    CUTOFF 10
    NEIGHBOURHOOD 20
    CONDITIONS t2pks2 or ksIII

RULE transAT-PKS-like
    CATEGORY PKS
    COMMENT Marks partial transAT-PKS clusters, specifically those with an AT-docking domain,
            but no AT domain.
    SUPERIORS transAT-PKS
    CUTOFF 45
    NEIGHBOURHOOD 20
    CONDITIONS cds(ATd and (PKS_KS or ene_KS or mod_KS or hyb_KS or itr_KS or tra_KS) and not PKS_AT)

RULE RRE-containing
    CATEGORY RiPP
    COMMENT RRE-element containing cluster
    SUPERIORS RiPP-like, bottromycin, cyanobactin, fungal-RiPP, guanidinotides,
              lanthipeptide-class-i, lanthipeptide-class-ii,
              lanthipeptide-class-iii, lanthipeptide-class-iv,
              lanthipeptide-class-v,
              LAP, lassopeptide, lipolanthine, microviridin, proteusin, RaS-RiPP,
              sactipeptide, thioamitides, thiopeptide, ranthipeptide,
              glycocin, redox-cofactor
    CUTOFF 10
    NEIGHBOURHOOD 10
    CONDITIONS ANY_RRE
