# Cell File Syntax

**URL:** <https://discourse.rs-station.org/t/cell-file-syntax/217>\
**Category:** CrystFEL\
**Created:** [August 4, 2026, 7:40pm UTC](https://discourse.rs-station.org/t/cell-file-syntax/217 "2026-08-04T19:40:50Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![kmdalton](https://discourse.rs-station.org/user_avatar/discourse.rs-station.org/kmdalton/32/7_2.png) [@kmdalton](https://discourse.rs-station.org/u/kmdalton)\
**Post date:** [August 4, 2026, 7:40pm UTC](https://discourse.rs-station.org/t/cell-file-syntax/217/1 "2026-08-04T19:40:50Z")

</div>

I swear I found a page describing the `.cell` file syntax before, but for the life of me I can’t find it anymore. Can someone help me locate the docs for this?

---

<div class="post-metadata">

**Author:** ![jdawnduan](https://discourse.rs-station.org/user_avatar/discourse.rs-station.org/jdawnduan/32/113_2.png) [@jdawnduan](https://discourse.rs-station.org/u/jdawnduan)\
**Post date:** [August 7, 2026, 6:50pm UTC](https://discourse.rs-station.org/t/cell-file-syntax/217/2 "2026-08-07T18:50:17Z")

</div>

Could this be? [CrystFEL/relnotes-0.6.0 at master · biochem-fan/CrystFEL · GitHub](https://github.com/biochem-fan/CrystFEL/blob/master/relnotes-0.6.0)

```auto
CrystFEL offers you the ability to index patterns using Bravais lattice
information but without unit cell parameters, for example: "index these using
only tetragonal primitive lattices, but any parameters". However, it's awkward
to give this information using a PDB file: you essentially have to "trick" it
into interpreting the parameters correctly, then throw away the parameter
information.

Version 0.6.0 of CrystFEL introduces a new way of specifying unit cell
information. These new unit cell files look like this:

         CrystFEL unit cell file version 1.0

         lattice_type = cubic
         centering = I

         a = 66.2 A
         b = 66.2 A
         c = 66.2 A

         al = 90.0 deg
         be = 90.0 deg
         ga = 90.0 deg

In the event that you want to specify the lattice type information alone, you
can simply omit the cell parameters:

         CrystFEL unit cell file version 1.0

         lattice_type = tetragonal
         centering = P
	 unique_axis = c

Note that a unique axis must be specified for all types of cell where this makes
sense, and can be omitted otherwise. This was done in the first example above,
which is cubic and therefore has no unique axis.

You can, of course, continue to use PDB files just like before.

```

---

<div class="post-metadata">

**Author:** ![kmdalton](https://discourse.rs-station.org/user_avatar/discourse.rs-station.org/kmdalton/32/7_2.png) [@kmdalton](https://discourse.rs-station.org/u/kmdalton)\
**Post date:** [August 8, 2026, 4:45pm UTC](https://discourse.rs-station.org/t/cell-file-syntax/217/3 "2026-08-08T16:45:54Z")

</div>

> [@jdawnduan](#):
>
> ```auto
> l
> centering = P
> unique_axis = c
> 
> Note that a unique axis must be specified for all types of cell where this makes
> sense, and can be omitted otherwise. This was done in the first example above,
> which is cubic and therefore has no unique axis.
> 
> ```

certainly has the info i was looking for, thanks! i think there’s probably a more official source than the release notes though.

---

<div class="post-metadata">

**Author:** ![taw](https://discourse.rs-station.org/letter_avatar_proxy/v4/letter/t/cab0a1/32.png) [@taw](https://discourse.rs-station.org/u/taw)\
**Post date:** [August 12, 2026, 9:25pm UTC](https://discourse.rs-station.org/t/cell-file-syntax/217/4 "2026-08-12T21:25:51Z")

</div>

You’re right, this is a bit of an oversight in the documentation. I’ll add it somewhere sensible shortly (unless someone wants to send me a patch..), e.g. in `man crystfel` or `man indexamajig`.

---

<div class="post-metadata">

**Author:** ![kmdalton](https://discourse.rs-station.org/user_avatar/discourse.rs-station.org/kmdalton/32/7_2.png) [@kmdalton](https://discourse.rs-station.org/u/kmdalton)\
**Post date:** [August 12, 2026, 11:37pm UTC](https://discourse.rs-station.org/t/cell-file-syntax/217/5 "2026-08-12T23:37:37Z")

</div>

no worries, @taw. it’s a pretty sensible syntax. i was able to figure it out for my dataset, but adding a page would be nice. ~~naive question – do i need a desy account to send a PR to the desy gitlab?~~ doh answered my own question. didn’t realize there was a GitHub page too.

---

<div class="post-metadata">

**Author:** ![kmdalton](https://discourse.rs-station.org/user_avatar/discourse.rs-station.org/kmdalton/32/7_2.png) [@kmdalton](https://discourse.rs-station.org/u/kmdalton)\
**Post date:** [August 13, 2026, 12:40am UTC](https://discourse.rs-station.org/t/cell-file-syntax/217/6 "2026-08-13T00:40:50Z")

</div>

i put in a PR: [Unitcell man page by kmdalton · Pull Request #25 · taw10/crystfel · GitHub](https://github.com/taw10/crystfel/pull/25). claude did the first draft so it might be a tad verbose, but i suppose that’s better than not verbose enough.

---

<div class="post-metadata">

**Author:** ![taw](https://discourse.rs-station.org/letter_avatar_proxy/v4/letter/t/cab0a1/32.png) [@taw](https://discourse.rs-station.org/u/taw)\
**Post date:** [August 23, 2026, 8:33am UTC](https://discourse.rs-station.org/t/cell-file-syntax/217/7 "2026-08-23T08:33:08Z")

</div>

I just merged @kmdalton 's PR, meaning the unit cell file syntax is now thoroughly documented:

> **[doc/man/crystfel\_unitcell.5.md · master · Thomas White / CrystFEL · GitLab](https://gitlab.desy.de/thomas.white/crystfel/-/blob/master/doc/man/crystfel_unitcell.5.md)**
>
> Data processing for serial crystallography
