+
    Ák  ã                   ó0  € R t ^ RIt^ RIt^ RIt^ RIt^ RIHt ]! ]4      P                  4       P                  ^,          t
]
R,          t]! R4      t]R,          tR tR tR= U u. uF  p ]
V ,          NK  	  up t]! 4       t]! 4       t] F”  t]P*                  ! ]P-                  4       4      t]! ]]4      '       d   ]M]R	,          t] FQ  t]]
R,          8X  d)   ]R
,          R8X  d   ]P9                  ]R,          4       K9  ]P9                  ]R,          4       KS  	  K–  	  ]P*                  ! ]P-                  4       4      t]R,           UUu/ uF  qR,           F  q"VR,          bK  	  K  	  uppt. t]! 4       t ]PC                  RRR7      ;_uu_ 4       t"]PF                  ! ]"4       F¼  t$R]$R,          R]$R,          R]$R,          R]$R,          R]$R,          R]$R,          R]$R,          R]$R,          R]PK                  ]! ]$R,          4      4      ;'       g    R/	t&]PO                  ]&4       ]&R,          ]9   g   ]&R,          ]9   g   K¤  ] P9                  ]&R,          4       K¾  	  RRR4       ] ]],          8X  d5   ](! ]4      ](! ] U u0 uF  q R,          kK  	  up 4      u;8X  d	   R8X  g   Q h Q h] Uu0 uF,  q3R,          ]9   g   K  VR,          '       g   K#  VR,          kK.  	  upt)] Uu0 uF,  q3R,          ]9   g   K  VR,          '       g   K#  VR,          kK.  	  upt*/ t+]R,           F3  t,],R,          t-]-]*9   d
   ]-])9   d   RM]-]*9   d   RM
]-])9   d   RMR ]+]-&   K5  	  ]P\                  ! 4       t/]P`                  ! ]4      t1]R!,          PC                  R"RR#7      ;_uu_ 4       t". R>Ot2]Pf                  ! ]"]2R%7      t4]4Pk                  4        ] F˜  t]R,          '       d   ]+]R,          ,          MR&]R$&   ]4Pm                  ]4       ]/]R$,          ;;,          ^,          uu&   ]R,          Po                  4       R?9  g   Kr  ]1]R$,          ,          P9                  ]R,          4       Kš  	  RRR4       ]P\                  ! ]+Pq                  4       4      t9R'R(R)]! ]4      R*]! ]4      R+] Uu/ uF!  p]:! VPw                  ]
4      4      ]! V4      bK#  	  upR,]! ]! ]4      4      R-]! ]R!,          4      R.](! ]4      R/]<! ]/4      R0]<! ]94      R1]1P{                  4        UUu/ uF  w  rVV](! V4      bK  	  uppR2](! ]4      R3](! ]4      R4]>! R5 ] 4       4      R6R7R8R9/t?]R:,          P�                  ]P‚                  ! ]?^R;7      R<,           4       ]B! ]P‚                  ! R@ Uu/ uF  qU]?V,          bK  	  up^R;7      4       R# u up i u uppi   + '       g   i     ELq; iu up i u upi u upi   + '       g   i     ELˆ; iu upi u uppi u upi )AzNAssign conservative site-level exposure statuses; never load UDE image pixels.N)ÚPathz"results/r112/ude-sampling-metadataz/tmp/ude-metadata.csvzsite-components.jsonc                 óx   € \         P                  ! \        V 4      P                  4       4      P	                  4       # )N)ÚhashlibÚsha256r   Ú
read_bytesÚ	hexdigest)Úps   &Ú$research/r112_ude_exposure_ledger.pyÚ<lambda>r
      s]   € ô  X_÷  Xfò  Xfô  gkð  lmó  gn÷  gyñ  gyó  g{ó  X|÷  XFñ  XFô  XHó    c                 óü   € V P                  4       P                  R R4      P                  R4      R,          P                  4       q P	                  R4      '       d   V RR # V P	                  R4      '       d   V RR # T # )Ú\Ú/z.tiffNz.tiféÿÿÿÿéûÿÿÿéüÿÿÿ)ÚstripÚreplaceÚsplitÚcasefoldÚendswith)Úss   &r	   Ú	canonicalr      s   € Ø‡7�7ƒ9×Ñ�T˜#Ó×$Ñ$ SÓ)¨"Õ-×6Ñ6Ó8€Ï*É*ÐU\×J]ÒJ]ÀÀ#À2Àð  :GÐmn×mwÑmwÐx~×mÒmÐcdÐehÐfhÐcið  :Gð  FGð  :Gr   ú)results/r112/species-depth/selection.jsonÚrowsr   Útest_candidateÚannotation_idÚ
componentsÚ
slide_keysÚcomponent_idz	utf-8-sigÚ )ÚencodingÚnewlineÚimage_filenameÚcutout_filenameÚgenusÚspeciesÚ
subspeciesÚ	annotatorÚannotation_shapeÚshapeÚsite_componentirF Úlegacy_reserved_conflictÚlegacy_reservedÚprior_developmentÚcandidate_unseen_locationzexposure-ledger.csvÚw)r"   Úexposure_status)Ú
fieldnamesÚunmatched_slide_quarantineÚformatzr112-ude-exposure-ledger-v1Úcomponent_sha256Úmetadata_sha256Úinput_manifests_sha256Úscript_sha256Úledger_sha256Úmetadata_rowsÚstatus_countsÚcomponent_countsÚdistinct_source_species_stringsÚ*previously_seen_or_selected_annotation_idsÚlegacy_test_candidate_idsÚknown_prior_unmatched_idsc              #   ó’   "  € T F=  qR ,          \         \        ,          9   g   K!  VR,          '       d   K2  VR ,          x € K?  	  R# 5i)r   r+   N)ÚusedÚlegacy)Ú.0Úrs   & r	   Ú	<genexpr>rF      s‘   é € ð  H	o
ñ  e	m	ð  `	a	ð  s	B
õ  q	C
ô  G
K
ô  L
R
õ  G
R
ñ  q	R
ô  I	[	ð  [
\
ð  ]
m
÷  [
n
ñ  [
n
ô  I	[	ð  I	J	ð  K	Z	÷  I	[	ò  I	[	ó  e	m	ùs   ‚A¥A¶AÚpolicyaþ  A component containing any prior R112 species-depth test candidate is excluded from new training. If a component also contains prior development images, it is labeled legacy_reserved_conflict and is not location-independent. Components without a known selection in these eight audited manifests are candidate_unseen_location, not automatically valid test data; protect them from training while a complete exposure and sample audit is performed. Unmatched slides are quarantined. No UDE image pixels are loaded.Úlimitationsan  Prior-use audit is limited to explicitly listed manifests and may miss other previous access. Site-code/coordinate components are conservative proxies, not guaranteed biological sampling units; same site does not necessarily mean same sample, and distinct sites do not guarantee independence. Other taxa, genus-only entries and taxonomy synonyms are not adjudicated.zexposure-report.json)ÚindentÚ
)z+results/r112/diversity-fetch/selection.jsonr   z)results/r112/breadth-depth/selection.jsonz$results/r112/new-taxa/selection.jsonz+results/pilot/ude-adaptation/selection.jsonz8results/pilot/ude-adaptation-within-genus/selection.jsonz*results/r14/prefix/reference-manifest.jsonz"results/r7/reference-manifest.json)
r   r#   r$   r%   r&   r'   r(   r)   r+   r1   )r    ÚNone)r:   r;   r<   r=   r@   )CÚ__doc__ÚcollectionsÚcsvr   ÚjsonÚpathlibr   Ú__file__ÚresolveÚparentsÚRÚOÚMÚCÚshar   ÚpathsÚsetrB   rC   r   ÚloadsÚ	read_textÚobjÚ
isinstanceÚlistr   ÚrowÚaddr   ÚlookupÚmetadataÚfoundÚopenÚfÚ
DictReaderrE   ÚgetÚxÚappendÚlenÚused_groupsÚlegacy_groupsÚstatusÚcÚgÚCounterÚcountsÚdefaultdictÚtaxaÚfieldsÚ
DictWriterÚwriterÚwriteheaderÚwriterowr   ÚvaluesÚgroupsÚstrÚrelative_toÚdictÚitemsÚsortedÚresultÚ
write_textÚdumpsÚprint)ri   ro   ÚkeyrE   r   ÚkÚvs   0000000r	   Ú<module>rˆ      sè	  ðÙ Tß #× #Ý Ù€xƒ.×ÑÓ×"Ñ" 1Õ%€¨Ð*NÕ(N aÑQUÐVmÓQnÈqÐqrð  tJõ  rJÐopñ  OHð  KNòGñ ~ó  ñ  ~ˆq€qˆ‡s€sñ  ~ñ  €ñ  EHó  EJð  @Dñ  RUó  RWð  KQÛ	€AØ	‡Z‚Z�—‘“Ó€©:°c¸$×+?Ò+?¡CÀSÈÅ[˜tÛ€SØˆÐ
5Õ5Ô5¸#¸g½,ÐHXÔ:XÐY_×YcÑYcÐdgÐhwÕdxÖYyØ‡x�x��OÕ$Ö%ó ñ 
ð
 �:Š:�a—k‘k“mÓ$€
ÈJÐWcÖLdô  -AÑLdÀqÐr~×pÐpÐil°°>Õ1BÒ-BÑp©SÑLdò  -A Vð  KMð  BJñ  TWó  TYð  NSØ‡V�V�[¨€V×,Ô,°Ø
�.Š.˜Ö
€QØ�Q�Õ'Ð(8¸Ð;KÕ9LÐM^Ð_`ÐarÕ_sÐt{Ð|}ð  Fõ  }Gð  HQð  RSð  T]õ  R^ð  _kð  lmð  nzõ  l{ð  |Gð  HIð  JUõ  HVð  Wið  jkð  lsõ  jtð  uEð  FL÷  FPñ  FPñ  QZð  [\ð  ]mõ  [nó  Qoó  Fp÷  Fvð  Fvð  tvð  w€!ð  x@÷  xGñ  xGð  HIô  xJØ€Õ˜4Ô 1 _Õ#5¸Ö#?ÀÇ	Á	È!ÈOÕJ\Ö@]ñ ÷ -ð ˆd�6�kÔ™c (›m©SÉhÓ1WÉhÈ°O×2DÐ2DÉhÑ1WÓ-XÖ_ÐZ_Ô_Ð _Ð_Ð_Ð _Ð_ñ  KSó  mJñ  KSð  FGð  Yhõ  Wið  mqñ  Wqô  nAð  vwð  xH÷  vIñ  vIô  nAÐmnÐo÷  nAð  nAñ  KSñ  mJÐ`kñ  wó  Yxñ  wð  rsð  ETõ  CUð  Y_ñ  C_ô  Zmð  deð  fv÷  dwñ  dwô  Zmð  Z[ð  \l÷  Zmð  Zmñ  wñ  Yxð  KXð  @Bð  yØ	�L×	!Ð	!€AØ€^Õ€¸QÀ-Ô=OÐTUÐYdÔTdÑ9ð  @Að  ERô  @RÑj{ð  opð  tô  oñ  Xkð  E`�V˜A“Yñ 
"à×ÒÓ€ +×"9Ò"9¸#Ó">˜TØÐÕ×#Ñ# C°Ð#×3Ô3°qò 	^€ð  fi÷  ftò  ftð  uvð  BHô  fIð  _eð  JP÷  J\ñ  J\ô  J^Û€SØ:=Ð>N×:OÔ:O˜ Ð$4Õ 5Ö6ÐUq€#ÐÑÐrx÷  sBñ  sBð  CFô  sGð  HNð  ORð  Sdõ  Oe÷  Hfð  hiõ  Hió  HfØˆ…^×ÑÓ ;Ö.¨t°CÐ8IÕ4JÕ/K×/OÑ/OÐPSÐT]ÕP^Ö/_ñ ÷ 4ð
 ×Ò˜6Ÿ=™=›?Ó+€°HÐ=ZÐ[mÑnqÐrsÓntð  vGñ  HKð  LMó  HNð  Ogñ  OTó  hUñ  OTð  JKñ  ilð  mn÷  mzñ  mzð  {|ó  m}ó  i~ñ  Bð  CDó  Eò  iEñ  OTñ  hUð  Veñ  fiñ  jnð  owó  jxó  fyð  zIñ  JMð  NOð  Peõ  Neó  Jfð  gvñ  wzð  {Có  wDð  ETñ  UYð  Z`ó  Uað  btñ  uyð  z@ó  uAð  Bcð  y}÷  yCñ  yCô  yEô  dFñ  yEñ  ruð  rsð  efñ  gjð  kló  gmò  emñ  yEò  dFð  Gsñ  twð  x|ó  t}ð  ~Yñ  Z]ð  ^dó  Zeð  fA	ñ  B	H	ñ  H	o
ñ  e	m	ó  H	o
ó  B	o
ð  p
x
ð  y
yð  zGð  Hxð  4y¨Fð  {|ð  }Sõ  {S÷  z_ñ  z_ð  `d÷  `jò  `jð  kqð  yzô  `{ð  |@õ  `@ô  zAñ  BGð  HL÷  HRò  HRñ  i[ó  S\ñ  i[ð  deð  V\ð  ]^õ  V_ò  T_ñ  i[ñ  S\ð  deô  Hfö  Bgùò) ùó -Aß,×,Ð,üò 2Xùò  mJùò  Yx÷ 4×3Ð3üò
 hUùó  dFùò  S\st   Á$WÅ!WÆBWÈ.WÉWÊW%
Ê9W*ËW*ËW*Ë2W/ÌW/ÌW/Î.BW4Ñ*W4Ò4'XÔ&X,Ö%X×W"	×4X	