flass / pantagruel

a pipeline for reconciliation of phylogenetic histories within a bacterial pangenome
GNU General Public License v3.0
46 stars 7 forks source link

Updating the software when working on a server without administrator rights #26

Closed megaptera-helvetiae closed 4 years ago

megaptera-helvetiae commented 4 years ago

Hi Florent, I asked our admins to install Pantagruel, hence, I do not have administrator rights myself.

While Pantagruel is under development, how often should I ask them to update it? (They get pretty annoyed every time I ask.) Are you announcing bigger changes/releases somewhere?

How does "panup" work? Is this a workaround so that I could update it as a user? Do the admins have to install this module for me and then I can run the following command to update:

panup pantagruel -i previous_config_file --refresh init

Thanks for answering these general questions.

Laetitia

flass commented 4 years ago

Hi Laetitia,

In rare occasions of deep changes to the pipeline, I would add a dependency to the list to be installed, and that would show by a recent update of the script install_dependencies.sh. So maybe keep an eye for changes on this script on the main page of the github repository to be sure you're in sync. I will make sure to communicate on the thread when it is the case. But in most cases, updating the scripts in the git repo is all you need. That's what the alias command panup does, when loaded in your environment. It's more a shortcut than a workaround - as there is nothing to work around. In the case where you put your copy of the pantagruel repository in the hypothetical folder ~/software/, panup would be defined by the command alias panup='cd ~/software/pantagruel/ && git pull && git submodule update && cd -' and calling it would correspond to doing this suite of commands:

cd ~/software/pantagruel/
git pull
git submodule update
cd - #means it returns to the folder your were in at the beginning of the call

There is one case where it could not be so easy, which is if you don't have network access on your server. In that case, I recommend to do the regular update on your local machine (e.g. your laptop) and to copy the repository folder from there onto your server, using commands scp -p or better rsync -az, or any other file transfer protocol if you don't have a Unix command line environment on your local machine.

i hope this helps.

Regards,

Florent