Skip to content

Commit

Permalink
Update extending_database.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pontikos committed Jun 7, 2017
1 parent c2bb357 commit 3d47682
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/extending_database.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ file of genotypes produces a tab delimited file showing the kinship relation bet
The Cypher query language can then be used to directly load this file as relationships between persons. The “Relatedness” relationships are annotated with the following attributes N_SNP, HetHet, IBS0 and Kinship.
Here is the Cypher command to do the import:

``cypher
```cypher
USING PERIODIC COMMIT 500
LOAD CSV WITH HEADERS FROM "file://<absolute_path_to_file/relatedness.txt>" AS csvLine FIELDTERMINATOR '\t'
MATCH (person1:Person { personId: csvLine.ID1}),(person2:Person { personId: csvLine.ID2})
Expand All @@ -29,14 +29,14 @@ For example tissue expression data can be downloaded from Gene tissue expression
The data can be integrated using the following commands.
Load the Tissue Nodes:

``cypher
```cypher
USING PERIODIC COMMIT 500
LOAD CSV WITH HEADERS FROM "file://<absolute_path_to_file/Transcript2Tissue.csv>" AS csvLine
MERGE (tissue:Tissue { name: csvLine.Tissue })
```

Load the TranscriptToTissue relationships:
``cypher
```cypher
USING PERIODIC COMMIT 500
LOAD CSV WITH HEADERS FROM "file://<absolute_path_to_file/Transcript2Tissue.csv>" AS csvLine
MATCH (transcript:Transcript { transcript_id: csvLine.Transcript}),(tissue:Tissue { name: csvLine.Tissue})
Expand Down

0 comments on commit 3d47682

Please sign in to comment.