Repository 'gafa'
hg clone https://toolshed.g2.bx.psu.edu/repos/earlhaminst/gafa

Changeset 4:117fc7414307 (2017-03-15)
Previous changeset 3:e17a3470c70a (2017-03-03) Next changeset 5:c388666f58e0 (2017-03-24)
Commit message:
planemo upload for repository https://github.com/TGAC/earlham-galaxytools/tree/master/tools/GAFA/ commit 651fae48371f845578753052c6fe173e3bb35670
modified:
GAFA.py
GAFA.xml
schema/gafa.mwb
schema/gafa.png
schema/gafa.svg
test-data/test.gafa.sqlite
added:
test-data/gene.sqlite
removed:
test-data/gene.json
b
diff -r e17a3470c70a -r 117fc7414307 GAFA.py
--- a/GAFA.py Fri Mar 03 07:20:23 2017 -0500
+++ b/GAFA.py Wed Mar 15 20:20:58 2017 -0400
[
@@ -1,12 +1,12 @@
 from __future__ import print_function
 
 import collections
-import json
 import optparse
 import re
+import shutil
 import sqlite3
 
-version = "0.2.0"
+version = "0.3.0"
 
 Sequence = collections.namedtuple('Sequence', ['header', 'sequence'])
 
@@ -50,29 +50,19 @@
 
 def create_tables(conn):
     cur = conn.cursor()
-    cur.execute('PRAGMA foreign_keys = ON')
-    cur.execute('''CREATE TABLE meta (
-        version VARCHAR)''')
-
-    cur.execute('INSERT INTO meta (version) VALUES (?)',
+    # Check that the version of the input database is compatible
+    cur.execute('SELECT version FROM meta')
+    result = cur.fetchone()
+    input_meta_version = result[0]
+    if input_meta_version != '0.3.0':
+        raise Exception("Incompatible input meta version '%s'" % input_meta_version)
+    cur.execute('UPDATE meta SET version=?',
                 (version, ))
 
     cur.execute('''CREATE TABLE gene_family (
         gene_family_id INTEGER PRIMARY KEY,
         gene_tree VARCHAR NOT NULL)''')
 
-    cur.execute('''CREATE TABLE gene (
-        gene_id VARCHAR PRIMARY KEY NOT NULL,
-        gene_symbol VARCHAR,
-        gene_json VARCHAR NOT NULL)''')
-    cur.execute('CREATE INDEX gene_symbol_index ON gene (gene_symbol)')
-
-    cur.execute('''CREATE TABLE transcript (
-        transcript_id VARCHAR PRIMARY KEY NOT NULL,
-        protein_id VARCHAR UNIQUE,
-        protein_sequence VARCHAR,
-        gene_id VARCHAR NOT NULL REFERENCES gene(gene_id))''')
-
     cur.execute('''CREATE TABLE gene_family_member (
         gene_family_id INTEGER NOT NULL REFERENCES gene_family(gene_family_id),
         protein_id VARCHAR KEY NOT NULL REFERENCES transcript(protein_id),
@@ -117,44 +107,23 @@
     conn.commit()
 
 
-def gene_json_to_db(conn, fname):
-    with open(fname) as f:
-        all_genes_dict = json.load(f)
-
-    cur = conn.cursor()
-    for gene_dict in all_genes_dict.values():
-        gene_id = gene_dict['id']
-        gene_symbol = gene_dict.get('display_name', None)
-        cur.execute("INSERT INTO gene (gene_id, gene_symbol, gene_json) VALUES (?, ?, ?)",
-                    (gene_id, gene_symbol, json.dumps(gene_dict)))
-
-        if "Transcript" in gene_dict:
-            for transcript in gene_dict["Transcript"]:
-                transcript_id = transcript['id']
-                if 'Translation' in transcript and 'id' in transcript['Translation']:
-                    protein_id = transcript["Translation"]["id"]
-                else:
-                    protein_id = None
-                cur.execute("INSERT INTO transcript (transcript_id, protein_id, gene_id) VALUES (?, ?, ?)",
-                            (transcript_id, protein_id, gene_id))
-    conn.commit()
-
-
 def __main__():
     parser = optparse.OptionParser()
     parser.add_option('-t', '--tree', action='append', help='Gene tree files')
     parser.add_option('-a', '--align', action='append', help='Protein alignments in fasta_aln format')
-    parser.add_option('-g', '--gene', help='Gene features file in JSON format')
+    parser.add_option('-g', '--gene', help='Gene features file in SQLite format')
     parser.add_option('-o', '--output', help='Path of the output file')
     options, args = parser.parse_args()
     if args:
         raise Exception('Use options to provide inputs')
 
+    if options.gene != options.output:
+        shutil.copyfile(options.gene, options.output)
+
     conn = sqlite3.connect(options.output)
+    conn.execute('PRAGMA foreign_keys = ON')
     create_tables(conn)
 
-    gene_json_to_db(conn, options.gene)
-
     for i, (tree, align) in enumerate(zip(options.tree, options.align), start=1):
         newicktree_to_db(conn, i, tree)
         align_to_db(conn, i, align)
b
diff -r e17a3470c70a -r 117fc7414307 GAFA.xml
--- a/GAFA.xml Fri Mar 03 07:20:23 2017 -0500
+++ b/GAFA.xml Wed Mar 15 20:20:58 2017 -0400
[
@@ -1,4 +1,4 @@
-<tool id="gafa" name="Gene Align and Family Aggregator" version="0.2.0">
+<tool id="gafa" name="Gene Align and Family Aggregator" version="0.3.0">
     <description>generates an SQLite database that can be visualised with Aequatus</description>
     <command>
 <![CDATA[
@@ -16,7 +16,7 @@
     <inputs>
         <param name="treeFile" type="data" format="nhx" multiple="true" label="Gene tree" help="Gene tree in Newick format, e.g. generated from 'TreeBeST best' or 'Get gene tree by Ensembl ID' tool" />
         <param name="alignmentFile" type="data" format="fasta" multiple="true" label="Protein alignments" help="Protein alignments in fasta_aln format generated by T-Coffee" />
-        <param name="genesFile" type="data" format="json" label="Gene features" help="Gene features in JSON format generated by 'GFF3 to JSON' or 'Get features by Ensembl ID' tool" />
+        <param name="genesFile" type="data" format="sqlite" label="Gene features" help="Gene features in SQLite format generated by 'GSTF preparation' tool" />
     </inputs>
     <outputs>
         <data name="outputFile" format="gafa.sqlite" label="${tool.name} on ${on_string}" />
@@ -25,7 +25,7 @@
         <test>
             <param name="treeFile" ftype="nhx" value="tree1.nhx,tree2.nhx,tree3.nhx,tree4.nhx" />
             <param name="alignmentFile" ftype="fasta" value="align1.fasta,align2.fasta,align3.fasta,align4.fasta" />
-            <param name="genesFile" ftype="json" value="gene.json" />
+            <param name="genesFile" ftype="sqlite" value="gene.sqlite" />
             <output name="outputFile" file="test.gafa.sqlite" compare="sim_size" />
         </test>
     </tests>
b
diff -r e17a3470c70a -r 117fc7414307 schema/gafa.mwb
b
Binary file schema/gafa.mwb has changed
b
diff -r e17a3470c70a -r 117fc7414307 schema/gafa.png
b
Binary file schema/gafa.png has changed
b
diff -r e17a3470c70a -r 117fc7414307 schema/gafa.svg
--- a/schema/gafa.svg Fri Mar 03 07:20:23 2017 -0500
+++ b/schema/gafa.svg Wed Mar 15 20:20:58 2017 -0400
b
b'@@ -3,811 +3,865 @@\n <defs>\n <g>\n <symbol overflow="visible" id="glyph0-0">\n-<path style="stroke:none;" d="M 2.558594 -1.027344 C 2.710938 -1.195312 2.785156 -1.460938 2.785156 -1.828125 C 2.785156 -2.171875 2.714844 -2.429688 2.570312 -2.609375 C 2.425781 -2.789062 2.230469 -2.878906 1.988281 -2.878906 C 1.65625 -2.878906 1.425781 -2.722656 1.300781 -2.410156 C 1.234375 -2.246094 1.199219 -2.039062 1.199219 -1.796875 C 1.199219 -1.585938 1.234375 -1.398438 1.304688 -1.234375 C 1.433594 -0.929688 1.664062 -0.777344 1.996094 -0.777344 C 2.21875 -0.777344 2.40625 -0.859375 2.558594 -1.027344 Z M 2.234375 -3.625 C 2.464844 -3.527344 2.652344 -3.355469 2.792969 -3.097656 L 2.792969 -3.621094 L 3.714844 -3.621094 L 3.714844 -0.1875 C 3.714844 0.28125 3.636719 0.632812 3.476562 0.871094 C 3.207031 1.277344 2.691406 1.480469 1.921875 1.480469 C 1.460938 1.480469 1.082031 1.390625 0.789062 1.210938 C 0.496094 1.027344 0.335938 0.757812 0.304688 0.394531 L 1.335938 0.394531 C 1.363281 0.503906 1.40625 0.585938 1.464844 0.632812 C 1.566406 0.71875 1.738281 0.765625 1.980469 0.765625 C 2.320312 0.765625 2.550781 0.648438 2.664062 0.421875 C 2.738281 0.277344 2.777344 0.03125 2.777344 -0.316406 L 2.777344 -0.546875 C 2.6875 -0.394531 2.589844 -0.277344 2.484375 -0.199219 C 2.296875 -0.0546875 2.050781 0.015625 1.75 0.015625 C 1.285156 0.015625 0.914062 -0.148438 0.636719 -0.472656 C 0.359375 -0.800781 0.21875 -1.242188 0.21875 -1.800781 C 0.21875 -2.339844 0.351562 -2.789062 0.621094 -3.15625 C 0.890625 -3.523438 1.269531 -3.707031 1.761719 -3.707031 C 1.941406 -3.707031 2.101562 -3.679688 2.234375 -3.625 Z M 2.234375 -3.625 "/>\n+<path style="stroke:none;" d=""/>\n </symbol>\n <symbol overflow="visible" id="glyph0-1">\n-<path style="stroke:none;" d="M 1.359375 -2.730469 C 1.238281 -2.59375 1.164062 -2.40625 1.132812 -2.171875 L 2.605469 -2.171875 C 2.589844 -2.421875 2.511719 -2.613281 2.375 -2.742188 C 2.238281 -2.871094 2.070312 -2.9375 1.871094 -2.9375 C 1.652344 -2.9375 1.480469 -2.867188 1.359375 -2.730469 Z M 2.683594 -3.546875 C 2.925781 -3.433594 3.125 -3.257812 3.28125 -3.011719 C 3.421875 -2.796875 3.515625 -2.550781 3.558594 -2.265625 C 3.582031 -2.097656 3.59375 -1.859375 3.585938 -1.546875 L 1.109375 -1.546875 C 1.121094 -1.183594 1.238281 -0.929688 1.453125 -0.785156 C 1.582031 -0.695312 1.738281 -0.648438 1.921875 -0.648438 C 2.117188 -0.648438 2.277344 -0.703125 2.398438 -0.8125 C 2.464844 -0.875 2.523438 -0.957031 2.574219 -1.0625 L 3.542969 -1.0625 C 3.515625 -0.847656 3.40625 -0.628906 3.207031 -0.410156 C 2.894531 -0.0585938 2.460938 0.121094 1.902344 0.121094 C 1.441406 0.121094 1.035156 -0.0273438 0.683594 -0.324219 C 0.332031 -0.621094 0.15625 -1.105469 0.15625 -1.773438 C 0.15625 -2.402344 0.316406 -2.882812 0.632812 -3.214844 C 0.949219 -3.550781 1.363281 -3.71875 1.871094 -3.71875 C 2.171875 -3.71875 2.441406 -3.660156 2.683594 -3.546875 Z M 2.683594 -3.546875 "/>\n+<path style="stroke:none;" d="M 3.8125 -0.03125 L 3.8125 -3.984375 L 2.640625 -3.984375 L 2.640625 -3.265625 L 2.875 -3.375 C 2.578125 -3.8125 2.171875 -4.046875 1.75 -4.046875 C 0.890625 -4.046875 0.09375 -3.078125 0.09375 -1.953125 C 0.09375 -0.8125 0.828125 0.0625 1.734375 0.0625 C 2.15625 0.0625 2.515625 -0.109375 2.640625 -0.234375 L 2.640625 -0.03125 C 2.640625 0.40625 2.4375 0.546875 1.96875 0.546875 C 1.609375 0.546875 1.5 0.5625 1.375 0.125 L 0.15625 0.125 C 0.1875 0.890625 0.921875 1.484375 1.9375 1.484375 C 3.03125 1.484375 3.8125 0.828125 3.8125 -0.03125 Z M 2.65625 -1.96875 C 2.65625 -1.296875 2.4375 -1.046875 1.9375 -1.046875 C 1.5 -1.046875 1.3125 -1.296875 1.3125 -1.96875 C 1.3125 -2.65625 1.5 -2.9375 1.953125 -2.9375 C 2.4375 -2.9375 2.65625 -2.640625 2.65625 -1.96875 Z M 2.65625 -1.96875 "/>\n </symbol>\n <symbol overflow="visible" id="glyph0-2">\n-<path style="stroke:none;" d="M 3.367188 -3.414062 C 3.605469 -3.21875 3.722656 -2.890625 3.722656 -2.4375 L 3.722656 0 L 2.753906 0 L 2.753906 -2.203125 C 2.753906 -2.394531 2.726562 -2.539062 '..b'02496 C 4.082737 56.502496 0.499837 52.919596 0.499837 48.502984 Z M 133.501194 48.502984 " transform="matrix(0.566929,0,0,0.566929,61.228346,188.787402)"/>\n+<path style="fill-rule:nonzero;fill:rgb(99.607843%,87.058824%,34.509804%);fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke:rgb(70%,70%,70%);stroke-opacity:1;stroke-miterlimit:10;" d="M 0.502604 8.499023 C 0.502604 4.082411 4.078613 0.499512 8.502116 0.499512 L 132.497993 0.499512 C 136.921495 0.499512 140.497504 4.082411 140.497504 8.499023 L 140.497504 18.496691 C 140.497504 22.920193 136.921495 26.503092 132.497993 26.503092 L 8.502116 26.503092 C 4.078613 26.503092 0.502604 22.920193 0.502604 18.496691 Z M 0.502604 8.499023 " transform="matrix(0.566929,0,0,0.566929,203.527559,184.251969)"/>\n+<use xlink:href="#image19038" transform="matrix(0.566929,0,0,0.566929,206.929134,187.086614)"/>\n <g style="fill:rgb(0%,0%,0%);fill-opacity:1;">\n-  <use xlink:href="#glyph1-43" x="70.867188" y="195.082031"/>\n-  <use xlink:href="#glyph1-1" x="73.985298" y="195.082031"/>\n-  <use xlink:href="#glyph1-29" x="77.453586" y="195.082031"/>\n-  <use xlink:href="#glyph1-16" x="79.530297" y="195.082031"/>\n-  <use xlink:href="#glyph1-4" x="82.648407" y="195.082031"/>\n-  <use xlink:href="#glyph1-20" x="84.033895" y="195.082031"/>\n-  <use xlink:href="#glyph1-2" x="87.502184" y="195.082031"/>\n-  <use xlink:href="#glyph1-6" x="90.970472" y="195.082031"/>\n-  <use xlink:href="#glyph1-7" x="92.703094" y="195.082031"/>\n-  <use xlink:href="#glyph1-8" x="96.862605" y="195.082031"/>\n-  <use xlink:href="#glyph1-9" x="101.022115" y="195.082031"/>\n-  <use xlink:href="#glyph1-10" x="105.525714" y="195.082031"/>\n-  <use xlink:href="#glyph1-11" x="110.029312" y="195.082031"/>\n-  <use xlink:href="#glyph1-8" x="114.532911" y="195.082031"/>\n-  <use xlink:href="#glyph1-9" x="118.692421" y="195.082031"/>\n-  <use xlink:href="#glyph1-12" x="123.19602" y="195.082031"/>\n-  <use xlink:href="#glyph1-44" x="125.27273" y="195.082031"/>\n-  <use xlink:href="#glyph1-14" x="128.741019" y="195.082031"/>\n-  <use xlink:href="#glyph1-15" x="132.209307" y="195.082031"/>\n+  <use xlink:href="#glyph0-4" x="218.835938" y="194.40625"/>\n+  <use xlink:href="#glyph0-5" x="221.099289" y="194.40625"/>\n+  <use xlink:href="#glyph0-6" x="223.743256" y="194.40625"/>\n+  <use xlink:href="#glyph0-3" x="227.522293" y="194.40625"/>\n+  <use xlink:href="#glyph0-7" x="231.675156" y="194.40625"/>\n+  <use xlink:href="#glyph0-8" x="235.454193" y="194.40625"/>\n+  <use xlink:href="#glyph0-5" x="239.233231" y="194.40625"/>\n+  <use xlink:href="#glyph0-9" x="241.877197" y="194.40625"/>\n+  <use xlink:href="#glyph0-10" x="243.766724" y="194.40625"/>\n+  <use xlink:href="#glyph0-4" x="247.919586" y="194.40625"/>\n+  <use xlink:href="#glyph0-11" x="250.182938" y="194.40625"/>\n+  <use xlink:href="#glyph0-7" x="253.961975" y="194.40625"/>\n+  <use xlink:href="#glyph0-10" x="257.741013" y="194.40625"/>\n+  <use xlink:href="#glyph0-2" x="261.893875" y="194.40625"/>\n+  <use xlink:href="#glyph0-8" x="265.672913" y="194.40625"/>\n+  <use xlink:href="#glyph0-9" x="269.45195" y="194.40625"/>\n+  <use xlink:href="#glyph0-2" x="271.341476" y="194.40625"/>\n+  <use xlink:href="#glyph0-7" x="275.120514" y="194.40625"/>\n </g>\n-<path style="fill:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke:rgb(0%,0%,0%);stroke-opacity:1;stroke-miterlimit:10;" d="M 115.864095 13.103027 " transform="matrix(0.566929,0,0,0.566929,68.598425,187.653543)"/>\n-<path style="fill-rule:nonzero;fill:rgb(59.607843%,74.901961%,85.490196%);fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke:rgb(70%,70%,70%);stroke-opacity:1;stroke-miterlimit:10;" d="M 133.501194 19.497125 L 133.501194 19.497125 C 133.501194 23.920627 129.918294 27.496636 125.501682 27.496636 L 8.499349 27.496636 C 4.082737 27.496636 0.499837 23.920627 0.499837 19.497125 Z M 133.501194 19.497125 " transform="matrix(0.566929,0,0,0.566929,61.228346,187.653543)"/>\n </g>\n </svg>\n'
b
diff -r e17a3470c70a -r 117fc7414307 test-data/gene.json
--- a/test-data/gene.json Fri Mar 03 07:20:23 2017 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
[
b'@@ -1,9586 +0,0 @@\n-{\n-   "ENSG00000171105": {\n-      "assembly_name": "GRCh38", \n-      "display_name": "INSR", \n-      "description": "insulin receptor [Source:HGNC Symbol;Acc:HGNC:6091]", \n-      "seq_region_name": "19", \n-      "logic_name": "ensembl_havana_gene", \n-      "object_type": "Gene", \n-      "start": 7112255, \n-      "id": "ENSG00000171105", \n-      "source": "ensembl_havana", \n-      "db_type": "core", \n-      "version": 13, \n-      "biotype": "protein_coding", \n-      "end": 7294034, \n-      "Transcript": [\n-         {\n-            "assembly_name": "GRCh38", \n-            "display_name": "INSR-002", \n-            "Parent": "ENSG00000171105", \n-            "seq_region_name": "19", \n-            "logic_name": "ensembl_havana_transcript", \n-            "object_type": "Transcript", \n-            "start": 7112255, \n-            "id": "ENST00000341500", \n-            "source": "ensembl_havana", \n-            "version": 9, \n-            "Exon": [\n-               {\n-                  "assembly_name": "GRCh38", \n-                  "end": 7293931, \n-                  "start": 7293792, \n-                  "db_type": "core", \n-                  "object_type": "Exon", \n-                  "id": "ENSE00003071904", \n-                  "seq_region_name": "19", \n-                  "version": 1, \n-                  "species": "homosapiens", \n-                  "strand": -1\n-               }, \n-               {\n-                  "assembly_name": "GRCh38", \n-                  "end": 7267896, \n-                  "start": 7267345, \n-                  "db_type": "core", \n-                  "object_type": "Exon", \n-                  "id": "ENSE00003664284", \n-                  "seq_region_name": "19", \n-                  "version": 1, \n-                  "species": "homosapiens", \n-                  "strand": -1\n-               }, \n-               {\n-                  "assembly_name": "GRCh38", \n-                  "end": 7184637, \n-                  "start": 7184316, \n-                  "db_type": "core", \n-                  "object_type": "Exon", \n-                  "id": "ENSE00003682994", \n-                  "seq_region_name": "19", \n-                  "version": 1, \n-                  "species": "homosapiens", \n-                  "strand": -1\n-               }, \n-               {\n-                  "assembly_name": "GRCh38", \n-                  "end": 7174731, \n-                  "start": 7174583, \n-                  "db_type": "core", \n-                  "object_type": "Exon", \n-                  "id": "ENSE00003659630", \n-                  "seq_region_name": "19", \n-                  "version": 1, \n-                  "species": "homosapiens", \n-                  "strand": -1\n-               }, \n-               {\n-                  "assembly_name": "GRCh38", \n-                  "end": 7172434, \n-                  "start": 7172290, \n-                  "db_type": "core", \n-                  "object_type": "Exon", \n-                  "id": "ENSE00003580729", \n-                  "seq_region_name": "19", \n-                  "version": 1, \n-                  "species": "homosapiens", \n-                  "strand": -1\n-               }, \n-               {\n-                  "assembly_name": "GRCh38", \n-                  "end": 7170751, \n-                  "start": 7170537, \n-                  "db_type": "core", \n-                  "object_type": "Exon", \n-                  "id": "ENSE00003536394", \n-                  "seq_region_name": "19", \n-                  "version": 1, \n-                  "species": "homosapiens", \n-                  "strand": -1\n-               }, \n-               {\n-                  "assembly_name": "GRCh38", \n-                  "end": 7168094, \n-                  "start": 7167968, \n-                  "db_type": "core", \n-                  "object_type": "Exon", \n-                  "id": "ENSE00003613738", \n-                  "seq_region_name": "19", \n-                  "version": 1, \n-                  "speci'..b'                "version": 1, \n-                  "species": "canisfamiliaris", \n-                  "strand": -1\n-               }, \n-               {\n-                  "assembly_name": "CanFam3.1", \n-                  "end": 14518681, \n-                  "start": 14518563, \n-                  "db_type": "core", \n-                  "object_type": "Exon", \n-                  "id": "ENSCAFE00000177706", \n-                  "seq_region_name": "6", \n-                  "version": 1, \n-                  "species": "canisfamiliaris", \n-                  "strand": -1\n-               }, \n-               {\n-                  "assembly_name": "CanFam3.1", \n-                  "end": 14518488, \n-                  "start": 14518302, \n-                  "db_type": "core", \n-                  "object_type": "Exon", \n-                  "id": "ENSCAFE00000177713", \n-                  "seq_region_name": "6", \n-                  "version": 1, \n-                  "species": "canisfamiliaris", \n-                  "strand": -1\n-               }, \n-               {\n-                  "assembly_name": "CanFam3.1", \n-                  "end": 14518095, \n-                  "start": 14518022, \n-                  "db_type": "core", \n-                  "object_type": "Exon", \n-                  "id": "ENSCAFE00000177726", \n-                  "seq_region_name": "6", \n-                  "version": 1, \n-                  "species": "canisfamiliaris", \n-                  "strand": -1\n-               }, \n-               {\n-                  "assembly_name": "CanFam3.1", \n-                  "end": 14517147, \n-                  "start": 14517045, \n-                  "db_type": "core", \n-                  "object_type": "Exon", \n-                  "id": "ENSCAFE00000177737", \n-                  "seq_region_name": "6", \n-                  "version": 1, \n-                  "species": "canisfamiliaris", \n-                  "strand": -1\n-               }, \n-               {\n-                  "assembly_name": "CanFam3.1", \n-                  "end": 14516938, \n-                  "start": 14516840, \n-                  "db_type": "core", \n-                  "object_type": "Exon", \n-                  "id": "ENSCAFE00000177744", \n-                  "seq_region_name": "6", \n-                  "version": 1, \n-                  "species": "canisfamiliaris", \n-                  "strand": -1\n-               }, \n-               {\n-                  "assembly_name": "CanFam3.1", \n-                  "end": 14516681, \n-                  "start": 14516506, \n-                  "db_type": "core", \n-                  "object_type": "Exon", \n-                  "id": "ENSCAFE00000177753", \n-                  "seq_region_name": "6", \n-                  "version": 1, \n-                  "species": "canisfamiliaris", \n-                  "strand": -1\n-               }, \n-               {\n-                  "assembly_name": "CanFam3.1", \n-                  "end": 14516182, \n-                  "start": 14515204, \n-                  "db_type": "core", \n-                  "object_type": "Exon", \n-                  "id": "ENSCAFE00000177757", \n-                  "seq_region_name": "6", \n-                  "version": 2, \n-                  "species": "canisfamiliaris", \n-                  "strand": -1\n-               }\n-            ], \n-            "biotype": "protein_coding", \n-            "species": "canisfamiliaris", \n-            "end": 14529569, \n-            "Translation": {\n-               "end": 14528678, \n-               "Parent": "ENSCAFT00000025950", \n-               "db_type": "core", \n-               "object_type": "Translation", \n-               "id": "ENSCAFP00000024092", \n-               "start": 14515481, \n-               "length": 824, \n-               "species": "canisfamiliaris"\n-            }, \n-            "is_canonical": "1", \n-            "db_type": "core", \n-            "strand": -1\n-         }\n-      ], \n-      "species": "canisfamiliaris", \n-      "strand": -1\n-   }\n-}\n'
b
diff -r e17a3470c70a -r 117fc7414307 test-data/gene.sqlite
b
Binary file test-data/gene.sqlite has changed
b
diff -r e17a3470c70a -r 117fc7414307 test-data/test.gafa.sqlite
b
Binary file test-data/test.gafa.sqlite has changed