Datasets:
Include provenance sidecars explicitly in remote loading example
Browse filesClarify that remote file patterns must include metadata.jsonl when provenance columns are wanted. Structure files and indices are unchanged.
17 unmodified lines181920212223242526272829303117 unmodified linesrevision = HfApi().dataset_info(repo).sharoot = f"hf://datasets/{repo}@{revision}/examples"rows = load_dataset("mmcif", data_files=f"{root}/bcif-zstd/*/*.bcif.zst",split="train", streaming=True,)atoms = next(iter(rows))["structure"]print(atoms.coord.shape)```Set `streaming=False` for a regular Dataset. The explicit file pattern selects structures; each component's adjacent `metadata.jsonl` supplies provenance. Calling `load_dataset(repo, "pdb_glycan", ...)` continues to load the original sampling metadata, not these examples.Without the Datasets PR, download an individual `.bcif.zst` file with `hf_hub_download` and read it with `atomworks.io.atom_array_from_file`.17 unmodified lines18192021222324252627282930313217 unmodified linesrevision = HfApi().dataset_info(repo).sharoot = f"hf://datasets/{repo}@{revision}/examples"rows = load_dataset("mmcif",data_files=[f"{root}/bcif-zstd/*/*.bcif.zst", f"{root}/bcif-zstd/*/metadata.jsonl"],split="train", streaming=True,)atoms = next(iter(rows))["structure"]print(atoms.coord.shape)```Set `streaming=False` for a regular Dataset. The explicit file pattern selects structures; the explicit `metadata.jsonl` pattern includes each component's provenance. Calling `load_dataset(repo, "pdb_glycan", ...)` continues to load the original sampling metadata, not these examples.Without the Datasets PR, download an individual `.bcif.zst` file with `hf_hub_download` and read it with `atomworks.io.atom_array_from_file`.
examples/README.md+3-2