Closed valentynbez closed 1 year ago
Base: 84.77% // Head: 84.93% // Increases project coverage by +0.15%
:tada:
Coverage data is based on head (
20015a5
) compared to base (96b9b29
). Patch coverage: 100.00% of modified lines in pull request are covered.
:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
Thanks! Actually, I think it may be worth copying the entire metadata (name
/ description
/ source
), do you think you could update the code there as well?
Running test_block.py
now throws following error:
File "/nfs/cds-peta/exports/biol_micro_cds_gr_sunagawa/scratch/vbezshapkin/pyhmmer/pyhmmer/tests/test_easel/test_block.py", line 314, in test_translate
prots = block.translate().textize()
File "pyhmmer/easel.pyx", line 5827, in pyhmmer.easel.DigitalSequenceBlock.translate
File "pyhmmer/easel.pyx", line 5884, in pyhmmer.easel.DigitalSequenceBlock.translate
File "pyhmmer/easel.pyx", line 5078, in pyhmmer.easel.DigitalSequence.__init__
File "pyhmmer/easel.pyx", line 4679, in pyhmmer.easel.Sequence.taxonomy_id.__set__
ValueError: NCBI taxonomy must be a positive integer or None, got -1
Don't know how to solve it
The taxonomy_id
is lost after TextSequence.digitize()
pyhmmer.easel.TextSequence(b"woop", sequence="AGTATC", taxonomy_id=123).digitize(pyhmmer.easel.Alphabet.dna()).taxonomy_id
Produces empty output.
Now taxonomy_id
is passed everywhere, but the following errors appear because of object initialization:
======================================================================
ERROR: test_len (test_block.TestDigitalSequenceBlock)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/nfs/cds-peta/exports/biol_micro_cds_gr_sunagawa/scratch/vbezshapkin/pyhmmer/pyhmmer/tests/test_easel/test_block.py", line 37, in test_len
seq1 = self._new_sequence(b"seq1", "ATGC")
File "/nfs/cds-peta/exports/biol_micro_cds_gr_sunagawa/scratch/vbezshapkin/pyhmmer/pyhmmer/tests/test_easel/test_block.py", line 287, in _new_sequence
).digitize(self.alphabet)
File "pyhmmer/easel.pyx", line 4884, in pyhmmer.easel.TextSequence.digitize
File "pyhmmer/easel.pyx", line 4909, in pyhmmer.easel.TextSequence.digitize
File "pyhmmer/easel.pyx", line 4679, in pyhmmer.easel.Sequence.taxonomy_id.__set__
ValueError: NCBI taxonomy must be a positive integer or None, got 0
@valentynbez : I have fixed the initialization of taxonomy IDs, so at least the tests pass now. I think it's a bug that esl_sq_Copy
doesn't copy the taxonomy ID as well, so we should open a PR on https://github.com/EddyRivasLab/easel as well. Want to do it? :wink:
At this point, it's reasonable just to drop support for tax_id
in this case: https://github.com/EddyRivasLab/easel/issues/68
Good call. Then you can just remove it from the test cases and we should be good to go :)
All clear, looks like it's just a Codecov problem failing CI. I'll be merging. Thanks for the contribution :ok_hand:
Always! I'm gonna use it A LOT :D
Previous behaviour:
Current behaviour: