Skip to content

Commit

Permalink
Move GFF out of cdot package (only used to build data). #35 - make ta…
Browse files Browse the repository at this point in the history
…gs genome build specific
  • Loading branch information
davmlaw committed Mar 6, 2023
1 parent 035bd30 commit 77f3ab4
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cdot/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.2.13"
__version__ = "0.2.14"


def get_json_schema_version():
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion generate_transcript_data/cdot_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import cdot
import ijson
from cdot.pyhgvs.pyhgvs_transcript import PyHGVSTranscriptFactory
from cdot.gff.gff_parser import GTFParser, GFF3Parser
from gff_parser import GTFParser, GFF3Parser
from cdot.json_encoders import SortedSetEncoder
from pyhgvs import CDNACoord

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def _finish(self):
gene_data["url"] = self.url

# At the moment the transcript dict is flat - need to move it into "genome_builds" dict
GENOME_BUILD_FIELDS = ["cds_start", "cds_end", "strand", "contig", "exons", "other_chroms"]
GENOME_BUILD_FIELDS = ["cds_start", "cds_end", "strand", "contig", "exons", "other_chroms", "tag"]
for transcript_accession, transcript_data in self.transcript_data_by_accession.items():
if protein := self.transcript_proteins.get(transcript_accession):
transcript_data["protein"] = protein
Expand Down
5 changes: 4 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,7 @@ install_requires =

[options.packages.find]
where =
exclude=tests
exclude=
tests
generate_transcript_data

2 changes: 1 addition & 1 deletion tests/test_gff_parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import os
from inspect import getsourcefile
import unittest
from cdot.gff.gff_parser import GTFParser, GFF3Parser
from generate_transcript_data.gff_parser import GTFParser, GFF3Parser


class Test(unittest.TestCase):
Expand Down

0 comments on commit 77f3ab4

Please sign in to comment.