Closed MalinAhlberg closed 3 years ago
Another option is to keep this script in the MetabolicAtlas repo instead of here, and to use it as a tool for users who run into problem during installation (ie not as an installation script). Over time, more checks could be added.
Great work! Maybe the function generate-data can be updated accordingly as well.
Good idea! Perhaps we should first decide how to proceed with this pr, though. Let's wait and see what @mihai-sysbio and @e0 thinks.
Looks good to me!
Another option is to keep this script in the MetabolicAtlas repo instead of here, and to use it as a tool for users who run into problem during installation (ie not as an installation script). Over time, more checks could be added.
@MalinAhlberg would it work to keep this script in this repo but call it from proj.sh
by updating this line?
If so, both documentations (readmes) might need an extra look that the description of the data generation is consistent.
@MalinAhlberg would it work to keep this script in this repo but call it from
proj.sh
by updating this line?
Hm, the script should be called before the installation of data-generation, which happens before that line is called. I'm not sure how much we would want to move around things :thinking:
This addresses task 5 in https://github.com/MetabolicAtlas/MetabolicAtlas/issues/684, the purpose being automatically letting the user know if the
yarn
andnode
versions are outdated. Background: multiple (at least more than one...) user has been confused by the non-informative error messages you get when you try to run the installation with older versions of yarn/node.To try it, run
./generate
or./generate ../path-to-datafiles
. This replacesPlease also see the Readme. If versions are outdated, the output will look like this:
However, I'm not sure that my proposed solution really helps here (hence the draft PR). Running
yarn
may seem more standard and appealing to many users, rather than running a bash script? And just adding an extra script to run before you runyarn
may also just complicate, rather than facilitate things?