From 05b96aeb4b277c8627ab233d359f0c1b8e4a8775 Mon Sep 17 00:00:00 2001 From: GABRAH Date: Mon, 27 Sep 2021 08:56:13 +0100 Subject: [PATCH] I'm a debil who forgot to add else ifs for ligands --- src/privateer.cpp | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/privateer.cpp b/src/privateer.cpp index 9af51e691..c01a4e849 100644 --- a/src/privateer.cpp +++ b/src/privateer.cpp @@ -787,6 +787,11 @@ int main(int argc, char** argv) ligandList[index].second.set_context ( "s-glycan" ); fprintf ( output, "\t(s) " ); } + else if ( list_of_glycans[i].get_type() == "ligand" ) + { + ligandList[index].second.set_context ( "ligand" ); + fprintf ( output, "\t(l) " ); + } found_in_tree = true; break; } @@ -915,6 +920,11 @@ int main(int argc, char** argv) ligandList[index].second.set_context ( "s-glycan" ); std::cout << "\t(s) "; } + else if ( list_of_glycans[i].get_type() == "ligand" ) + { + ligandList[index].second.set_context ( "ligand" ); + std::cout << "\t(l) "; + } found_in_tree = true; break; } @@ -2000,6 +2010,10 @@ int main(int argc, char** argv) { ligandList[index].second.set_context ( "s-glycan" ); } + else if ( list_of_glycans[i].get_type() == "ligand" ) + { + ligandList[index].second.set_context ( "ligand" ); + } found_in_tree = true; break; } @@ -2124,6 +2138,10 @@ int main(int argc, char** argv) { ligandList[index].second.set_context ( "s-glycan" ); } + else if ( list_of_glycans[i].get_type() == "ligand" ) + { + ligandList[index].second.set_context ( "ligand" ); + } found_in_tree = true; break; } @@ -2689,6 +2707,10 @@ int main(int argc, char** argv) { ligandList[index].second.set_context ( "s-glycan" ); } + else if ( list_of_glycans[i].get_type() == "ligand" ) + { + ligandList[index].second.set_context ( "ligand" ); + } found_in_tree = true; break; } @@ -2817,6 +2839,10 @@ int main(int argc, char** argv) { ligandList[index].second.set_context ( "s-glycan" ); } + else if ( list_of_glycans[i].get_type() == "ligand" ) + { + ligandList[index].second.set_context ( "ligand" ); + } found_in_tree = true; break; }