Skip to content

Commit

Permalink
feat: add alt_atom_id to biotite's internal CCD
Browse files Browse the repository at this point in the history
  • Loading branch information
Croydon-Brixton committed Oct 4, 2024
1 parent 231eefe commit 46221a0
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions setup_ccd.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,34 @@ class ColumnInfo:
],
alternative="model_Cartn_z",
),
"alt_atom_id": ColumnInfo(
"U6",
[StringArrayEncoding(
# The unique strings in the column are sorted
# -> Indices do not follow distinct pattern
data_encoding=[ByteArrayEncoding(type=TypeCode.INT16)],
offset_encoding=[
DeltaEncoding(src_type=TypeCode.INT32),
RunLengthEncoding(),
IntegerPackingEncoding(byte_count=1, is_unsigned=True),
ByteArrayEncoding()
]
)]
),
"alt_atom_id": ColumnInfo(
"U6",
[StringArrayEncoding(
# The unique strings in the column are sorted
# -> Indices do not follow distinct pattern
data_encoding=[ByteArrayEncoding(type=TypeCode.INT16)],
offset_encoding=[
DeltaEncoding(src_type=TypeCode.INT32),
RunLengthEncoding(),
IntegerPackingEncoding(byte_count=1, is_unsigned=True),
ByteArrayEncoding()
]
)]
),
}

BOND_COLUMNS = {
Expand Down

0 comments on commit 46221a0

Please sign in to comment.