From b6a8ae8884cbe21090c3bfeef69614008e9e85ef Mon Sep 17 00:00:00 2001 From: Nathan Dunn Date: Thu, 11 Jun 2020 08:30:13 -0700 Subject: [PATCH] updated --- requirements.txt | 4 ++-- test/annotations_test.py | 16 ++-------------- 2 files changed, 4 insertions(+), 16 deletions(-) diff --git a/requirements.txt b/requirements.txt index cef6a774..ed86b4de 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,9 +1,9 @@ requests -biopython +biopython==1.77 cachetools<4 click>=6.7 wrapt pyyaml decorator -bcbio-gff +bcbio-gff==0.6.6 pytest-timeit diff --git a/test/annotations_test.py b/test/annotations_test.py index 451227d4..6d364899 100644 --- a/test/annotations_test.py +++ b/test/annotations_test.py @@ -6,12 +6,6 @@ from . import ApolloTestCase, wa from apollo import util -def parse(path): - in_handle = open(path) - for rec in GFF.parse(in_handle): - print("rec -> "+str(rec)+"\n") - for f in rec.features: - print("feature ->" + str(f)+"\n") class AnnotationsTest(ApolloTestCase): @@ -37,14 +31,6 @@ def test_features_to_apollo_schema_mrna(self): def test_features_to_apollo_schema_gene(self): path = 'test-data/gene-top.gff' - print("inspecting") - output = parse(path) - print(str(output)) - for o in output: - print("AAA") - print(str(o)) - print("BBB") - print("inspected") with open(path) as file: print(file.read()) @@ -59,6 +45,8 @@ def test_features_to_apollo_schema_gene(self): new_transcript_list = [] for rec in GFF.parse(in_handle): print(str(rec)) + print(str(rec.features)) + print(str(rec.sub_features)) for f in rec.features: print("feature ===== start") print(f)