This repository was archived by the owner on Mar 10, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Feature/add mdposit scraper #61
Merged
Merged
Changes from 3 commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
0a37b89
feat: add MDposit dataset scraping script.
caf2865
feat(models): add MDPOSIT repository and MDDB project fields.
9147f32
feat(cli): add README command and scrape-mdposit entry point.
f809832
merge: sync main into update-mdposit-scraper
e1a4e9d
refactor(simulation-model): add molecule type field (protein, lipid, …
fb283e1
chore(ruff): disable PERF401 for model instance appends
064d94b
refactor(mdposit-scraper): update to scrape using both nodes of MDDB …
e150d24
docs: adding the mddb documentation + update the readme and command …
e3c5e38
feat: refactor the code and resolve AttributeError
cfe2622
merge: sync main into update-mdposit-scraper
Essmaw 5b01789
feat: add URL computation for ExternalIdentifier based on database name
Essmaw 5533d8b
Fix merging of new datasource names into DatasetSourceName instead of…
Essmaw 9ebc838
feat: enhance molecule extraction to fit the new model and adding Un…
Essmaw 96793e5
test(simulation): test URL computation for ExternalIdentifier
Essmaw f031e28
tests: refactor tests for ExternalIdentifier to account for automatic…
Essmaw 6cb949d
refactor: rename number_of_molecules to number_of_this_molecule_type_…
Essmaw 3871d22
refactor: rename number_of_this_molecule_type_in_system to number_of_…
Essmaw c9be76f
tests: refactor with `number_of_molecules` attribute and adding speci…
Essmaw 542f54a
fixes(mddb scraper): correct spelling errors, improve parameter descr…
Essmaw 21943fc
docs: correct spelling errors
Essmaw d826989
fix: Revert to 'software' field
pierrepo 671008c
refactor: Reduce usage and scope of try/except blocks
pierrepo f987ea7
feat: Add default DatasetSourceName
pierrepo 059d51f
feat: Coexerce verstion to str
pierrepo ebf4470
docs: Update MDDB documentation and examples
pierrepo 63181fa
refactor: Remove more try/except
pierrepo 7a5f580
refactor: Split log message
pierrepo d0324ee
fix: Fix error when forcefield metadata is undifiend
pierrepo 8b57c76
fix: Handle case with no protein sequence nor Uniprot identifier
pierrepo 024efa9
fix: Handle case when no software is available
pierrepo 88b9955
feat: Add InChIKey field for Molecule model
pierrepo dd724a7
fix: Fix dataset_url_in_repository field
pierrepo 9e0374f
docs: Print dataset URL in API
pierrepo 6b959da
feat: Align uniprot identifiers with protein sequences
pierrepo e3a353c
feat: Add replicas logic in file metadata extraction
pierrepo 7068584
feat: Add rules to avoid lengthy try / except blocks
pierrepo 9cd0a88
fix: Add special case for 'inr' (INRIA) node name
pierrepo 40ea3ca
feat: Add Cineca MDDB node
pierrepo a8ed77b
feat: Add another way to get protein name from Uniprot
pierrepo 7884275
fix: Update logic to fetch protein name from Uniprot
pierrepo 71f7c43
docs: Fix typos
pierrepo 3d003b3
docs: Relax scraping time
pierrepo cf32a04
chore: Reallow PERF401 rules
pierrepo 91595f1
docs: Remove MDDB node names
pierrepo 6658973
refactor: Clean code
pierrepo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -171,6 +171,26 @@ This command will: | |||||
| 5. Save the extracted metadata to Parquet files | ||||||
|
|
||||||
|
|
||||||
| ## Scrape MDposit | ||||||
|
|
||||||
| Have a look to the notes regarding [MDposit](docs/mdposit.md) and its API. | ||||||
|
Essmaw marked this conversation as resolved.
Outdated
|
||||||
|
|
||||||
| Scrape MDposit to collect molecular dynamics (MD) datasets and files: | ||||||
|
|
||||||
| ```bash | ||||||
| uv run scrape-mdposit --output-dir data | ||||||
| ``` | ||||||
|
|
||||||
| This command will: | ||||||
|
|
||||||
| 1. Search for molecular dynamics entries and files through the MDposit API. | ||||||
| 2. Parse metadata and validate them using the Pydantic models | ||||||
| `DatasetMetadata` and `FileMetadata`. | ||||||
| 3. Save validated files and datasets metadata. | ||||||
|
|
||||||
| The scraping takes about 13 minutes. | ||||||
|
||||||
| The scraping takes about 13 minutes. | |
| The scraping may take several minutes, depending on your network connection and hardware. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.