maltefranke commited on
Commit
281dc86
·
verified ·
1 Parent(s): ccc3196

Document shared checksum verification and on-demand LibINVENT resources

Browse files
Files changed (1) hide show
  1. README.md +22 -3
README.md CHANGED
@@ -175,9 +175,17 @@ and SHA-256 checksums are in `manifest.json` and `SHA256SUMS`.
175
 
176
  Use a Morph checkout with portable scaffold cache version 2. Cache identities use
177
  source-file contents and dataset settings, so downloading or moving identical
178
- files preserves cache reuse. Morph reads each source split once per process to
179
- calculate its checksum; this initial read can take minutes for the largest GEOM
180
- split. Subsequent cache lookups in that process reuse the checksum.
 
 
 
 
 
 
 
 
181
 
182
  Select a published kind explicitly, for example:
183
 
@@ -191,6 +199,17 @@ The recipe's `rgroup` default is not among the published cuts and is computed on
191
  first use if selected. Evaluation panels are selected on first use; QM9/GEOM
192
  panels are also cached. Panels are not included in this snapshot. Other unpublished kinds are likewise built
193
  when requested; computing new LibINVENT cuts requires Morph's `scaffold` extra.
 
 
 
 
 
 
 
 
 
 
 
194
 
195
  ## CrossDocked ligand/pocket data
196
 
 
175
 
176
  Use a Morph checkout with portable scaffold cache version 2. Cache identities use
177
  source-file contents and dataset settings, so downloading or moving identical
178
+ files preserves cache reuse. Morph verifies each source split once and shares
179
+ that checksum across processes and later runs using a locked disk cache. File
180
+ identity, size, modification time and change time invalidate the local checksum
181
+ memo when the source changes. A new download/path requires one verification read,
182
+ which can take minutes for the largest GEOM split. Keep source files immutable
183
+ while readers are active. The dataset directory can be read-only.
184
+
185
+ Resources and verified source checksums default to `${XDG_CACHE_HOME:-~/.cache}/morph`;
186
+ set `MORPH_CACHE_DIR` to choose another writable location shared by your training
187
+ processes/nodes. These local verification records do not change the portable
188
+ scaffold-cache identity or the published cuts.
189
 
190
  Select a published kind explicitly, for example:
191
 
 
199
  first use if selected. Evaluation panels are selected on first use; QM9/GEOM
200
  panels are also cached. Panels are not included in this snapshot. Other unpublished kinds are likewise built
201
  when requested; computing new LibINVENT cuts requires Morph's `scaffold` extra.
202
+ The first LibINVENT use automatically downloads the original
203
+ [reaction rules](https://github.com/MolecularAI/Lib-INVENT-dataset/blob/540c1b015a091d3b79f57505168017baeefe10a5/tutorial/data/reaction.smirks)
204
+ and [DiffDec filters](https://github.com/biomed-AI/DiffDec/blob/916ae14207b2783a90336bb8509374535c5791f9/data/filter_conditions.json)
205
+ from pinned revisions, checks their SHA-256 hashes, and caches them for offline
206
+ reuse. The downloaded rules are byte-identical to those used for these artifacts.
207
+ Loading the published cuts does not download rules or require the optional cutter
208
+ dependency. To prepare the rules before an offline job:
209
+
210
+ ```bash
211
+ python -c 'from morph.dataset.conditional.scaffold.resources import libinvent_resources; libinvent_resources()'
212
+ ```
213
 
214
  ## CrossDocked ligand/pocket data
215