Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/multimeric/mmcifix

Fixes mmCIF protein structure files
https://github.com/multimeric/mmcifix

bioinformatics crystallography mmcif pdb-database structural-biology

Last synced: 19 days ago
JSON representation

Fixes mmCIF protein structure files

Awesome Lists containing this project

README

        

# mmcifix

A collection of "fixer" functions for mmCIF files that can fix common issues with files in that format

## CLI

```
Usage: mmcifix [OPTIONS] STRUCTURE

Fixes one or more issues with an mmCIF file

Options:
--fixer [auth_seq_id|label_seq_id|database_id]
Apply a fixer
--help Show this message and exit.
```

## Python API

```python
from mmcifix import fix_file

with open("some_input.cif") as in_fp, open("some_output.cif") as out_fp:
fix_file(in_file=in_fp, out_file=out_fp, fixers=["auth_seq_id"])
```

## Changes

### 0.4.0

* Added `FixAltId`, which replaces `?` with `.` in the `label_alt_id`, e.g. for compatibility with arpeggio

### 0.3.0

* Added `FixAsymIdForPdb`, which replaces chain IDs that are invalid for PDB format

### 0.2.1

* Fix bug in `database_id` fixer

### 0.2.0

* Convert all fixers into classes
* Add `database_id` fixer