-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1118 mass balance #1136
1118 mass balance #1136
Conversation
{ | ||
"Name": "Intracellular", | ||
"Include": [ | ||
"Organism|**|Intracellular|Aciclovir*" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I forgot what we decided: if the molecules list above includes only Aciclovir
,
but I have e.g. Aciclovir-XY-Metabolite
in my simulation:
will Aciclovir-XY-Metabolite
be included via "Organism|**|Intracellular|Aciclovir*"
or not?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I stated it in the vignette
Note that inclusion and exclusion criteria for molecule paths leverage wild card symbols (*
).
...
Another use case is when a metabolite is defined using the molecule name as prefix.
Then, the metabolite can be included in the grouping.
{
"Name": "Plasma for Aciclovir and metabolites",
"Include": ["Organism|**|Plasma|Aciclovir*"]
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What I meant: the molecules list in the example contains Aciclovir
only:
"Molecules": [
"Aciclovir"
],
Now if "Include": ["Organism|**|Plasma|Aciclovir*"]
retrieves both Aciclovir
and Aciclovir-XY-Metabolite
: will the metabolite be included or not?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since only aciclovir was in molecules, no, they should not be retreived from the search.
(because the interesection between all the molecule paths from the compound in Molecules field and the Include field is used).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok. it would be good to select another example for vignette, which incorporates metabolites as well - but let's keep Aciclovir for now AS IS.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
created an issue for that: #1148
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s. comments
This comment was marked as resolved.
This comment was marked as resolved.
R/utilities-mass-balance.R
Outdated
if(!isEmpty(plotSettings$Name)){ | ||
sectionId <- defaultFileNames$resultID(length(massBalanceResults) + 1, "mass_balance") | ||
massBalanceResults[[sectionId]] <- saveTaskResults( | ||
id = sectionId, | ||
textChunk = paste("###", plotSettings$Name, anchor(sectionId)), | ||
includeTextChunk = TRUE | ||
) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what happens if plotSettings$Name
is empty?
Somehow I cannot see the else-part (where the default subchapter caption is written)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently, there is no sub section title added if plotSettings$Name
is empty.
1 test failed... |
@pchelle |
No description provided.