neo4j-rstats / neo4r

A Modern and Flexible Neo4J Driver
https://neo4j-rstats.github.io/user-guide/
Other
106 stars 30 forks source link

sources attribute in relationship: "chr(1)" rather than "hetio-dag" as seen in the browser #72

Open paul-shannon opened 4 years ago

paul-shannon commented 4 years ago

This query returns a relationship (as desired) but the sources attribute for that relationship is

   chr[1]

rather than what we get from the browser:

{
  "sources": [
    "hetio-dag"
  ],
  "unbiased": false
}

Hoping this can be fixed - thank you.

The query:

 call_neo4j("match (n)-[r]->(m) where n.name='CPT1A' and m.name='UBC' return n, r, m", db)
$n
# A tibble: 1 x 8
  license identifier chromosome name  description                       source      chembl_id     url                                 
  <chr>        <int> <chr>      <chr> <chr>                             <chr>       <chr>         <chr>                               
1 CC0 1.0       1374 11         CPT1A carnitine palmitoyltransferase 1A Entrez Gene CHEMBL1293194 http://identifiers.org/ncbigene/1374

$r
# A tibble: 1 x 2
  sources   unbiased
  <list>    <lgl>   
1 <chr [1]> FALSE   

$m
# A tibble: 1 x 7
  license identifier chromosome name  description source      url                                 
  <chr>        <int> <chr>      <chr> <chr>       <chr>       <chr>                               
1 CC0 1.0       7316 12         UBC   ubiquitin C Entrez Gene http://identifiers.org/ncbigene/7316

attr(,"class")
[1] "neo"  "list"