Back to Multiple platform build/check report for BioC 3.6
ABCDEFGHIJKLMNOPQ[R]STUVWXYZ

CHECK report for RpsiXML on tokay1

This page was generated on 2018-04-12 13:19:20 -0400 (Thu, 12 Apr 2018).

Package 1209/1472HostnameOS / ArchINSTALLBUILDCHECKBUILD BIN
RpsiXML 2.20.0
Jitao David Zhang
Snapshot Date: 2018-04-11 16:45:18 -0400 (Wed, 11 Apr 2018)
URL: https://git.bioconductor.org/packages/RpsiXML
Branch: RELEASE_3_6
Last Commit: b7aacfb
Last Changed Date: 2017-10-30 12:39:24 -0400 (Mon, 30 Oct 2017)
malbec1 Linux (Ubuntu 16.04.1 LTS) / x86_64  OK  OK  OK UNNEEDED, same version exists in internal repository
tokay1 Windows Server 2012 R2 Standard / x64  OK  OK [ OK ] OK UNNEEDED, same version exists in internal repository
veracruz1 OS X 10.11.6 El Capitan / x86_64  OK  OK  OK  OK UNNEEDED, same version exists in internal repository

Summary

Package: RpsiXML
Version: 2.20.0
Command: rm -rf RpsiXML.buildbin-libdir RpsiXML.Rcheck && mkdir RpsiXML.buildbin-libdir RpsiXML.Rcheck && C:\Users\biocbuild\bbs-3.6-bioc\R\bin\R.exe CMD INSTALL --build --merge-multiarch --library=RpsiXML.buildbin-libdir RpsiXML_2.20.0.tar.gz >RpsiXML.Rcheck\00install.out 2>&1 && cp RpsiXML.Rcheck\00install.out RpsiXML-install.out && C:\Users\biocbuild\bbs-3.6-bioc\R\bin\R.exe CMD check --library=RpsiXML.buildbin-libdir --install="check:RpsiXML-install.out" --force-multiarch --no-vignettes --timings RpsiXML_2.20.0.tar.gz
StartedAt: 2018-04-12 02:51:19 -0400 (Thu, 12 Apr 2018)
EndedAt: 2018-04-12 02:54:30 -0400 (Thu, 12 Apr 2018)
EllapsedTime: 191.3 seconds
RetCode: 0
Status:  OK  
CheckDir: RpsiXML.Rcheck
Warnings: 0

Command output

##############################################################################
##############################################################################
###
### Running command:
###
###   rm -rf RpsiXML.buildbin-libdir RpsiXML.Rcheck && mkdir RpsiXML.buildbin-libdir RpsiXML.Rcheck && C:\Users\biocbuild\bbs-3.6-bioc\R\bin\R.exe CMD INSTALL --build --merge-multiarch --library=RpsiXML.buildbin-libdir RpsiXML_2.20.0.tar.gz >RpsiXML.Rcheck\00install.out 2>&1 && cp RpsiXML.Rcheck\00install.out RpsiXML-install.out  &&  C:\Users\biocbuild\bbs-3.6-bioc\R\bin\R.exe CMD check --library=RpsiXML.buildbin-libdir --install="check:RpsiXML-install.out" --force-multiarch --no-vignettes --timings RpsiXML_2.20.0.tar.gz
###
##############################################################################
##############################################################################


* using log directory 'C:/Users/biocbuild/bbs-3.6-bioc/meat/RpsiXML.Rcheck'
* using R version 3.4.4 (2018-03-15)
* using platform: x86_64-w64-mingw32 (64-bit)
* using session charset: ISO8859-1
* using option '--no-vignettes'
* checking for file 'RpsiXML/DESCRIPTION' ... OK
* this is package 'RpsiXML' version '2.20.0'
* checking package namespace information ... OK
* checking package dependencies ... NOTE
Depends: includes the non-default packages:
  'annotate' 'graph' 'Biobase' 'RBGL' 'XML' 'hypergraph'
  'AnnotationDbi'
Adding so many packages to the search path is excessive and importing
selectively is preferable.
* checking if this is a source package ... OK
* checking if there is a namespace ... OK
* checking for hidden files and directories ... OK
* checking for portable file names ... OK
* checking whether package 'RpsiXML' can be installed ... OK
* checking installed package size ... NOTE
  installed size is 33.9Mb
  sub-directories of 1Mb or more:
    extdata  32.7Mb
* checking package directory ... OK
* checking 'build' directory ... OK
* checking DESCRIPTION meta-information ... OK
* checking top-level files ... OK
* checking for left-over files ... OK
* checking index information ... OK
* checking package subdirectories ... OK
* checking R files for non-ASCII characters ... OK
* checking R files for syntax errors ... OK
* loading checks for arch 'i386'
** checking whether the package can be loaded ... OK
** checking whether the package can be loaded with stated dependencies ... OK
** checking whether the package can be unloaded cleanly ... OK
** checking whether the namespace can be loaded with stated dependencies ... NOTE
Warning: no function found corresponding to methods exports from 'RpsiXML' for: 'initialize'

A namespace must be able to be loaded with just the base namespace
loaded: otherwise if the namespace gets loaded by a saved object, the
session will be unable to start.

Probably some imports need to be declared in the NAMESPACE file.
** checking whether the namespace can be unloaded cleanly ... OK
* loading checks for arch 'x64'
** checking whether the package can be loaded ... OK
** checking whether the package can be loaded with stated dependencies ... OK
** checking whether the package can be unloaded cleanly ... OK
** checking whether the namespace can be loaded with stated dependencies ... NOTE
Warning: no function found corresponding to methods exports from 'RpsiXML' for: 'initialize'

A namespace must be able to be loaded with just the base namespace
loaded: otherwise if the namespace gets loaded by a saved object, the
session will be unable to start.

Probably some imports need to be declared in the NAMESPACE file.
** checking whether the namespace can be unloaded cleanly ... OK
* checking dependencies in R code ... OK
* checking S3 generic/method consistency ... OK
* checking replacement functions ... OK
* checking foreign function calls ... OK
* checking R code for possible problems ... NOTE
buildPCHypergraph: no visible global function definition for 'new'
complexEntry2graph: no visible global function definition for 'is'
complexEntry2graph: no visible global function definition for 'new'
genBPGraph: no visible global function definition for 'as'
getAbstractByPMID: no visible global function definition for 'pubmed'
getAbstractByPMID: no visible global function definition for
  'buildPubMedAbst'
graphConverter: no visible global function definition for 'is'
graphConverter: no visible global function definition for 'as'
hyperGraphConverter: no visible global function definition for 'is'
hyperGraphConverter: no visible global function definition for
  'inciMat'
interactionEntry2graph: no visible global function definition for 'is'
interactionEntry2graph: no visible global function definition for 'as'
list2Matrix: no visible global function definition for 'listLen'
list2Matrix: no visible global function definition for 'new'
list2Matrix: no visible global function definition for 'inciMat'
parsePsimi25Complex: no visible global function definition for 'new'
parseXmlAttribute: no visible global function definition for 'new'
parseXmlComplexNode: no visible global function definition for 'new'
parseXmlEntryNode: no visible global function definition for 'new'
parseXmlEntryNodeSet: no visible global function definition for 'new'
parseXmlExperimentNode: no visible global function definition for 'new'
parseXmlInteractionNode: no visible global function definition for
  'new'
parseXmlInteractorNode: no visible global function definition for 'new'
psimi25Hypergraph2GraphNEL: no visible global function definition for
  'toGraphNEL'
psimi25Hypergraph2GraphNEL: no visible global function definition for
  'as'
removeHypergraphNAnode: no visible global function definition for
  'hyperedges'
separateXMLDataByExpt : <anonymous>: no visible global function
  definition for 'listLen'
separateXMLDataByExpt : <anonymous>: no visible global function
  definition for 'as'
validatePSIMI25: no visible global function definition for
  'download.file'
edgeLabel,psimi25Hypergraph: no visible global function definition for
  'hyperedgeLabels'
head,missing: no visible binding for global variable '.Object'
hyperedgeNodes,Hypergraph: no visible global function definition for
  'hyperedges'
hyperedgeNodes,Hypergraph: no visible global function definition for
  'hyperedgeLabels'
initialize,psimi25Hypergraph: no visible global function definition for
  'callNextMethod'
interactorInfo,list: no visible binding for global variable 'is'
interactorInfo,list: no visible global function definition for 'slot'
numEdges,psimi25Hypergraph: no visible global function definition for
  'hyperedges'
revInciMat,matrix: no visible global function definition for 'new'
show,psimi25Graph: no visible global function definition for 'as'
tail,missing: no visible binding for global variable '.Object'
translateID,list: no visible binding for global variable 'is'
translateID,psimi25Graph: no visible global function definition for
  'combineNodes'
translateID,psimi25Graph: no visible global function definition for
  'nodes<-'
Undefined global functions or variables:
  .Object as buildPubMedAbst callNextMethod combineNodes download.file
  hyperedgeLabels hyperedges inciMat is listLen new nodes<- pubmed slot
  toGraphNEL
Consider adding
  importFrom("methods", "as", "callNextMethod", "is", "new", "slot")
  importFrom("utils", "download.file")
to your NAMESPACE file (and ensure that your DESCRIPTION Imports field
contains 'methods').
* checking Rd files ... OK
* checking Rd metadata ... OK
* checking Rd cross-references ... OK
* checking for missing documentation entries ... OK
* checking for code/documentation mismatches ... OK
* checking Rd \usage sections ... OK
* checking Rd contents ... OK
* checking for unstated dependencies in examples ... OK
* checking line endings in Makefiles ... OK
* checking for GNU extensions in Makefiles ... OK
* checking installed files from 'inst/doc' ... OK
* checking files in 'vignettes' ... OK
* checking examples ...
** running examples for arch 'i386' ... OK
** running examples for arch 'x64' ... OK
* checking for unstated dependencies in 'tests' ... OK
* checking tests ...
** running tests for arch 'i386' ...
  Running 'psimi25Source_test.R'
 OK
** running tests for arch 'x64' ...
  Running 'psimi25Source_test.R'
 OK
* checking for unstated dependencies in vignettes ... OK
* checking package vignettes in 'inst/doc' ... OK
* checking running R code from vignettes ... SKIPPED
* checking re-building of vignette outputs ... SKIPPED
* checking PDF version of manual ... OK
* DONE

Status: 5 NOTEs
See
  'C:/Users/biocbuild/bbs-3.6-bioc/meat/RpsiXML.Rcheck/00check.log'
for details.



Installation output

RpsiXML.Rcheck/00install.out


install for i386

* installing *source* package 'RpsiXML' ...
** R
** inst
** preparing package for lazy loading
No methods found in package 'Biobase' for request: 'listlen' when loading 'RpsiXML'
No methods found in package 'annotate' for requests: 'pubmed', 'buildPubMedAbst' when loading 'RpsiXML'
Note: in method for 'head' with signature 'x="ANY"': expanding the
signature to include omitted arguments in definition: x = "missing"
Note: in method for 'tail' with signature 'x="ANY"': expanding the
signature to include omitted arguments in definition: x = "missing"
** help
*** installing help indices
  converting help for package 'RpsiXML'
    finding HTML links ... done
    BIOGRID.PSIMI25                         html  
    availableXrefs-methods                  html  
    availableXrefs                          html  
    bait                                    html  
    buildPCHypergraph                       html  
    complexName                             html  
    complexes                               html  
    eListHandler                            html  
    getAbstractByPMID                       html  
    graphSpeciesConverter                   html  
    interactionType                         html  
    interactions                            html  
    interactorInfo-methods                  html  
    interactorInfo                          html  
    interactors                             html  
    list2Matrix                             html  
    null2na                                 html  
    numInteractions-methods                 html  
    parsePsimi25Interaction                 html  
    psimi25Attribute-class                  html  
    psimi25Complex-class                    html  
    psimi25ComplexEntry-class               html  
    psimi25Experiment-class                 html  
    psimi25Graph-class                      html  
    psimi25Hypergraph-class                 html  
    psimi25Hypergraph2GraphNEL              html  
    psimi25Interaction-class                html  
    psimi25InteractionEntry-class           html  
    psimi25Interactor-class                 html  
    psimi25Source-class                     html  
    psimi25XML2Graph                        html  
    separateXMLDataByExpt                   html  
    sourceId-methods                        html  
    taxId-methods                           html  
    translateID-methods                     html  
    translateID                             html  
    uniprot-methods                         html  
    uniprot                                 html  
    validatePSIMI25                         html  
** building package indices
** installing vignettes
** testing if installed package can be loaded
No methods found in package 'Biobase' for request: 'listlen' when loading 'RpsiXML'
No methods found in package 'annotate' for requests: 'pubmed', 'buildPubMedAbst' when loading 'RpsiXML'
In R CMD INSTALL

install for x64

* installing *source* package 'RpsiXML' ...
** testing if installed package can be loaded
No methods found in package 'Biobase' for request: 'listlen' when loading 'RpsiXML'
No methods found in package 'annotate' for requests: 'pubmed', 'buildPubMedAbst' when loading 'RpsiXML'
* MD5 sums
packaged installation of 'RpsiXML' as RpsiXML_2.20.0.zip
* DONE (RpsiXML)
In R CMD INSTALL
In R CMD INSTALL

Tests output

RpsiXML.Rcheck/tests_i386/psimi25Source_test.Rout


R version 3.4.4 (2018-03-15) -- "Someone to Lean On"
Copyright (C) 2018 The R Foundation for Statistical Computing
Platform: i386-w64-mingw32/i386 (32-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(RpsiXML)
Loading required package: annotate
Loading required package: AnnotationDbi
Loading required package: stats4
Loading required package: BiocGenerics
Loading required package: parallel

Attaching package: 'BiocGenerics'

The following objects are masked from 'package:parallel':

    clusterApply, clusterApplyLB, clusterCall, clusterEvalQ,
    clusterExport, clusterMap, parApply, parCapply, parLapply,
    parLapplyLB, parRapply, parSapply, parSapplyLB

The following objects are masked from 'package:stats':

    IQR, mad, sd, var, xtabs

The following objects are masked from 'package:base':

    Filter, Find, Map, Position, Reduce, anyDuplicated, append,
    as.data.frame, cbind, colMeans, colSums, colnames, do.call,
    duplicated, eval, evalq, get, grep, grepl, intersect, is.unsorted,
    lapply, lengths, mapply, match, mget, order, paste, pmax, pmax.int,
    pmin, pmin.int, rank, rbind, rowMeans, rowSums, rownames, sapply,
    setdiff, sort, table, tapply, union, unique, unsplit, which,
    which.max, which.min

Loading required package: Biobase
Welcome to Bioconductor

    Vignettes contain introductory material; view with
    'browseVignettes()'. To cite Bioconductor, see
    'citation("Biobase")', and for packages 'citation("pkgname")'.

Loading required package: IRanges
Loading required package: S4Vectors

Attaching package: 'S4Vectors'

The following object is masked from 'package:base':

    expand.grid

Loading required package: XML
Loading required package: graph

Attaching package: 'graph'

The following object is masked from 'package:XML':

    addNode

Loading required package: RBGL
Loading required package: hypergraph
No methods found in package 'Biobase' for request: 'listlen' when loading 'RpsiXML'
No methods found in package 'annotate' for requests: 'pubmed', 'buildPubMedAbst' when loading 'RpsiXML'

Attaching package: 'RpsiXML'

The following object is masked from 'package:IRanges':

    members

> xmlDir <- system.file("/extdata/psi25files",package="RpsiXML")
> 
> ## HPRD: schema check passed
> hprdxml <- file.path(xmlDir, "hprd_200709_test.xml")
> hprdSet <- parsePsimi25Interaction(hprdxml, HPRD.PSIMI25)
1 Entries found
Parsing entry 1 
  Parsing experiments: .........
  Parsing interactors:

  14% ======>
  29% ============>
  43% =================>
  57% =======================>
  71% ============================>
  86% ==================================>
  100% ========================================>
  Parsing interactions:
......
> hprdInteractors <- interactors(hprdSet)
> hprdInteractorInfo <- interactorInfo(hprdSet)
> pubmedID(hprdSet)
[1] "9443898"  "7738346"  "9606214"  "11790773" "15140227" "12707304"
> 
> ## BiOGRID: schema check failed, trivial
> gridxml <- file.path(xmlDir, "biogrid_200804_test.xml")
> gridSet <- parsePsimi25Interaction(gridxml, BIOGRID.PSIMI25)
1 Entries found
Parsing entry 1 
  Parsing experiments: ...
  Parsing interactors:

  14% ======>
  29% ============>
  43% =================>
  57% =======================>
  71% ============================>
  86% ==================================>
  100% ========================================>
  Parsing interactions:
.....
> 
> ## large files
> gridLargexml <- file.path(xmlDir, "biogrid_2008_test_large.xml")
> gridHumanxml <- file.path(xmlDir, "biogrid_2008_test_human.xml")
> 
> if(file.exists(gridLargexml)) {
+   Rprof("gridLarge.prof")
+   gridLargeSet <- parsePsimi25Interaction(gridLargexml, BIOGRID.PSIMI25, verbose=TRUE)
+   Rprof(NULL)
+ }
> if(file.exists(gridHumanxml)){
+   Rprof("gridHuman.prof")
+   gridHumanSet <- parsePsimi25Interaction(gridHumanxml, BIOGRID.PSIMI25)
+   Rprof(NULL)
+ }
> 
> ## MINT: schema check passed
> mintxml <- file.path(xmlDir, "mint_200711_test.xml")
> mintSet <- parsePsimi25Interaction(mintxml, MINT.PSIMI25)
1 Entries found
Parsing entry 1 
  Parsing experiments: ..
  Parsing interactors:

  6% ==>
  12% =====>
  19% ========>
  25% ==========>
  31% ============>
  38% ===============>
  44% ==================>
  50% ====================>
  56% ======================>
  62% =========================>
  69% ============================>
  75% ==============================>
  81% ================================>
  88% ===================================>
  94% ======================================>
  100% ========================================>
  Parsing interactions:
.................
> 
> ## IntAct: schema check passed
> intactxml <- file.path(xmlDir, "intact_2008_test.xml")
> intactSet <- parsePsimi25Interaction(intactxml, INTACT.PSIMI25)
1 Entries found
Parsing entry 1 
  Parsing experiments: ..
  Parsing interactors:

  3% =>
  6% ==>
  10% ====>
  13% =====>
  16% ======>
  19% ========>
  23% =========>
  26% ==========>
  29% ============>
  32% =============>
  35% ==============>
  39% ================>
  42% =================>
  45% ==================>
  48% ===================>
  52% =====================>
  55% ======================>
  58% =======================>
  61% ========================>
  65% ==========================>
  68% ===========================>
  71% ============================>
  74% ==============================>
  77% ===============================>
  81% ================================>
  84% ==================================>
  87% ===================================>
  90% ====================================>
  94% ======================================>
  97% =======================================>
  100% ========================================>
  Parsing interactions:
.............................................................................................
> intactGraph <- psimi25XML2Graph(intactxml, INTACT.PSIMI25)
1 Entries found
Parsing entry 1 
  Parsing experiments: ..
  Parsing interactors:

  3% =>
  6% ==>
  10% ====>
  13% =====>
  16% ======>
  19% ========>
  23% =========>
  26% ==========>
  29% ============>
  32% =============>
  35% ==============>
  39% ================>
  42% =================>
  45% ==================>
  48% ===================>
  52% =====================>
  55% ======================>
  58% =======================>
  61% ========================>
  65% ==========================>
  68% ===========================>
  71% ============================>
  74% ==============================>
  77% ===============================>
  81% ================================>
  84% ==================================>
  87% ===================================>
  90% ====================================>
  94% ======================================>
  97% =======================================>
  100% ========================================>
  Parsing interactions:
.............................................................................................
> intactGraphNew <- translateID(intactGraph,"sourceId")## translate the nodes of the graph to another identifier
> intactTestInteraction <- interactions(intactSet)[[1]]
> bait(intactTestInteraction)
[1] "A4JYL6"
> prey(intactTestInteraction)
[1] "A4JYH2"
> participant(intactTestInteraction)
  A4JYH2   A4JYL6 
"A4JYH2" "A4JYL6" 
> inhibitor(intactTestInteraction)
[1] NA
> neutralComponent(intactTestInteraction)
[1] NA
> pubmedID(intactTestInteraction)
[1] "18296487"
> intactTestInteractor <- interactors(intactSet)[[1]]
> availableXrefs(intactTestInteractor)
[1] "sourceId"  "uniprotkb" "intact"   
> 
> ## which cross references does the set provide?
> intactXrefs <- availableXrefs(intactSet)
> ## which references exist for every interactor?
> intactXrefIns <- availableXrefs(intactSet, intersect=TRUE)
> 
> intactSetInteractors <- interactors(intactSet)
> intactXrefExample <- xref(intactSetInteractors[[1]])
> translateID(intactSetInteractors,"intact")
       A4JYH2        A4JYL6        Q7ZU88        Q5J1R9        Q7SX76 
"EBI-1579530" "EBI-1579616" "EBI-1579427" "EBI-1579627" "EBI-1579511" 
       A4JYK9        A4JYF7        A4JYL8        A4JYI5        A4JYL3 
"EBI-1579400" "EBI-1579578" "EBI-1579370" "EBI-1579373" "EBI-1579353" 
       A4JYM3        A3KPA0        A0S0K7        A4JYP5        A4JYG4 
"EBI-1579304" "EBI-1579361" "EBI-1579594" "EBI-1579664" "EBI-1579266" 
       A4JYF6        Q90YM1        A4JYG2        A4JYG3        P09326 
"EBI-1579619" "EBI-1579680" "EBI-1579332" "EBI-1579335"  "EBI-714770" 
       Q9BZW8        P04218        A4JYD4        Q6NW92        A4JYD8 
"EBI-1580565"  "EBI-915817" "EBI-1579591" "EBI-1579483" "EBI-1579656" 
       A4JYG1        A2CF10        A4JYF3        Q5W433        Q90413 
"EBI-1579667" "EBI-1579611" "EBI-1579465" "EBI-1579381" "EBI-1579413" 
       A4JYS0 
"EBI-1579603" 
> translateID(intactSetInteractors[[1]],"intact")
[1] "EBI-1579530"
> 
> intactComplexxml <- file.path(xmlDir,"intact_complexSample.xml")
> intactComplexSet <- parsePsimi25Complex(intactComplexxml, INTACT.PSIMI25)
> intactComplexGraph <- psimi25XML2Graph(intactComplexxml, INTACT.PSIMI25, type="complex")
> translateID(intactComplexGraph, "intact", "P49432")
[1] "EBI-917663"
> translateID(intactComplexGraph, "intact", NA)
         <NA>          <NA>          <NA>          <NA>          <NA> 
"EBI-1163494"  "EBI-967760" "EBI-1225105" "EBI-1225103"  "EBI-847690" 
> 
> complexSample <- complexes(intactComplexSet)[[2]]
> complexName(complexSample)
[1] "BAD:BCL-2 heterodimer"
> attributesList(complexSample)
[[1]]
curated-complex: BH3 domain-containing BAD interacts with and inhibits anti-apoptotic BCL-2. May act to prevent BCl-2 from sequestering BID and other pro-apoptotic molecules.

[[2]]
complex-synonym: BAD:BCL-2; BAD:BCL2; BCL-2:BAD; BCL2:BAD;

[[3]]
kd: 0.0

> members(complexSample)
  sourceId uniprotId multiplicity
4        4    P10415            1
8        8    Q92934            1
> 
> ## DIP: schema check failed, namespace not unique, modified
> dipxml <- file.path(xmlDir, "dip_2008_test.xml")
> dipSet <- parsePsimi25Interaction(dipxml, DIP.PSIMI25)
1 Entries found
Parsing entry 1 
  Parsing experiments: 
  Parsing interactors:

  3% =>
  5% ==>
  8% ===>
  10% ====>
  13% =====>
  15% ======>
  18% =======>
  20% ========>
  23% =========>
  25% ==========>
  28% ===========>
  30% ============>
  33% =============>
  35% ==============>
  38% ===============>
  40% ================>
  43% =================>
  45% ==================>
  48% ===================>
  50% ====================>
  53% =====================>
  55% ======================>
  58% =======================>
  60% ========================>
  63% =========================>
  65% ==========================>
  68% ===========================>
  70% ============================>
  73% =============================>
  75% ==============================>
  78% ===============================>
  80% ================================>
  83% =================================>
  86% ==================================>
  88% ===================================>
  91% ====================================>
  93% =====================================>
  96% ======================================>
  98% =======================================>
  100% ========================================>
  Parsing interactions:
............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
> dipInteractions <- interactions(dipSet)
> dipInteractionTypes <- sapply(dipInteractions, interactionType)
> stopifnot(!any(is.na(dipInteractionTypes)))
> 
> ## MatrixDB
> matrixdbxml <- file.path(xmlDir, "matrixdb_20080609.xml")
> matrixdbSet <- parsePsimi25Interaction(matrixdbxml, MATRIXDB.PSIMI25)
141 Entries found
Parsing entry 1 
  Parsing experiments: 
  Parsing interactors:

  50% ====================>
  100% ========================================>
  Parsing interactions:
.
> 
> ## MIPS: schema check failed
> ##mipsxml <- file.path(xmlDir, "mips_2007_test.xml")
> ##mipsSet <- parsePsimi25Interaction(mipsxml, MIPS.PSIMI25) ## needs implementation
> 
> ## CORUM:
> corumxml <- file.path(xmlDir,"corumPsimi")
> if(file.exists(corumxml)) {
+ corumSet <- parsePsimi25Interaction(corumxml,CORUM.PSIMI25, verbose=FALSE)
+ }
> 
> ##############################
> ## Validating PSI-MI 2.5 Files
> ##############################
> #okFile <- system.file("extdata/psi25files/intact_2008_test.xml",
> #                      package="RpsiXML")
> #errorFile <- system.file("extdata/psi25files/mips_2007_test.xml",
> #                         package="RpsiXML")
> #mif25Schema <- system.file("extdata/schemas/MIF25.xsd",package="RpsiXML")
> #stopifnot(file.exists(okFile) &&
> #          file.exists(errorFile) &&
> #          file.exists(mif25Schema))
> #
> #validatePSIMI25(okFile)
> #validatePSIMI25(errorFile)
> #validatePSIMI25(errorFile, ignore.stderr=FALSE)
> 
> 
> proc.time()
   user  system elapsed 
  14.65    0.20   14.84 

RpsiXML.Rcheck/tests_x64/psimi25Source_test.Rout


R version 3.4.4 (2018-03-15) -- "Someone to Lean On"
Copyright (C) 2018 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(RpsiXML)
Loading required package: annotate
Loading required package: AnnotationDbi
Loading required package: stats4
Loading required package: BiocGenerics
Loading required package: parallel

Attaching package: 'BiocGenerics'

The following objects are masked from 'package:parallel':

    clusterApply, clusterApplyLB, clusterCall, clusterEvalQ,
    clusterExport, clusterMap, parApply, parCapply, parLapply,
    parLapplyLB, parRapply, parSapply, parSapplyLB

The following objects are masked from 'package:stats':

    IQR, mad, sd, var, xtabs

The following objects are masked from 'package:base':

    Filter, Find, Map, Position, Reduce, anyDuplicated, append,
    as.data.frame, cbind, colMeans, colSums, colnames, do.call,
    duplicated, eval, evalq, get, grep, grepl, intersect, is.unsorted,
    lapply, lengths, mapply, match, mget, order, paste, pmax, pmax.int,
    pmin, pmin.int, rank, rbind, rowMeans, rowSums, rownames, sapply,
    setdiff, sort, table, tapply, union, unique, unsplit, which,
    which.max, which.min

Loading required package: Biobase
Welcome to Bioconductor

    Vignettes contain introductory material; view with
    'browseVignettes()'. To cite Bioconductor, see
    'citation("Biobase")', and for packages 'citation("pkgname")'.

Loading required package: IRanges
Loading required package: S4Vectors

Attaching package: 'S4Vectors'

The following object is masked from 'package:base':

    expand.grid

Loading required package: XML
Loading required package: graph

Attaching package: 'graph'

The following object is masked from 'package:XML':

    addNode

Loading required package: RBGL
Loading required package: hypergraph
No methods found in package 'Biobase' for request: 'listlen' when loading 'RpsiXML'
No methods found in package 'annotate' for requests: 'pubmed', 'buildPubMedAbst' when loading 'RpsiXML'

Attaching package: 'RpsiXML'

The following object is masked from 'package:IRanges':

    members

> xmlDir <- system.file("/extdata/psi25files",package="RpsiXML")
> 
> ## HPRD: schema check passed
> hprdxml <- file.path(xmlDir, "hprd_200709_test.xml")
> hprdSet <- parsePsimi25Interaction(hprdxml, HPRD.PSIMI25)
1 Entries found
Parsing entry 1 
  Parsing experiments: .........
  Parsing interactors:

  14% ======>
  29% ============>
  43% =================>
  57% =======================>
  71% ============================>
  86% ==================================>
  100% ========================================>
  Parsing interactions:
......
> hprdInteractors <- interactors(hprdSet)
> hprdInteractorInfo <- interactorInfo(hprdSet)
> pubmedID(hprdSet)
[1] "9443898"  "7738346"  "9606214"  "11790773" "15140227" "12707304"
> 
> ## BiOGRID: schema check failed, trivial
> gridxml <- file.path(xmlDir, "biogrid_200804_test.xml")
> gridSet <- parsePsimi25Interaction(gridxml, BIOGRID.PSIMI25)
1 Entries found
Parsing entry 1 
  Parsing experiments: ...
  Parsing interactors:

  14% ======>
  29% ============>
  43% =================>
  57% =======================>
  71% ============================>
  86% ==================================>
  100% ========================================>
  Parsing interactions:
.....
> 
> ## large files
> gridLargexml <- file.path(xmlDir, "biogrid_2008_test_large.xml")
> gridHumanxml <- file.path(xmlDir, "biogrid_2008_test_human.xml")
> 
> if(file.exists(gridLargexml)) {
+   Rprof("gridLarge.prof")
+   gridLargeSet <- parsePsimi25Interaction(gridLargexml, BIOGRID.PSIMI25, verbose=TRUE)
+   Rprof(NULL)
+ }
> if(file.exists(gridHumanxml)){
+   Rprof("gridHuman.prof")
+   gridHumanSet <- parsePsimi25Interaction(gridHumanxml, BIOGRID.PSIMI25)
+   Rprof(NULL)
+ }
> 
> ## MINT: schema check passed
> mintxml <- file.path(xmlDir, "mint_200711_test.xml")
> mintSet <- parsePsimi25Interaction(mintxml, MINT.PSIMI25)
1 Entries found
Parsing entry 1 
  Parsing experiments: ..
  Parsing interactors:

  6% ==>
  12% =====>
  19% ========>
  25% ==========>
  31% ============>
  38% ===============>
  44% ==================>
  50% ====================>
  56% ======================>
  62% =========================>
  69% ============================>
  75% ==============================>
  81% ================================>
  88% ===================================>
  94% ======================================>
  100% ========================================>
  Parsing interactions:
.................
> 
> ## IntAct: schema check passed
> intactxml <- file.path(xmlDir, "intact_2008_test.xml")
> intactSet <- parsePsimi25Interaction(intactxml, INTACT.PSIMI25)
1 Entries found
Parsing entry 1 
  Parsing experiments: ..
  Parsing interactors:

  3% =>
  6% ==>
  10% ====>
  13% =====>
  16% ======>
  19% ========>
  23% =========>
  26% ==========>
  29% ============>
  32% =============>
  35% ==============>
  39% ================>
  42% =================>
  45% ==================>
  48% ===================>
  52% =====================>
  55% ======================>
  58% =======================>
  61% ========================>
  65% ==========================>
  68% ===========================>
  71% ============================>
  74% ==============================>
  77% ===============================>
  81% ================================>
  84% ==================================>
  87% ===================================>
  90% ====================================>
  94% ======================================>
  97% =======================================>
  100% ========================================>
  Parsing interactions:
.............................................................................................
> intactGraph <- psimi25XML2Graph(intactxml, INTACT.PSIMI25)
1 Entries found
Parsing entry 1 
  Parsing experiments: ..
  Parsing interactors:

  3% =>
  6% ==>
  10% ====>
  13% =====>
  16% ======>
  19% ========>
  23% =========>
  26% ==========>
  29% ============>
  32% =============>
  35% ==============>
  39% ================>
  42% =================>
  45% ==================>
  48% ===================>
  52% =====================>
  55% ======================>
  58% =======================>
  61% ========================>
  65% ==========================>
  68% ===========================>
  71% ============================>
  74% ==============================>
  77% ===============================>
  81% ================================>
  84% ==================================>
  87% ===================================>
  90% ====================================>
  94% ======================================>
  97% =======================================>
  100% ========================================>
  Parsing interactions:
.............................................................................................
> intactGraphNew <- translateID(intactGraph,"sourceId")## translate the nodes of the graph to another identifier
> intactTestInteraction <- interactions(intactSet)[[1]]
> bait(intactTestInteraction)
[1] "A4JYL6"
> prey(intactTestInteraction)
[1] "A4JYH2"
> participant(intactTestInteraction)
  A4JYH2   A4JYL6 
"A4JYH2" "A4JYL6" 
> inhibitor(intactTestInteraction)
[1] NA
> neutralComponent(intactTestInteraction)
[1] NA
> pubmedID(intactTestInteraction)
[1] "18296487"
> intactTestInteractor <- interactors(intactSet)[[1]]
> availableXrefs(intactTestInteractor)
[1] "sourceId"  "uniprotkb" "intact"   
> 
> ## which cross references does the set provide?
> intactXrefs <- availableXrefs(intactSet)
> ## which references exist for every interactor?
> intactXrefIns <- availableXrefs(intactSet, intersect=TRUE)
> 
> intactSetInteractors <- interactors(intactSet)
> intactXrefExample <- xref(intactSetInteractors[[1]])
> translateID(intactSetInteractors,"intact")
       A4JYH2        A4JYL6        Q7ZU88        Q5J1R9        Q7SX76 
"EBI-1579530" "EBI-1579616" "EBI-1579427" "EBI-1579627" "EBI-1579511" 
       A4JYK9        A4JYF7        A4JYL8        A4JYI5        A4JYL3 
"EBI-1579400" "EBI-1579578" "EBI-1579370" "EBI-1579373" "EBI-1579353" 
       A4JYM3        A3KPA0        A0S0K7        A4JYP5        A4JYG4 
"EBI-1579304" "EBI-1579361" "EBI-1579594" "EBI-1579664" "EBI-1579266" 
       A4JYF6        Q90YM1        A4JYG2        A4JYG3        P09326 
"EBI-1579619" "EBI-1579680" "EBI-1579332" "EBI-1579335"  "EBI-714770" 
       Q9BZW8        P04218        A4JYD4        Q6NW92        A4JYD8 
"EBI-1580565"  "EBI-915817" "EBI-1579591" "EBI-1579483" "EBI-1579656" 
       A4JYG1        A2CF10        A4JYF3        Q5W433        Q90413 
"EBI-1579667" "EBI-1579611" "EBI-1579465" "EBI-1579381" "EBI-1579413" 
       A4JYS0 
"EBI-1579603" 
> translateID(intactSetInteractors[[1]],"intact")
[1] "EBI-1579530"
> 
> intactComplexxml <- file.path(xmlDir,"intact_complexSample.xml")
> intactComplexSet <- parsePsimi25Complex(intactComplexxml, INTACT.PSIMI25)
> intactComplexGraph <- psimi25XML2Graph(intactComplexxml, INTACT.PSIMI25, type="complex")
> translateID(intactComplexGraph, "intact", "P49432")
[1] "EBI-917663"
> translateID(intactComplexGraph, "intact", NA)
         <NA>          <NA>          <NA>          <NA>          <NA> 
"EBI-1163494"  "EBI-967760" "EBI-1225105" "EBI-1225103"  "EBI-847690" 
> 
> complexSample <- complexes(intactComplexSet)[[2]]
> complexName(complexSample)
[1] "BAD:BCL-2 heterodimer"
> attributesList(complexSample)
[[1]]
curated-complex: BH3 domain-containing BAD interacts with and inhibits anti-apoptotic BCL-2. May act to prevent BCl-2 from sequestering BID and other pro-apoptotic molecules.

[[2]]
complex-synonym: BAD:BCL-2; BAD:BCL2; BCL-2:BAD; BCL2:BAD;

[[3]]
kd: 0.0

> members(complexSample)
  sourceId uniprotId multiplicity
4        4    P10415            1
8        8    Q92934            1
> 
> ## DIP: schema check failed, namespace not unique, modified
> dipxml <- file.path(xmlDir, "dip_2008_test.xml")
> dipSet <- parsePsimi25Interaction(dipxml, DIP.PSIMI25)
1 Entries found
Parsing entry 1 
  Parsing experiments: 
  Parsing interactors:

  3% =>
  5% ==>
  8% ===>
  10% ====>
  13% =====>
  15% ======>
  18% =======>
  20% ========>
  23% =========>
  25% ==========>
  28% ===========>
  30% ============>
  33% =============>
  35% ==============>
  38% ===============>
  40% ================>
  43% =================>
  45% ==================>
  48% ===================>
  50% ====================>
  53% =====================>
  55% ======================>
  58% =======================>
  60% ========================>
  63% =========================>
  65% ==========================>
  68% ===========================>
  70% ============================>
  73% =============================>
  75% ==============================>
  78% ===============================>
  80% ================================>
  83% =================================>
  86% ==================================>
  88% ===================================>
  91% ====================================>
  93% =====================================>
  96% ======================================>
  98% =======================================>
  100% ========================================>
  Parsing interactions:
............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
> dipInteractions <- interactions(dipSet)
> dipInteractionTypes <- sapply(dipInteractions, interactionType)
> stopifnot(!any(is.na(dipInteractionTypes)))
> 
> ## MatrixDB
> matrixdbxml <- file.path(xmlDir, "matrixdb_20080609.xml")
> matrixdbSet <- parsePsimi25Interaction(matrixdbxml, MATRIXDB.PSIMI25)
141 Entries found
Parsing entry 1 
  Parsing experiments: 
  Parsing interactors:

  50% ====================>
  100% ========================================>
  Parsing interactions:
.
> 
> ## MIPS: schema check failed
> ##mipsxml <- file.path(xmlDir, "mips_2007_test.xml")
> ##mipsSet <- parsePsimi25Interaction(mipsxml, MIPS.PSIMI25) ## needs implementation
> 
> ## CORUM:
> corumxml <- file.path(xmlDir,"corumPsimi")
> if(file.exists(corumxml)) {
+ corumSet <- parsePsimi25Interaction(corumxml,CORUM.PSIMI25, verbose=FALSE)
+ }
> 
> ##############################
> ## Validating PSI-MI 2.5 Files
> ##############################
> #okFile <- system.file("extdata/psi25files/intact_2008_test.xml",
> #                      package="RpsiXML")
> #errorFile <- system.file("extdata/psi25files/mips_2007_test.xml",
> #                         package="RpsiXML")
> #mif25Schema <- system.file("extdata/schemas/MIF25.xsd",package="RpsiXML")
> #stopifnot(file.exists(okFile) &&
> #          file.exists(errorFile) &&
> #          file.exists(mif25Schema))
> #
> #validatePSIMI25(okFile)
> #validatePSIMI25(errorFile)
> #validatePSIMI25(errorFile, ignore.stderr=FALSE)
> 
> 
> proc.time()
   user  system elapsed 
  19.60    0.14   20.00 

Example timings

RpsiXML.Rcheck/examples_i386/RpsiXML-Ex.timings

nameusersystemelapsed
availableXrefs0.470.000.47
bait0.250.000.25
buildPCHypergraph1.160.031.19
complexName1.120.001.12
complexes1.190.031.22
eListHandler000
getAbstractByPMID0.310.000.52
graphSpeciesConverter1.750.031.78
interactionType0.050.000.04
interactions0.050.000.05
interactorInfo0.030.000.03
interactors0.920.081.00
null2na000
parsePsimi25Interaction1.170.001.17
psimi25Complex-class000
psimi25ComplexEntry-class000
psimi25Experiment-class000
psimi25Graph-class000
psimi25Hypergraph-class0.970.000.97
psimi25Hypergraph2GraphNEL000
psimi25Interaction-class000
psimi25InteractionEntry-class000
psimi25Interactor-class000
psimi25Source-class000
psimi25XML2Graph1.590.001.59
separateXMLDataByExpt0.330.000.33
translateID2.500.012.52
uniprot000
validatePSIMI25000

RpsiXML.Rcheck/examples_x64/RpsiXML-Ex.timings

nameusersystemelapsed
availableXrefs0.430.000.42
bait0.170.000.17
buildPCHypergraph1.220.021.23
complexName1.410.011.43
complexes1.330.001.32
eListHandler0.000.020.02
getAbstractByPMID0.310.030.55
graphSpeciesConverter1.950.062.01
interactionType0.060.000.06
interactions0.070.000.07
interactorInfo0.030.000.03
interactors1.280.081.36
null2na000
parsePsimi25Interaction1.620.061.69
psimi25Complex-class000
psimi25ComplexEntry-class000
psimi25Experiment-class000
psimi25Graph-class0.020.000.02
psimi25Hypergraph-class1.390.021.40
psimi25Hypergraph2GraphNEL000
psimi25Interaction-class000
psimi25InteractionEntry-class000
psimi25Interactor-class000
psimi25Source-class000
psimi25XML2Graph2.470.012.49
separateXMLDataByExpt0.370.020.39
translateID3.080.033.11
uniprot000
validatePSIMI25000