Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(IPVC-2276): skip accessions from gff that are not in the tx_info file, log missing acs to file #18

Merged
merged 10 commits into from
Apr 5, 2024
Prev Previous commit
Next Next commit
feat(IPVC-2276): update fx name
  • Loading branch information
sptaylor committed Apr 2, 2024
commit 5b77ba6fd2196084bf231e2c065a460f7153787e
6 changes: 3 additions & 3 deletions tests/test_ncbi_parse_genomic_gff.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from sbin.ncbi_parse_genomic_gff import (
get_zero_based_exon_ranges,
GFFRecord,
parse_gff_file,
parse_gff_files,
parse_gff_record,
)

Expand Down Expand Up @@ -160,7 +160,7 @@ def test_parse_gff_record_raises_unparseable_id(self):
def test_parse_gff_file(self):
# Test parsing the entire uncompressed GFF file
expected_result = {"rna-NR_046018.2": self.gff_records}
parsed_result = parse_gff_file([self.temp_gff.name])
parsed_result = parse_gff_files([self.temp_gff.name])
self.assertEqual(parsed_result, expected_result)

def test_parse_gff_file_accepts_gzipped_files(self):
Expand All @@ -171,7 +171,7 @@ def test_parse_gff_file_accepts_gzipped_files(self):

# Test parsing the gzipped GFF file
expected_result = {"rna-NR_046018.2": self.gff_records}
parsed_result = parse_gff_file([self.temp_gff.name + ".gz"])
parsed_result = parse_gff_files([self.temp_gff.name + ".gz"])
self.assertEqual(parsed_result, expected_result)

def test_get_zero_based_exon_ranges(self):
Expand Down