Skip to content

Jhsmit/hdxms-datasets

Folders and files

NameName
Last commit message
Last commit date
Nov 27, 2024
Apr 25, 2024
Feb 15, 2024
Nov 27, 2024
Jan 21, 2025
Feb 21, 2024
Oct 25, 2022
Oct 25, 2022
Aug 8, 2023
Oct 25, 2022
Oct 25, 2022
Oct 25, 2022
Oct 25, 2022
Jun 13, 2024
Aug 8, 2023
Apr 25, 2024
Nov 27, 2024

Repository files navigation

HDXMS Datasets

  • Free software: MIT license

Installation

$ pip install hdxms-datasets

HDX-MS database

Currently a beta test database is set up at: https://github.com/Jhsmit/HDX-MS-datasets

Example code

from pathlib import Path
from hdxms_datasets import DataVault

# local path the download datasets to
cache_dir = Path('.cache')

# create a vault with local cache dir, set `remote_url` to connect to a different database
vault = DataVault(cache_dir=cache_dir)

# Download a specific HDX dataset
vault.fetch_dataset("20221007_1530_SecA_Krishnamurthy")

# Load the dataset
ds = vault.load_dataset("20221007_1530_SecA_Krishnamurthy")

# Load the FD control of the first 'state' in the dataset.
fd_control = ds.load_peptides(0, "FD_control")

# Load the corresponding experimental peptides.
peptides = ds.load_peptides(0, "experiment")