diff --git a/src/privateer/cpp/privateer-lib.cpp b/src/privateer/cpp/privateer-lib.cpp index a77128fe..33f77344 100644 --- a/src/privateer/cpp/privateer-lib.cpp +++ b/src/privateer/cpp/privateer-lib.cpp @@ -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" ) diff --git a/src/privateer/cpp/privateer-lib.h b/src/privateer/cpp/privateer-lib.h index d754a507..bedd21c3 100644 --- a/src/privateer/cpp/privateer-lib.h +++ b/src/privateer/cpp/privateer-lib.h @@ -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; diff --git a/webapp/src/wasm/privateer.wasm b/webapp/src/wasm/privateer.wasm index 72f444a7..be658303 100755 Binary files a/webapp/src/wasm/privateer.wasm and b/webapp/src/wasm/privateer.wasm differ