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 03e14f2 commit 52f3f95
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 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 @@ -2468,7 +2468,7 @@ void privateer::glycanbuilderplot::Plot::recursive_paint ( clipper::MGlycan mg,
bool node_contains_issue_with_sugar = false;
int branches = node.number_of_connections();

node_contains_issue_with_sugar = sugar_contains_issues(sugar);
node_contains_issue_with_sugar = sugar_contains_issues(sugar,mg);


if ( sugname == "Glc" )
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 @@ -174,9 +174,12 @@ namespace privateer
return err;
};

inline const bool sugar_contains_issues ( clipper::MSugar sugar )
inline const bool sugar_contains_issues ( clipper::MSugar sugar, clipper::MGlycan glycan )
{

if ( ( glycan.get_type() == "c-glycan" ) && (sugar.type().trim() == "MAN" ) && (sugar.conformation_name() == "1c4"))
{
sugar.override_conformation_diag ( true );
}
if ( sugar.ok_with_conformation() && sugar.ok_with_anomer() &&
sugar.ok_with_chirality() && sugar.ok_with_puckering() )
return false;
Expand Down
Binary file modified webapp/src/wasm/privateer.wasm
Binary file not shown.

0 comments on commit 52f3f95

Please sign in to comment.