Skip to main content

Standard formating and easy access to 3D structural datasets for machine learning. currently under development...

Project description

StructureCloud

A collection of 3D Point cloud datasets commonly used for training generative modeling and molecular discovery.

Install

install hugging face dataset library

pip install datasets 

install StructureCloud (TODO: not yet on PyPi)

$ pip install StructureCloud

StructureCloud Datasets

StructureCloud is aimed at simplifying pointcloud dataset retrieval and manipulation with a simple unifying output format. The datasets in StructureCloud are chosen speifically for training models that adress problems related to 3D structures.

Usage

import numpy as np
import torch
from StructureCloud.Datasets import StructureCloudDataset as scd

# load numerical values as numpy objects
dataset_default = scd('dataset_name', split='train') 

# load numerical values as torch tensors
dataset_torch = scd('dataset_name', split='train', num_fmt=torch.tensor) 

#dataset output format is as follows
positions, features, unitcell, lables = dataset[index]

# output shapes:
# positions [N, 3] - positions in 3d space
# features [N, 1] or [N, d] - node feature/identities (ie element#, class, etc) 
# unitcell/bounding box [3,3]
# labels - a dictionary
# lables['node'] = { dict of nodewise lables : [N,d] } 							
# labels['object] = { dict of whole object labels : [d] }


#### selecting and formating data labels ###
## by default, the labels dictonary returns all additional information associated with the dataset.
## but a specific label can be selected by defining a formating function in 'label_fmt' 

get_object_target = lambda x : torch.tensor(x['object']['targets'])
get_object_smiles = lambda x : x['object']['SMILES']

qm9_regression = StructureCloudDataset('QM9', label_fmt = get_object_target)
qm9_smiles = StructureCloudDataset('QM9', label_fmt = get_object_smiles )

reg_target = qm9_regression[1000][3]
smiles = qm9_smiles[1000][3]
print(smiles)
print(reg_target)

Available Datasets

Small Organic Molecules

  • QM9
  • PCQM4Mv2
  • GEOM

Proteins and biomolecules

  • AlphaFold Homo Sapiens (proteins)
  • (LP)PDBbind2020

Materials

  • MP-20
  • Perov-5
  • Carbon-24
  • MPTS-52
  • PCOD2

3D objects

  • coming soon...

Gaussian Splats

  • coming soon..,

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

structurecloud-0.0.1.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

structurecloud-0.0.1-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file structurecloud-0.0.1.tar.gz.

File metadata

  • Download URL: structurecloud-0.0.1.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.15

File hashes

Hashes for structurecloud-0.0.1.tar.gz
Algorithm Hash digest
SHA256 c77db54fc3a5b61e7d97a0db93a9a61b5209bd7138d869f051dfa623f00ab112
MD5 e68cd588efdb72b2d8b71f9ec8a2cca5
BLAKE2b-256 df0b36096da08fcdc3c2971916a9f4502b631c36df3b9cb60f6550d6d3149704

See more details on using hashes here.

File details

Details for the file structurecloud-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: structurecloud-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.15

File hashes

Hashes for structurecloud-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 292d55ec47f2a9387586c88b09f4e3444469a30be2283eea3c3f047c7cfea3a2
MD5 9c1637cbf2ae2f65617d03ad93e74433
BLAKE2b-256 3918cb24f677b491cbd1dfb44876727cd77d06acb3dcf1e155e82a32c750b679

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page