Skip to main content

Losses and tools for coordinate refinement

Project description

Stardust: Modular Coordinate Refinement Library

Stardust is a modular library supporting coordinate refinement against experimental data: cryo-EM maps, crystallographic structure factors, and beyond.

Stardust is based on pytorch.

Structure and Vision

Stardust implements two primary abstractions:

  1. losslab. These are likelihood functions that compute the probability of some structure given a set of experimental data: p(x|D). A common interface to these losses is enforced by an abstract base class, BaseLoss.

  2. The refinementlogger, a gradient decent manager and logger. Many of the outputs of refinement are common to all refinement strategies: structures as a function of iteration, compute metrics, etc. The RefinementEngine class implements these common features and provides a foundation which specific refinement implementations can extend.

  3. A structure module that helps manage topology, coordinate, B-factor, and occupancy information. It contains a powerful Structure object in its own right, as well as code that is crucial for converting and interoperating with different coordinate representations in use.

Out of scope

Stardust does not generate or sample structures/coordinates. Stardust simply provides a likelihood (and, via torch, likelihood gradients) and a generic system for tracking progress as one seeks to optimize that likelihood.

Stardust assumes your are working with a discrete list of cartesian coordinates that represent atomic positions. Models that use densities, continous distributions, etc. are out of scope.

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

rs_stardust-0.0.2.tar.gz (41.5 kB view details)

Uploaded Source

Built Distribution

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

rs_stardust-0.0.2-py3-none-any.whl (33.7 kB view details)

Uploaded Python 3

File details

Details for the file rs_stardust-0.0.2.tar.gz.

File metadata

  • Download URL: rs_stardust-0.0.2.tar.gz
  • Upload date:
  • Size: 41.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for rs_stardust-0.0.2.tar.gz
Algorithm Hash digest
SHA256 2b87ef647895c9db01db41cb0d04d0db2edc371d0b2dc6c11b7273bae257a846
MD5 f293ba2fe12d20f72ac6ad1be7053b26
BLAKE2b-256 5cafbe2139907fcd04ad6c0f09a73bab537bebbf12cdd17ab9ca1e95c3db0f65

See more details on using hashes here.

File details

Details for the file rs_stardust-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: rs_stardust-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 33.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for rs_stardust-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b82e0cd4bdc57f3dc0c2885192c8e4d98e5f81c770617269fc6dbd23dcb30f24
MD5 238ceb515466563618088a56da4bd73f
BLAKE2b-256 52cf57c9234ddb4bd2196e9162546aab9621f8e82430f7e02beec135156c5a18

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