Tonic commited on
Commit
9619619
·
verified ·
1 Parent(s): 0787daf

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +169 -3
README.md CHANGED
@@ -1,5 +1,171 @@
1
- # INRIA Dynarepo Flattened Dataset
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
 
3
- This repository contains flattened per-MD records exported from the INRIA Dynarepo.
4
 
5
- Data is located under `data/records.jsonl`.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ configs:
3
+ - config_name: default
4
+ data_files:
5
+ - split: train
6
+ path:
7
+ - data/files/*/*screenshot*.jpg
8
+ - data/files/*/screenshot.jpg
9
+ - data/files/*/clusters_*_screenshot_*.jpg
10
+ - data/files/*/*.jpg
11
+ - data/files/*/*.jpeg
12
+ - data/files/*/*.png
13
+ - config_name: manifests
14
+ data_files:
15
+ - split: train
16
+ path:
17
+ - data/files/*/records.jsonl
18
+ - data/files/*/project.json
19
+ - data/files/all_records.jsonl
20
+ - config_name: structures
21
+ data_files:
22
+ - split: train
23
+ path:
24
+ - data/files/*/*.pdb
25
+ - data/files/*/*.tpr
26
+ - config_name: trajectories
27
+ data_files:
28
+ - split: train
29
+ path:
30
+ - data/files/*/*.xtc
31
+ - data/files/*/*.trr
32
+ - data/files/*/*.dcd
33
+ - data/files/*/*.bin
34
+ - data/files/*/pca_trajectory_*.bin
35
+ license: gpl
36
+ ---
37
 
38
+ # DynaRepo MDPosit
39
 
40
+ This repository mirrors Molecular Dynamics (MD) project metadata and files laid out per accession as exposed by Dynarepo. It includes global and per-accession manifests, project-level JSON, and the actual files (structures, trajectories, derived PCA binaries, and analysis screenshots). Field names and shapes follow Dynarepo’s documented model.
41
+
42
+
43
+ ## Overview
44
+
45
+ ### How to consume
46
+
47
+ - **Stream-parse**: Read the file line-by-line and `json.loads` each object to enumerate replicas and their artifacts.
48
+ - **Relate to `project_example.json`**: Each line mirrors an item in `flattened_md_records` and can be joined back to project-level fields if needed.
49
+ - **Concatenate across accessions**: You can build a global manifest by concatenating multiple `data\files\<ACCESSION>\records.jsonl` files.
50
+ - **Field semantics**: Follow the Dynarepo docs: [Meta](https://dynarepo.inria.fr/#/meta), [Statistics](https://dynarepo.inria.fr/#/statistics), [Help](https://dynarepo.inria.fr/#/help).
51
+
52
+
53
+ ## Understanding `all_records.jsonl` (global flattened per-accession manifest)
54
+
55
+ - **Source**: Global, line-delimited aggregation of per-replica records across all accessions. See: [Dynarepo Meta](https://dynarepo.inria.fr/#/meta), [Dynarepo Statistics](https://dynarepo.inria.fr/#/statistics), and [Dynarepo Help](https://dynarepo.inria.fr/#/help).
56
+ - **Where it lives**: `data\files\all_records.jsonl`.
57
+ - **What it is**: A JSON Lines file where each line mirrors a single replica entry from per-accession `records.jsonl` (fields include `project_identifier`, `accession`, `md_index`, `md_name`, `analyses`, `metadata`, and `files`).
58
+ - **How to use**: Stream-parse line by line, filter by `accession` or `analyses`, and group by `accession`/`md_index` to enumerate all replicas and their artifacts across the dataset. Field semantics are identical to per-accession records and follow Dynarepo docs.
59
+
60
+ ## Remote folder contents in `data\files\<ACCESSION>` (A0098 example)
61
+
62
+ - **Source**: Mirrors the per-accession file repository exposed by Dynarepo. See: [Dynarepo Meta](https://dynarepo.inria.fr/#/meta), [Dynarepo Statistics](https://dynarepo.inria.fr/#/statistics), and [Dynarepo Help](https://dynarepo.inria.fr/#/help).
63
+ - **Where it appears**: Under `data\files\<ACCESSION>\` in this repository; corresponds to Dynarepo’s remote path `/projects/<ACCESSION>/files`.
64
+ - **What you will typically find** (A0098 shown):
65
+ - Core descriptors: `project.json` (~5.18 kB), `records.jsonl` (~43.3 kB)
66
+ - Core MD simulation assets: `topology.tpr` (~1.71 MB), `structure.pdb` (~397 kB), `trajectory.xtc` (~93.5 MB), `trajectory.bin` (~294 MB)
67
+ - PCA-derived binaries: `pca_trajectory_01.bin` … `pca_trajectory_05.bin` (5 files, ~237 kB each)
68
+ - Cluster analysis screenshots:
69
+ - `clusters_00_screenshot_00.jpg` … `clusters_00_screenshot_20.jpg` (21 images, ~16–21 kB each)
70
+ - `clusters_01_screenshot_00.jpg` … `clusters_01_screenshot_19.jpg` (20 images, ~16–21 kB each)
71
+ - Cover/preview: `screenshot.jpg` (~20.7 kB)
72
+ - **Relationship to manifests**:
73
+ - Every file present under `data\files\<ACCESSION>\` is enumerated in that accession’s `records.jsonl` `files[]` entries with `name`, `downloadUrl` (relative to `/projects/<ACCESSION>/files/<name>`), `length` (bytes), and `contentType`.
74
+ - The same inventory is summarized in `project.json` under its `files` section (e.g., `list`, `filenotes`, `merged`) and joined into `flattened_md_records` for per-replica views.
75
+ - **Notes**: Exact counts and sizes vary by accession and by which analyses were run; additional analysis types will add further artifacts alongside those listed above.
76
+
77
+ ## Understanding `project.json` (Dynarepo dataset A0098)
78
+
79
+ - **Source**: Dataset metadata follows the Dynarepo model. See: [Dynarepo Meta](https://dynarepo.inria.fr/#/meta), [Dynarepo Statistics](https://dynarepo.inria.fr/#/statistics), and [Dynarepo Help](https://dynarepo.inria.fr/#/help).
80
+ - **Where it appears**: Each dataset under `data\files\<ACCESSION>` includes a project-level JSON with this schema. This repository provides a canonical example in `project_example.json`.
81
+ - **What it is**: A single, self-contained description of an MD project combining high-level project metadata, per-replica MD records, file inventory, topology, references, analysis results, and summaries. It is designed to be directly consumable by Dynarepo services and UIs.
82
+
83
+ ### High-level structure
84
+
85
+ - **`project`**: Core project info and global metadata
86
+ - Keys: `accession`, `published`, `metadata` (e.g., `NAME`, `DESCRIPTION`, `AUTHORS`, `PROGRAM`, `VERSION`, `TYPE`, `METHOD`, `LICENSE`, `PDBIDS`, `REFERENCES`, simulation params like `FRAMESTEP`, `TIMESTEP`, `TEMP`, `ENSEMBLE`, `FF`, `WAT`, box sizes, system counts), `mds` (replica names), `analyses` (available analysis types), `files` (canonical file names), `mdIndex`/`mdNumber`/`refframe`.
87
+ - **`flattened_md_records`**: One entry per MD replica with the replica’s `metadata` and a resolved `files` list including `downloadUrl`, `length`, and `contentType`.
88
+ - **`files`**:
89
+ - `list`: canonical file names present in the project
90
+ - `filenotes`: storage-level details (size, content type, upload date)
91
+ - `merged`: convenient join of name, URL, size, and metadata
92
+ - **`topology`**: Atoms, residues, chains, bonding, and external references used to build the system.
93
+ - **`references`**: Protein and PDB references (e.g., UniProt IDs, sequences, domains) and cross-links to PDB entries.
94
+ - **`analyses`**: Machine-readable outputs per analysis (e.g., `clusters`, `dist-perres`, `energies`, `fluctuation`, `hbonds`, `interactions`, `pca`, `pockets`, `rgyr`, `rmsd*`, `sasa`, `tmscores`).
95
+ - **`summaries`**: Compact keys/metrics for quick inspection and validation.
96
+
97
+ ### How this maps to datapoint A0098
98
+
99
+ - **Accession**: `A0098` (see `data\files\A0098\records.jsonl` for the per-replica lines used to populate `flattened_md_records`).
100
+ - **Project metadata examples** (from A0098):
101
+ - `metadata.NAME`: "Dynarepo 5FZT"
102
+ - `metadata.PDBIDS`: `["5FZT"]`
103
+ - `metadata.REFERENCES`: `["P26039", "Q96QB1"]`
104
+ - Simulation constants: `FRAMESTEP: 0.1`, `TIMESTEP: 2`, `TEMP: 310`, `ENSEMBLE: "NPT"`, `FF: ["CHARMM36m"]`, `WAT: "TIP3P"`, `BOXTYPE: "Dodecahedron"`
105
+ - System scale: `mdFrames: 5001`, `mdAtoms: 4900`, `PROTRES: 329`, `SYSTATS: 4900`
106
+ - **Files commonly present**: `topology.tpr`, `structure.pdb`, `trajectory.xtc`, `trajectory.bin`, `pca_trajectory_*.bin`, and analysis screenshots (e.g., `clusters_*_screenshot_*.jpg`).
107
+ - **Analyses present**: `clusters`, `clusters-00`, `clusters-01`, `dist-perres`, `energies`, `fluctuation`, `hbonds`, `interactions`, `pca`, `rgyr`, `rmsd-pairwise`, `rmsd-perres`, `rmsds`, `sasa`, `tmscores`.
108
+
109
+ ## Understanding `records.jsonl` (per-replica manifest in `data\files\<ACCESSION>`)
110
+
111
+ - **Source**: Per-MD replica records consistent with Dynarepo’s flattened MD model. See: [Dynarepo Meta](https://dynarepo.inria.fr/#/meta), [Dynarepo Statistics](https://dynarepo.inria.fr/#/statistics), and [Dynarepo Help](https://dynarepo.inria.fr/#/help).
112
+ - **Where it appears**: For each accession, a `records.jsonl` lives under `data\files\<ACCESSION>\`. This repository includes `data\files\A0098\records.jsonl`. A compact illustration is also provided at the repository root as `records._examplejsonl`.
113
+ - **What it is**: A JSON Lines file; each line describes one MD replica and its files.
114
+
115
+ ### Record shape (keys you will see per line)
116
+
117
+ - **Top-level identifiers**: `project_identifier`, `accession`, `published`
118
+ - **Replica info**: `md_index` (0-based), `md_name` (e.g., "replica 1"), `chains` (if applicable)
119
+ - **Analyses available**: `analyses` (e.g., `clusters`, `rmsds`, `pca`, `sasa`, ...)
120
+ - **`metadata` object**: Biology and simulation parameters used by Dynarepo UIs and services. Common fields include `NAME`, `DESCRIPTION`, `AUTHORS`, `GROUPS`, `CONTACT`, `PROGRAM`, `VERSION`, `TYPE`, `METHOD`, `LICENSE` (and `LINKCENSE`), `PDBIDS`, `REFERENCES`, sequences/domains (`PROTSEQ`, `NUCLSEQ`, `DOMAINS`), simulation setup (`FRAMESTEP`, `TIMESTEP`, `TEMP`, `ENSEMBLE`, `FF`, `WAT`, `BOXTYPE`), system sizes (`SYSTATS`, `SYSTRES`, `PROTATS`, `PROTRES`, ...), optional `INTERACTIONS`, box sizes (`BOXSIZEX/Y/Z`), and per-replica summaries like `mdAtoms` and `mdFrames`.
121
+ - **`files` array**: One entry per stored artifact with `name`, `downloadUrl` (relative to `/projects/<ACCESSION>/files/<name>`), `length` (bytes), `contentType`, and a small `metadata` dict (e.g., `{project: <id>, md: <index>}` or per-file stats for derived binaries).
122
+
123
+ Typical files for A0098 include `topology.tpr`, `structure.pdb`, `trajectory.xtc`, `trajectory.bin`, `pca_trajectory_*.bin`, and analysis screenshots like `clusters_*_screenshot_*.jpg`.
124
+
125
+ ### Example (A0098, truncated line 1)
126
+
127
+ ```json
128
+ {
129
+ "project_identifier": "A0098",
130
+ "accession": "A0098",
131
+ "published": true,
132
+ "md_index": 0,
133
+ "md_name": "replica 1",
134
+ "analyses": ["clusters", "pca", "rmsds", "sasa", "..."],
135
+ "metadata": {
136
+ "NAME": "Dynarepo 5FZT",
137
+ "PDBIDS": ["5FZT"],
138
+ "FRAMESTEP": 0.1,
139
+ "TIMESTEP": 2,
140
+ "TEMP": 310,
141
+ "ENSEMBLE": "NPT",
142
+ "FF": ["CHARMM36m"],
143
+ "WAT": "TIP3P",
144
+ "mdAtoms": 4900,
145
+ "mdFrames": 5001
146
+ },
147
+ "files": [
148
+ {"name": "topology.tpr", "downloadUrl": "/projects/A0098/files/topology.tpr", "length": 1712912, "contentType": "application/octet-stream"},
149
+ {"name": "structure.pdb", "downloadUrl": "/projects/A0098/files/structure.pdb", "length": 396935, "contentType": "chemical/x-pdb"},
150
+ {"name": "trajectory.xtc", "downloadUrl": "/projects/A0098/files/trajectory.xtc", "length": 93513296, "contentType": "application/octet-stream"}
151
+ // ... more files omitted ...
152
+ ]
153
+ }
154
+ ```
155
+
156
+
157
+ ### Contributing
158
+
159
+ When creating a new project JSON for another accession, minimally review/update:
160
+
161
+ - **Identifiers**: `project.accession`, `project.identifier`, and `metadata.NAME`
162
+ - **Biology**: `metadata.PDBIDS`, `metadata.REFERENCES` (UniProt), sequences/domains in `references`
163
+ - **Simulation**: `FRAMESTEP`, `TIMESTEP`, `TEMP`, `ENSEMBLE`, `FF`, `WAT`, box sizes, atom/residue counts
164
+ - **Replicas**: `mds` list and `flattened_md_records[*].md_index/md_name`
165
+ - **Files**: Ensure `files.list`, `files.merged`, and each replica’s `files[]` match your storage paths and sizes
166
+ - **Analyses**: Keep only the analyses you actually produced and include their data payloads
167
+
168
+ For reference on field meanings and expected shapes, consult the Dynarepo documentation: [Meta](https://dynarepo.inria.fr/#/meta), [Statistics](https://dynarepo.inria.fr/#/statistics), [Help](https://dynarepo.inria.fr/#/help).
169
+
170
+
171
+ **References**: [Dynarepo Meta](https://dynarepo.inria.fr/#/meta), [Dynarepo Statistics](https://dynarepo.inria.fr/#/statistics), [Dynarepo Help](https://dynarepo.inria.fr/#/help)