You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current code is problematic since it uses "which('reactions.tsv')" - if we use for example the mouse model, it will grab the file for Human-GEM and so forth. I'm making an issue so we don't forget to change this.
Expected feature/value/output:
Just add these as params.
Current feature/value/output:
Reproducing these results:
I hereby confirm that I have:
Tested my code on my own computer for running the model
Done this analysis in the main branch of the repository
Checked that a similar issue does not exist already
The text was updated successfully, but these errors were encountered:
Another option instead of making them into params is to code their paths relative to the location of the prepHumanModelForftINIT function. Since the location of the files relative to the function is not likely to change often or at all, I think it would be sufficiently stable.
For example, the translateGrRules function uses the following code to read the genes.tsv file whose relative path from the function is ../../model/genes.tsv:
This would be an improvement to the default option, agreed, good suggestion! I think however that it would still be problematic for the mouse model. So, when using the mouse model, we would still use the function in Human-GEM, but with different files and a different model. The automatic code will then take the reactions.tsv from Human-GEM. In practice, reactions.tsv is most likely the same, but it still doesn't feel right to use the one in Human-GEM. I propose then to use the code you proposed above as default option, but still make possible to send the path in as a parameter for the two files. In practice, this will not matter much, but maybe they will diverge at some point.
mihai-sysbio
changed the title
prepHumanModelForftINIT should take the pathways to reactions.tsv and essential tasks as optional params
prepHumanModelForftINIT should take the paths to reactions.tsv and essential tasks as optional params
Jul 28, 2022
Description of the issue:
The current code is problematic since it uses "which('reactions.tsv')" - if we use for example the mouse model, it will grab the file for Human-GEM and so forth. I'm making an issue so we don't forget to change this.
Expected feature/value/output:
Just add these as params.
Current feature/value/output:
Reproducing these results:
I hereby confirm that I have:
main
branch of the repositoryThe text was updated successfully, but these errors were encountered: