Skip to content

Commit

Permalink
fix trp man conformation issue in webapp glycan plot
Browse files Browse the repository at this point in the history
  • Loading branch information
louholland committed Jan 9, 2024
1 parent da59b31 commit 03e14f2
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 8,287 deletions.
2 changes: 1 addition & 1 deletion src/privateer/cpp/privateer-lib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2453,7 +2453,7 @@ bool privateer::glycanbuilderplot::Plot::plot_glycan ( clipper::MGlycan glycan,
void privateer::glycanbuilderplot::Plot::recursive_paint ( clipper::MGlycan mg, clipper::MGlycan::Node node, int x, int y, bool oxford_angles, GlycanErrorCount* errors)
{
const clipper::MSugar& sugar = node.get_sugar();
GlycanErrorCount node_errors = privateer::glycanbuilderplot::get_error_counts(sugar);
GlycanErrorCount node_errors = privateer::glycanbuilderplot::get_error_counts(sugar, mg);

errors->torsion_err += node_errors.torsion_err;
errors->conformation_err += node_errors.conformation_err;
Expand Down
7 changes: 5 additions & 2 deletions src/privateer/cpp/privateer-lib.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,14 @@ namespace privateer
}
};

static inline const GlycanErrorCount get_error_counts ( clipper::MSugar sugar )
static inline const GlycanErrorCount get_error_counts ( clipper::MSugar sugar , clipper::MGlycan glycan)
{

GlycanErrorCount err;

if ( ( glycan.get_type() == "c-glycan" ) && (sugar.type().trim() == "MAN" ) && (sugar.conformation_name() == "1c4"))
{
sugar.override_conformation_diag ( true );
}
if ( ! sugar.ok_with_anomer() ) {
err.anomer_err++;
}
Expand Down
8,296 changes: 12 additions & 8,284 deletions webapp/src/wasm/privateer.js

Large diffs are not rendered by default.

Binary file modified webapp/src/wasm/privateer.wasm
Binary file not shown.

0 comments on commit 03e14f2

Please sign in to comment.