FernandaDiaz12 / pediatric_astrocytoma

Repository for the analysis of pediatric astrocytoma.
0 stars 3 forks source link

Code to install packages should be left commented #8

Open AliciaMstt opened 4 years ago

AliciaMstt commented 4 years ago

Your R scripts (in 7.edgeR) contain packages installations (eg install.packages("statmod")). Once the packages are installed, tt is good practice to leave lines like these commented (#) so that R doesn't attempt to install them every time you run the script.

FernandaDiaz12 commented 4 years ago

Hi, Alicia.

To solve this problem I create a different script 7.0 edgeR_libraries(just once).R with the installation commands for the needed libraries.

With the instruction of run it before the differential expression analysis, and only once.

So that people can run the analysis script without repeating the installation.

AliciaMstt commented 4 years ago

This works, thanks. However I would recommend avoiding the () in the script name. Instead you can state in both the readme and script comments that this should be run only once.