diff --git a/module4/ressources/resources.html b/module4/ressources/resources.html index e750da38b29ca090272816d4f7365c2055b49b71..b82d01c223b988df517e0ae9f9efa2978fddbb58 100644 --- a/module4/ressources/resources.html +++ b/module4/ressources/resources.html @@ -3,33 +3,34 @@

Table of Contents

-
-

Additional references

-
+
+

Additional references

+
-
-

"Thoughts" on language/software stability

-
+
+

"Thoughts" on language/software stability

+

As we explained, the programming language used in an analysis has a clear influence on the reproducibility of your analysis. It is not a @@ -95,9 +96,9 @@ version and environment control will always help.

-
-

Controlling your software environment

-
+
+

Controlling your software environment

+

As we mentioned in the video sequences, there are several solutions to control your environment: @@ -133,9 +134,9 @@ Hinsen on Active Papers (http://www.a

-
-

Preservation/Archiving

-
+
+

Preservation/Archiving

+

Ensuring software is properly archived, i.e, is safely stored so that it can be accessed in a perennial way, can be quite tricky. If you @@ -149,9 +150,9 @@ whenever the data is not sensitive.

-
-

Workflows

-
+
+

Workflows

+

In the video sequences, we mentioned workflow managers (original application domain in parenthesis):

@@ -172,9 +173,9 @@ Bio-informatics: Current Status, Solutions and Research Opportunities
-
-

Numerical and statistical issues

-
+ -
-

Publication practices

-
+
+

Publication practices

+

You may want to have a look at the following two webinars:

@@ -210,9 +211,9 @@ p-hacking, etc.
-
-

Experimentation

-
-
-

Tracking environment information

-
+
+

Tracking environment information

+
-
-

Getting information about your Git repository

-
+
+

Getting information about your Git repository

+

When taking notes, it may be difficult to remember which version of the code or of a file was used. This is what version control is useful @@ -327,13 +328,32 @@ is the price to pay for running git from within the notebook itself.

-
-

Getting information about Python(3) libraries

-
+
+

Getting information about Python(3) libraries

+
-
-

Getting the list of installed packages and their version

-
+
+

Getting information about your system

+
+

+This topic is discussed on StackOverflow. +

+
+
import platform
+print(platform.uname())
+
+
+ +
+uname_result(system='Linux', node='icarus', release='4.15.0-2-amd64', version='#1 SMP Debian 4.15.11-1 (2018-03-20)', machine='x86_64', processor='')
+
+
+
+
+ +
+

Getting the list of installed packages and their version

+

This topic is discussed on StackOverflow. When using pip (the Python package installer) within a shell command, it is easy to query the @@ -441,9 +461,9 @@ Requires: patsy, pandas

-
-

How to list imported modules?

-
+
+

How to list imported modules?

+

Without resorting to pip (that will list all available packages), you may want to know which modules are loaded in a Python session as well @@ -458,7 +478,7 @@ which is unfortunately not completely standard). for name, val in sorted(sys.modules.items()): if(hasattr(val, '__version__')): print(val.__name__, val.__version__) - else + else: print(val.__name__, "(unknown version)") print("**** Package list in the beginning ****"); @@ -466,7 +486,6 @@ print_imported_modules() print("**** Package list after loading pandas ****"); import pandas print_imported_modules() -

@@ -506,9 +525,9 @@ zlib 1.0
-
-

Saving and restoring an environment with pip

-
+
+

Saving and restoring an environment with pip

+

The easiest way to go is as follows:

@@ -525,9 +544,9 @@ dynamic libraries that are wrapped by Python though.

-
-

Installing a new package or a specific version

-
+
+

Installing a new package or a specific version

+

The Jupyter environment we deployed on our servers for the MOOC is based on the version 4.5.4 of Miniconda and Python 3.6. In this @@ -594,13 +613,13 @@ It is even possible to install a specific (possibly much older) version, e.g.,:

-
-

Getting information about R libraries

-
+
+

Getting information about R libraries

+
-
-

Getting the list imported modules and their version

-
+
+

Getting the list imported modules and their version

+

The best way seems to be to rely on the devtools package (if this package is not installed, you should install it first by running in R @@ -668,9 +687,9 @@ clean R dependency management should thus have a look at -

Getting the list of installed packages and their version

-
+
+

Getting the list of installed packages and their version

+

Finally, it is good to know that there is a built-in R command (installed.packages) allowing to retrieve and list the details of all @@ -925,9 +944,9 @@ packages installed.

-
-

Installing a new package or a specific version

-
+
+

Installing a new package or a specific version

+

This section is mostly a cut and paste from the recent post by Ian Pylvainen on this topic. It comprises a very clear explanation of how @@ -936,8 +955,8 @@ to proceed.

    -
  • Installing a pre-compiled version
    -
    +
  • Installing a pre-compiled version
    +

    If you're on a Debian or a Ubuntu system, it may be difficult to access a specific version without breaking your system. So unless you @@ -961,8 +980,8 @@ install.packages(packageurl, repos=Using devtools
    -

    +
  • Using devtools
    +

    The simplest method to install the version you need is to use the install_version() function of the devtools package (obviously, you @@ -977,8 +996,8 @@ install_version("ggplot2", version =

  • -
  • Installing from source code
    -
    +
  • Installing from source code
    +

    Alternatively, you may want to install an older package from source If devtools fails or if you do not want to depend on it, you can install @@ -1007,8 +1026,8 @@ R CMD INSTALL ggplot2_0.9.1.tar.gz

-
  • Potential issues
    -
    +
  • Potential issues
    +

    There are a few potential issues that may arise with installing older versions of packages: