Skip to content

Commit

Permalink
changed order of lipid_fa_types
Browse files Browse the repository at this point in the history
  • Loading branch information
dominik-kopczynski committed Dec 6, 2022
1 parent e92f331 commit 181c971
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
3 changes: 2 additions & 1 deletion cppgoslin/domain/LipidEnums.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ struct LipidClassMeta {


typedef map<LipidClass, LipidClassMeta> ClassMap;
enum LipidFaBondType { LCB_REGULAR, LCB_EXCEPTION, ETHER_PLASMANYL, ETHER_PLASMENYL, ETHER, ETHER_UNSPECIFIED, ESTER, AMIDE, NO_FA, UNDEFINED_FA, };
enum LipidFaBondType { UNDEFINED_FA = 0, ETHER_PLASMANYL = 1, ETHER_PLASMENYL = 2, ETHER = 3, ESTER = 4, LCB_REGULAR = 5, LCB_EXCEPTION = 6, AMIDE = 7, ETHER_UNSPECIFIED = 8, NO_FA = 9};


static const set<LipidFaBondType> LCB_STATES {LCB_REGULAR, LCB_EXCEPTION};

Expand Down
5 changes: 2 additions & 3 deletions src/domain/Headgroup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ string Headgroup::get_lipid_string(LipidLevel level){
}

stringstream headgoup_string;

// adding prefixes to the headgroup
if (!is_level(level, COMPLETE_STRUCTURE | FULL_STRUCTURE | STRUCTURE_DEFINED)){
vector<HeadgroupDecorator*> decorators_tmp;
Expand Down Expand Up @@ -182,10 +182,9 @@ string Headgroup::get_lipid_string(LipidLevel level){

// adding headgroup
headgoup_string << hgs;

// ading suffixes to the headgroup
for (auto hgd : *decorators){
if (hgd->suffix){
if (hgd != 0 && hgd->suffix){
headgoup_string << hgd->to_string(level);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/domain/LipidMolecularSpecies.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ string LipidMolecularSpecies::build_lipid_subspecies_name(LipidLevel level){

string fa_separator = (level != MOLECULAR_SPECIES || headgroup->lipid_category == SP) ? "/" : "_";
stringstream lipid_name;

lipid_name << headgroup->get_lipid_string(level);


string fa_headgroup_separator = (headgroup->lipid_category != ST) ? " " : "/";

switch (level){
Expand Down

0 comments on commit 181c971

Please sign in to comment.