brymoore

@brymoore

Joined on Jan 13, 2021

  • Connecting to Rstudio Server on Farm Link to Titus's Github Instructions Starting a Tmux session I highly recommend starting a tmux session to run R (can also use screen ): tmux new -s rstudio To detach from your tmux session use Ctrl+B then D To relogin or reattach to the session
     Like  Bookmark
  • Automating you task is useful for saving time as one command will run after the other without having to wait at the computer and retype the command on the command line. It is also useful for reducing errors that can come from repeatedly typing out commands and it helps with the documentation of your process. It offers a prepackage instructions of how each sample was analyzed and can even include the version of the software used. These automation files can be shared to more easily allow others to replicate your data. Bash Scripts A Bash script or Shell script is a plain text file which contains a series of commands. These commands are a mixture of commands we would normally type ouselves on the command line (such as gzip or echo for example) and commands we could type on the command line but generally wouldn't.An important point to remember though is: Anything you can run normally on the command line can be put into a script and it will do exactly the same thing. Similarly, anything you can put into a script can also be run normally on the command line and it will do exactly the same thing. (RyanTutorials.net) Creating a Bash Script A Bash script is most useful for executing repetitive task without having to contiuously type the commands in the command line. To create a bash script you can create a file with a text editor using the the .sh file extension. For ex. bash_script.sh
     Like  Bookmark