library(cisPath)
input <- system.file("extdata", "Homo_sapiens_PINA100.txt", package="cisPath")
output <- file.path(tempdir(), "PINAPPI.txt")
formatPINAPPI(input, output)
outputDir <- file.path(getwd(), "cisPath_test")
dir.create(outputDir, showWarnings=FALSE, recursive=TRUE)
# Download PINA PPI (MITAB format) for humans only (~96M)
destfile <- file.path(outputDir, "Homo_sapiens.txt")
cat("Downloading...\n")
download.file("http://cbg.garvan.unsw.edu.au/pina/download/Homo%20sapiens-20121210.txt", destfile)
# Format PINA PPI
fileFromPINA <- file.path(outputDir, "Homo_sapiens.txt")
PINAPPI <- file.path(outputDir, "PINAPPI.txt")
formatPINAPPI(fileFromPINA, output=PINAPPI)Run the code above in your browser using DataLab