Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Web App to allow AlphaFold 3 Structure Input #98

Merged
merged 3 commits into from
May 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/privateer/cpp/privateer-bind.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,19 @@ clipper::MiniMol read_molecule(const std::string &file, const std::string &name)
}
::gemmi::Structure structure = ::gemmi::read_structure_from_char_array(c_data, size, name);
std::cout << "[Privateer] Successfully read structure" << std::endl;

if (structure.spacegroup_hm == "") {
std::cout << "[Privateer] This structure has no spacegroup specified, setting to P1." << std::endl;
structure.spacegroup_hm = "P 1";
}

clipper::GEMMIFile gemmi_file;
clipper::GemmiStructure *gemmi_structure = &gemmi_file;
gemmi_structure->structure_ = structure;
clipper::MiniMol mol;
gemmi_file.import_minimol(mol);

clipper::Cell cell = mol.cell();
std::cout << cell.format() << std::endl;
clipper::Cell cell = mol.cell();
if (cell.a() == 1.0 && cell.b() == 1.0 && cell.c() == 1.0 ) {
std::cout << "[Privateer] This cell is 1A, inflating the cell but this will lose crystal contact information" << std::endl;
mol.init ( clipper::Spacegroup::p1(), clipper::Cell(clipper::Cell_descr ( 300, 300, 300, 90, 90, 90 )) );
Expand Down
11 changes: 7 additions & 4 deletions webapp/src/modals/Citations/Citations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,13 @@ export default function CitationModal(props: {
</strong>
</div>

{/* <div className="mt-4 flex flex-col space-y-2"> */}
{/* <h3>If you have used the <b><i>Privateer Database</i></b>, please cite: </h3> */}
{/* <span>Dialpuri, J. S., Bagdonas, H., Schofield, L. C., Pham, P. T., Holland, L., Bond, P. S., Sánchez Rodríguez, F., McNicholas, S. J. & Agirre, J. (2024). Online carbohydrate 3D structure validation with the Privateer web app. Acta Cryst. F80. https://doi.org/10.1107/S2053230X24000359</span> */}
{/* </div> */}
<div className="mt-4 flex flex-col space-y-2">
<h3>If you have used the <b><i>Privateer Database</i></b>, please cite: </h3>

<strong>Dialpuri, J. S.; Bagdonas, H.; Schofield, L. C.; Pham, P. T.; Holland, L.; Agirre, J. Beilstein J. Org. Chem. 2024, 20, 931–939.
<p><a href="https://doi.org/10.3762/bjoc.20.83" target="_blank">https://doi.org/10.3762/bjoc.20.83</a></p>
</strong>
</div>

<div className="mt-4 flex flex-col space-y-2 font text-sm sm:text-base">
<h3>
Expand Down
Binary file modified webapp/src/wasm/privateer.wasm
Binary file not shown.
Loading