I am looking at something like this: https://alphafold.com/entry/Q9Y499 There is a nice visualization there which I want to replicate in Unity. There are download links for PDB, mmCIF and predicted align error at the top. How would I do this?

  • \$\begingroup\$ This likely consists of multiple steps. One is parsing the file format and translating it to a description of the molecular structure you want to render. That part, very few game developers are likely to have done, so if you need help interpreting what molecules these files represent and how they're bent/oriented, it would be best to ask a molecular biologist - maybe on the Bioinformatics StackExchange. Then, once you know what structure you want to render, you can ask here how to write a Unity script that arranges meshes/etc into that structure. \$\endgroup\$
    – DMGregory
    Aug 5 at 17:49
  • \$\begingroup\$ Thanks @DMGregory \$\endgroup\$ Aug 5 at 17:51
  • \$\begingroup\$ Taking a scan through these files, it looks reasonably clear how to read the positions of each atom and what peptide they belong to (unless I'm missing a hidden gotcha), but it's not clear to me how to derive the oriented splines used for the alpha helices, beta-strips/sheets, etc. making up the ribbon diagram structure. Since it looks like there are multiple different problems to solve here, I'm going to put the question on hold for now as in need of more focus. You can edit the question to focus on a single Unity task like "given a set of positions and orientations, how do I render a ribbon" \$\endgroup\$
    – DMGregory
    Aug 5 at 19:42
  • \$\begingroup\$ Thanks @DMGregory \$\endgroup\$ Aug 5 at 23:18


Browse other questions tagged .