Commit bcb360a9 authored by Habil, Ardalan (arhab001)'s avatar Habil, Ardalan (arhab001)
Browse files

Update sybilSBML.c Annotation Bug

parent d6e197c9
......@@ -1576,8 +1576,8 @@ void ParseModtoAnno (SBase_t* comp , char* Mannocopy)
if(strncmp("bqbiol", ptr, strlen("bqbiol")) == 0)
{
if (first != 0) SBase_addCVTerm((SBase_t*)comp, cv);
if (first != 0){ SBase_addCVTerm((SBase_t*)comp, cv);CVTerm_free(cv);}
//CVTerm_free(cv);
quali = strcpy(&ptr[0],&ptr[7]);
cv = CVTerm_createWithQualifierType(BIOLOGICAL_QUALIFIER);
CVTerm_setBiologicalQualifierTypeByString( cv, (const char*) quali);
......@@ -1585,7 +1585,8 @@ void ParseModtoAnno (SBase_t* comp , char* Mannocopy)
}
else if(strncmp("bqmodel", ptr, strlen("bqmodel")) == 0)
{
if (first != 0) SBase_addCVTerm((SBase_t*)comp, cv);
if (first != 0) { SBase_addCVTerm((SBase_t*)comp, cv);CVTerm_free(cv);}
//CVTerm_free(cv);
quali = strcpy(&ptr[0],&ptr[8]);
cv = CVTerm_createWithQualifierType(MODEL_QUALIFIER);
CVTerm_setModelQualifierTypeByString( cv, (const char*) quali);
......@@ -2293,4 +2294,4 @@ SEXP exportSBML (SEXP version, SEXP level,SEXP FbcLevel, SEXP filename,SEXP sybi
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment