-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
pontikos
committed
Jun 9, 2017
1 parent
562c39c
commit db831e8
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
export JAVA_HOME="/share/apps/java/" | ||
|
||
cd /home/rmhanpo/neo4j-community-3.1.1/ | ||
|
||
sort -u -o import/Transcript.csv import/Transcript.csv | ||
sort -u -o import/Gene.csv import/Gene.csv | ||
sort -u -o import/TranscriptVariant.csv import/TranscriptVariant.csv | ||
|
||
rm -f data/databases/graph.db/* | ||
|
||
./bin/neo4j-admin import --database graph.db \ | ||
--id-type string \ | ||
--nodes:Transcript import/Transcript-header.csv,import/Transcript.csv \ | ||
--nodes:TranscriptVariant import/TranscriptVariant-header.csv,import/TranscriptVariant.csv \ | ||
--nodes:Gene import/Gene-header.csv,import/Gene.csv \ | ||
--nodes:GeneticVariant import/GeneticVariant-header.csv,import/GeneticVariant.csv \ | ||
--nodes:Person import/Person.csv \ | ||
--relationships:GeneticVariantToGene import/GeneticVariantToGene.csv \ | ||
--relationships:GeneticVariantToTranscriptVariant import/GeneticVariantToTranscriptVariant.csv \ | ||
--relationships:TranscriptToGene import/TranscriptToGene.csv \ | ||
--relationships:HomVariantToPerson import/HomVariantToPerson.csv \ | ||
--relationships:HetVariantToPerson import/HetVariantToPerson.csv | ||
|