Description Usage Arguments Details Value References See Also Examples
This method is used to format the PPI file which is downloaded from the PINA2 database (SIF Format).
1 2 3 | formatSIFfile(input, mappingFile, output)
## S4 method for signature 'character,character,character'
formatSIFfile(input, mappingFile, output)
|
input |
File downloaded from the PINA2 database (SIF Format) (character(1)). |
mappingFile |
Identifier mapping file (character(1)). |
output |
Output file (character(1)). |
The input file (SIF Format) is downloaded from PINA2 database (http://cbg.garvan.unsw.edu.au/pina/).
Access http://cbg.garvan.unsw.edu.au/pina/interactome.stat.do to download PPI files with the SIF format
for different species.
If you make use of this file, please cite the PINA database.
Each line of the output file contains Swiss-Prot accession numbers and gene names for two interacting proteins.
The edge value will be assigned as 1
for each link between two interacting proteins.
This may be treated as the “cost” while identifying the shortest paths between proteins.
Advanced users can edit the file and change this value for each edge.
Cowley, M.J. and et al. (2012) PINA v2.0: mining interactome modules. Nucleic Acids Res, 40, D862-865.
Wu, J. and et al. (2009) Integrated network analysis platform for protein-protein interactions. Nature methods, 6, 75-77.
cisPath
, getMappingFile
, formatPINAPPI
, formatSTRINGPPI
, formatiRefIndex
, combinePPI
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | library(cisPath)
# Generate the identifier mapping file
input <- system.file("extdata", "uniprot_sprot_human10.dat", package="cisPath")
mappingFile <- file.path(tempdir(), "mappingFile.txt")
getMappingFile(input, output=mappingFile, taxonId="9606")
# Format the file downloaded from STRING database
output <- file.path(tempdir(), "PINA2PPI.txt")
fileFromPINA2 <- system.file("extdata", "Homo_sapiens_PINA2.sif", package="cisPath")
formatSIFfile(fileFromPINA2, mappingFile, output)
## Not run:
if (!requireNamespace("BiocManager", quietly=TRUE))
install.packages("BiocManager")
BiocManager::install("R.utils")
library(R.utils)
outputDir <- file.path(getwd(), "cisPath_test")
dir.create(outputDir, showWarnings=FALSE, recursive=TRUE)
# Generate the identifier mapping file
fileFromUniProt <- file.path(outputDir, "uniprot_sprot_human.dat")
mappingFile <- file.path(outputDir, "mappingFile.txt")
getMappingFile(fileFromUniProt, output=mappingFile)
# Download PINA2 PPI (SIF format) for humans only (~2.8M)
destfile <- file.path(outputDir, "Homo_sapiens.sif")
cat("Downloading...\n")
download.file("http://cbg.garvan.unsw.edu.au/pina/download/Homo%20sapiens-20140521.sif", destfile)
# Format PINA2 PPI
fileFromPINA2 <- file.path(outputDir, "Homo_sapiens.sif")
PINA2PPI <- file.path(outputDir, "PINA2PPI.txt")
formatSIFfile(fileFromPINA2, mappingFile, output=PINA2PPI)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.