Skip to content

Commit

Permalink
Merge pull request #43 from alliance-genome/SCRUM-249_JSON_test_files
Browse files Browse the repository at this point in the history
SCRUM-249 initial commit of JSON test files for gene loading
  • Loading branch information
chris-grove authored Sep 13, 2021
2 parents 1764eec + 1561281 commit 1ab02c4
Show file tree
Hide file tree
Showing 19 changed files with 25,135 additions and 0 deletions.
24,068 changes: 24,068 additions & 0 deletions src/test/resources/gene/00_mod_examples.json

Large diffs are not rendered by default.

59 changes: 59 additions & 0 deletions src/test/resources/gene/01_all_fields.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"data" : [
{
"basicGeneticEntity" : {
"crossReferences" : [
{
"id" : "TEST:xref1a"
},
{
"id" : "TEST:xref1b",
"pages" : [
"gene",
"gene/references",
"gene/expression",
"gene/expression_images",
"gene/phenotype"
]
},
],
"genomeLocations" : [
{
"assembly" : "TEST_assembly",
"chromosome" : "1",
"endPosition" : 100,
"startPosition" : 1,
"strand" : "+"
}
],
"primaryId" : "TEST:TestGene00001",
"secondaryIds" : [
"TEST:TG00001"
],
"synonyms" : [
"Test1",
"ExampleGene1"
],
"taxonId" : "NCBITaxon:10090"
},
"geneSynopsis" : "Test gene with all fields populated",
"geneSynopsisUrl" : "http://test.org/test_synopsis_1",
"name" : "Test gene 1",
"soTermId" : "SO:0001217",
"symbol" : "Tg1"
}
],
"metaData" : {
"dataProvider" : {
"crossReference" : {
"id" : "TEST",
"pages" : [
"homepage"
]
},
"type" : "curated"
},
"dateProduced" : "2021-09-13T12:39:18+01:00",
"release" : "TEST"
}
}
44 changes: 44 additions & 0 deletions src/test/resources/gene/02_no_cross_references.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"data" : [
{
"basicGeneticEntity" : {
"genomeLocations" : [
{
"assembly" : "TEST_assembly",
"chromosome" : "2",
"endPosition" : 100,
"startPosition" : 1,
"strand" : "+"
}
],
"primaryId" : "TEST:TestGene00002",
"secondaryIds" : [
"TEST:TG00002"
],
"synonyms" : [
"Test2",
"ExampleGene2"
],
"taxonId" : "NCBITaxon:10090"
},
"geneSynopsis" : "Test gene with all fields populated except crossReferences",
"geneSynopsisUrl" : "http://test.org/test_synopsis_2",
"name" : "Test gene 2",
"soTermId" : "SO:0001217",
"symbol" : "Tg2"
}
],
"metaData" : {
"dataProvider" : {
"crossReference" : {
"id" : "TEST",
"pages" : [
"homepage"
]
},
"type" : "curated"
},
"dateProduced" : "2021-09-13T12:39:18+01:00",
"release" : "TEST"
}
}
50 changes: 50 additions & 0 deletions src/test/resources/gene/03_no_genome_locations.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"data" : [
{
"basicGeneticEntity" : {
"crossReferences" : [
{
"id" : "TEST:xref3a"
},
{
"id" : "TEST:xref3b",
"pages" : [
"gene",
"gene/references",
"gene/expression",
"gene/expression_images",
"gene/phenotype"
]
},
],
"primaryId" : "TEST:TestGene00003",
"secondaryIds" : [
"TEST:TG00003"
],
"synonyms" : [
"Test3",
"ExampleGene3"
],
"taxonId" : "NCBITaxon:10090"
},
"geneSynopsis" : "Test gene with all fields populated except genomeLocations",
"geneSynopsisUrl" : "http://test.org/test_synopsis_3",
"name" : "Test gene 3",
"soTermId" : "SO:0001217",
"symbol" : "Tg3"
}
],
"metaData" : {
"dataProvider" : {
"crossReference" : {
"id" : "TEST",
"pages" : [
"homepage"
]
},
"type" : "curated"
},
"dateProduced" : "2021-09-13T12:39:18+01:00",
"release" : "TEST"
}
}
58 changes: 58 additions & 0 deletions src/test/resources/gene/04_no_primary_id.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"data" : [
{
"basicGeneticEntity" : {
"crossReferences" : [
{
"id" : "TEST:xref4a"
},
{
"id" : "TEST:xref4b",
"pages" : [
"gene",
"gene/references",
"gene/expression",
"gene/expression_images",
"gene/phenotype"
]
},
],
"genomeLocations" : [
{
"assembly" : "TEST_assembly",
"chromosome" : "4",
"endPosition" : 100,
"startPosition" : 1,
"strand" : "+"
}
],
"secondaryIds" : [
"TEST:TG00004"
],
"synonyms" : [
"Test4",
"ExampleGene4"
],
"taxonId" : "NCBITaxon:10090"
},
"geneSynopsis" : "Test gene with all fields populated except primaryId",
"geneSynopsisUrl" : "http://test.org/test_synopsis_4",
"name" : "Test gene 4",
"soTermId" : "SO:0001217",
"symbol" : "Tg4"
}
],
"metaData" : {
"dataProvider" : {
"crossReference" : {
"id" : "TEST",
"pages" : [
"homepage"
]
},
"type" : "curated"
},
"dateProduced" : "2021-09-13T12:39:18+01:00",
"release" : "TEST"
}
}
56 changes: 56 additions & 0 deletions src/test/resources/gene/05_no_secondary_ids.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"data" : [
{
"basicGeneticEntity" : {
"crossReferences" : [
{
"id" : "TEST:xref5a"
},
{
"id" : "TEST:xref5b",
"pages" : [
"gene",
"gene/references",
"gene/expression",
"gene/expression_images",
"gene/phenotype"
]
},
],
"genomeLocations" : [
{
"assembly" : "TEST_assembly",
"chromosome" : "5",
"endPosition" : 100,
"startPosition" : 1,
"strand" : "+"
}
],
"primaryId" : "TEST:TestGene00005",
"synonyms" : [
"Test5",
"ExampleGene5"
],
"taxonId" : "NCBITaxon:10090"
},
"geneSynopsis" : "Test gene with all fields populated except secondaryIds",
"geneSynopsisUrl" : "http://test.org/test_synopsis_5",
"name" : "Test gene 5",
"soTermId" : "SO:0001217",
"symbol" : "Tg5"
}
],
"metaData" : {
"dataProvider" : {
"crossReference" : {
"id" : "TEST",
"pages" : [
"homepage"
]
},
"type" : "curated"
},
"dateProduced" : "2021-09-13T12:39:18+01:00",
"release" : "TEST"
}
}
55 changes: 55 additions & 0 deletions src/test/resources/gene/06_no_synonyms.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"data" : [
{
"basicGeneticEntity" : {
"crossReferences" : [
{
"id" : "TEST:xref6a"
},
{
"id" : "TEST:xref6b",
"pages" : [
"gene",
"gene/references",
"gene/expression",
"gene/expression_images",
"gene/phenotype"
]
},
],
"genomeLocations" : [
{
"assembly" : "TEST_assembly",
"chromosome" : "6",
"endPosition" : 100,
"startPosition" : 1,
"strand" : "+"
}
],
"primaryId" : "TEST:TestGene00006",
"secondaryIds" : [
"TEST:TG00006"
],
"taxonId" : "NCBITaxon:10090"
},
"geneSynopsis" : "Test gene with all fields populated except synonyms",
"geneSynopsisUrl" : "http://test.org/test_synopsis_6",
"name" : "Test gene 6",
"soTermId" : "SO:0001217",
"symbol" : "Tg6"
}
],
"metaData" : {
"dataProvider" : {
"crossReference" : {
"id" : "TEST",
"pages" : [
"homepage"
]
},
"type" : "curated"
},
"dateProduced" : "2021-09-13T12:39:18+01:00",
"release" : "TEST"
}
}
58 changes: 58 additions & 0 deletions src/test/resources/gene/07_no_taxon_id.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"data" : [
{
"basicGeneticEntity" : {
"crossReferences" : [
{
"id" : "TEST:xref7a"
},
{
"id" : "TEST:xref7b",
"pages" : [
"gene",
"gene/references",
"gene/expression",
"gene/expression_images",
"gene/phenotype"
]
},
],
"genomeLocations" : [
{
"assembly" : "TEST_assembly",
"chromosome" : "7",
"endPosition" : 100,
"startPosition" : 1,
"strand" : "+"
}
],
"primaryId" : "TEST:TestGene00007",
"secondaryIds" : [
"TEST:TG00007"
],
"synonyms" : [
"Test7",
"ExampleGene7"
],
},
"geneSynopsis" : "Test gene with all fields populated except taxonId",
"geneSynopsisUrl" : "http://test.org/test_synopsis_7",
"name" : "Test gene 7",
"soTermId" : "SO:0001217",
"symbol" : "Tg7"
}
],
"metaData" : {
"dataProvider" : {
"crossReference" : {
"id" : "TEST",
"pages" : [
"homepage"
]
},
"type" : "curated"
},
"dateProduced" : "2021-09-13T12:39:18+01:00",
"release" : "TEST"
}
}
Loading

0 comments on commit 1ab02c4

Please sign in to comment.