Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in xml2::xml_find_all(sbgn.xml, ".//map")[[1]] : subscript out of bounds #2

Open
tangwei1129 opened this issue Sep 16, 2021 · 1 comment

Comments

@tangwei1129
Copy link

I tried to plot the reactome pathway R-HSA-212165, and I downloaded sbml file from https://reactome.org/content/detail/R-HSA-212165, and run the code as below, and gave me the error. how can I fix it? Thank you.

SBGNview.obj <- SBGNview(
gene.data = log2(datafoldchange),
gene.id.type = "SYMBOL",
sbgn.gene.id.type ="uniprot",
input.sbgn = "R-HSA-212165.sbml",
sbgn.dir = ".",
output.file = "quick.start",
output.formats = c("png")
)

Processing pathway: R-HSA-212165.sbml

R-HSA-212165.sbml looks like a local file. Using it directly.

Using user defined pathway SBGN-ML file!!

Generating mapping using Pathview

ID mapping not pre-generated
Mapping: SYMBOL, uniprot

'select()' returned 1:many mapping between keys and columns
[1] "Note: 190 of 5889 unique input IDs unmapped."
Changing data IDs
Finished changing data IDs
reading SBGN-ML file for arcs info: ./R-HSA-212165.sbml
Rendering SBGN graph
checking graph size and create margin for color panel
parsing ports
parsing glyphs
Error in xml2::xml_find_all(sbgn.xml, ".//map")[[1]] :
subscript out of bounds
In addition: Warning messages:
1: In max(x + w) : no non-missing arguments to max; returning -Inf
2: In max(y + h) : no non-missing arguments to max; returning -Inf
3: In min(y) : no non-missing arguments to min; returning Inf
4: In min(x) : no non-missing arguments to min; returning Inf

@raw937

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants