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

CHECK report for RpsiXML on tokay1

This page was generated on 2021-05-06 12:33:21 -0400 (Thu, 06 May 2021).

To the developers/maintainers of the RpsiXML package:
Please make sure to use the following settings in order to reproduce any error or warning you see on this page.
Package 1573/1974HostnameOS / ArchINSTALLBUILDCHECKBUILD BIN
RpsiXML 2.32.0  (landing page)
Jitao David Zhang
Snapshot Date: 2021-05-05 14:51:38 -0400 (Wed, 05 May 2021)
URL: https://git.bioconductor.org/packages/RpsiXML
Branch: RELEASE_3_12
Last Commit: b9fbebe
Last Changed Date: 2020-10-27 10:34:07 -0400 (Tue, 27 Oct 2020)
malbec1Linux (Ubuntu 18.04.5 LTS) / x86_64  OK    OK    OK  UNNEEDED, same version exists in internal repository
tokay1Windows Server 2012 R2 Standard / x64  OK    OK    OK    OK  UNNEEDED, same version exists in internal repository
merida1macOS 10.14.6 Mojave / x86_64  OK    OK    OK    OK  UNNEEDED, same version exists in internal repository

Summary

Package: RpsiXML
Version: 2.32.0
Command: C:\Users\biocbuild\bbs-3.12-bioc\R\bin\R.exe CMD check --force-multiarch --install=check:RpsiXML.install-out.txt --library=C:\Users\biocbuild\bbs-3.12-bioc\R\library --no-vignettes --timings RpsiXML_2.32.0.tar.gz
StartedAt: 2021-05-06 06:25:51 -0400 (Thu, 06 May 2021)
EndedAt: 2021-05-06 06:29:08 -0400 (Thu, 06 May 2021)
EllapsedTime: 196.5 seconds
RetCode: 0
Status:   OK   
CheckDir: RpsiXML.Rcheck
Warnings: 0

Command output

##############################################################################
##############################################################################
###
### Running command:
###
###   C:\Users\biocbuild\bbs-3.12-bioc\R\bin\R.exe CMD check --force-multiarch --install=check:RpsiXML.install-out.txt --library=C:\Users\biocbuild\bbs-3.12-bioc\R\library --no-vignettes --timings RpsiXML_2.32.0.tar.gz
###
##############################################################################
##############################################################################


* using log directory 'C:/Users/biocbuild/bbs-3.12-bioc/meat/RpsiXML.Rcheck'
* using R version 4.0.5 (2021-03-31)
* 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.32.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.6Mb
  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 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.12-bioc/meat/RpsiXML.Rcheck/00check.log'
for details.



Installation output

RpsiXML.Rcheck/00install.out

##############################################################################
##############################################################################
###
### Running command:
###
###   C:\cygwin\bin\curl.exe -O http://172.29.0.3/BBS/3.12/bioc/src/contrib/RpsiXML_2.32.0.tar.gz && rm -rf RpsiXML.buildbin-libdir && mkdir RpsiXML.buildbin-libdir && C:\Users\biocbuild\bbs-3.12-bioc\R\bin\R.exe CMD INSTALL --merge-multiarch --build --library=RpsiXML.buildbin-libdir RpsiXML_2.32.0.tar.gz && C:\Users\biocbuild\bbs-3.12-bioc\R\bin\R.exe CMD INSTALL RpsiXML_2.32.0.zip && rm RpsiXML_2.32.0.tar.gz RpsiXML_2.32.0.zip
###
##############################################################################
##############################################################################


  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 2053k  100 2053k    0     0  48.6M      0 --:--:-- --:--:-- --:--:-- 50.1M

install for i386

* installing *source* package 'RpsiXML' ...
** using staged installation
** R
** inst
** byte-compile and prepare 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 from temporary location
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'
** testing if installed package can be loaded from final location
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'
** testing if installed package keeps a record of temporary installation path

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.32.0.zip
* DONE (RpsiXML)
* installing to library 'C:/Users/biocbuild/bbs-3.12-bioc/R/library'
package 'RpsiXML' successfully unpacked and MD5 sums checked

Tests output

RpsiXML.Rcheck/tests_i386/psimi25Source_test.Rout


R version 4.0.5 (2021-03-31) -- "Shake and Throw"
Copyright (C) 2021 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, basename, cbind, colnames, dirname, do.call,
    duplicated, eval, evalq, get, grep, grepl, intersect, is.unsorted,
    lapply, mapply, match, mget, order, paste, pmax, pmax.int, pmin,
    pmin.int, rank, rbind, rownames, sapply, setdiff, sort, table,
    tapply, union, unique, unsplit, 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


Attaching package: 'IRanges'

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

    windows

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 
  16.89    0.42   18.37 

RpsiXML.Rcheck/tests_x64/psimi25Source_test.Rout


R version 4.0.5 (2021-03-31) -- "Shake and Throw"
Copyright (C) 2021 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, basename, cbind, colnames, dirname, do.call,
    duplicated, eval, evalq, get, grep, grepl, intersect, is.unsorted,
    lapply, mapply, match, mget, order, paste, pmax, pmax.int, pmin,
    pmin.int, rank, rbind, rownames, sapply, setdiff, sort, table,
    tapply, union, unique, unsplit, 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


Attaching package: 'IRanges'

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

    windows

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 
  16.14    0.37   16.50 

Example timings

RpsiXML.Rcheck/examples_i386/RpsiXML-Ex.timings

nameusersystemelapsed
availableXrefs0.060.020.08
bait0.030.020.05
buildPCHypergraph1.720.071.86
complexName1.310.001.31
complexes1.310.001.31
eListHandler000
getAbstractByPMID0.530.051.08
graphSpeciesConverter1.640.061.73
interactionType0.030.010.05
interactions0.030.000.03
interactorInfo0.050.000.05
interactors1.390.051.44
null2na000
parsePsimi25Interaction2.310.062.37
psimi25Complex-class000
psimi25ComplexEntry-class000
psimi25Experiment-class000
psimi25Graph-class000
psimi25Hypergraph-class1.890.001.89
psimi25Hypergraph2GraphNEL000
psimi25Interaction-class000
psimi25InteractionEntry-class000
psimi25Interactor-class000
psimi25Source-class000
psimi25XML2Graph2.080.072.14
separateXMLDataByExpt0.470.000.47
translateID4.040.044.09
uniprot000
validatePSIMI25000

RpsiXML.Rcheck/examples_x64/RpsiXML-Ex.timings

nameusersystemelapsed
availableXrefs0.030.020.05
bait0.010.010.03
buildPCHypergraph1.210.001.21
complexName1.170.021.18
complexes1.280.031.32
eListHandler000
getAbstractByPMID0.340.030.82
graphSpeciesConverter1.740.041.78
interactionType0.040.000.05
interactions0.040.020.05
interactorInfo0.030.000.03
interactors1.340.031.37
null2na000
parsePsimi25Interaction1.720.021.75
psimi25Complex-class000
psimi25ComplexEntry-class000
psimi25Experiment-class000
psimi25Graph-class000
psimi25Hypergraph-class1.230.011.27
psimi25Hypergraph2GraphNEL000
psimi25Interaction-class0.020.000.02
psimi25InteractionEntry-class000
psimi25Interactor-class000
psimi25Source-class000
psimi25XML2Graph1.620.021.71
separateXMLDataByExpt0.300.010.32
translateID4.060.044.09
uniprot000
validatePSIMI25000