Altering the R script. The upper box shows the original R script used to carry out the correlation. The lower box shows the modified R script. Only two additional lines are needed and the function (cor) is changed to pcor.
Hill et al. BMC Bioinformatics 2008 9:558 doi:10.1186/1471-2105-9-558