-
Notifications
You must be signed in to change notification settings - Fork 55
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
Issue #123: Add anib
#338
base: master
Are you sure you want to change the base?
Issue #123: Add anib
#338
Conversation
Including changing the parameter `mode` to `method`
`run_anib_jobs()`, `update_comparison_results()`
If this is not a boolean, it prevents sqlite from recognising duplicate entries
Up to adding them to the database
Now passes the lists of all `fragfiles` and `fraglens`
Necessary for sqlite to recognise duplicate values
Currently, we don't pass a list of genome pairs to `anib.py`.
I am running into an issue:
As of yet, I am not sure how to separate the two, while keeping backwards-compatibility and also not repeating a lot of code. Unless, I can also change |
Failing test for |
@widdowquinn I think this is ready to merge. The things being caught by codefactor are calls to |
This is once again the state of this PR. Can it be merged? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If tests are no longer relevant or applicable, they should be removed or updated to make them relevant. The "unsure this is needed" message here (cc4d346 and 3233fd5) reads as though the person making the change does not know what the test does, and/or why it fails or might be important.
In this case, the intent of the tests was to supplement the corresponding *single()
function (which tests generation of a single command line, given input files), to check whether the appropriate reciprocal BLAST comparison command lines were being correctly generated. This allowed some level of diagnosis when a comparison fails to establish that it is not (i) the command-line itself that fails or (ii) failure to generate the reciprocal comparison command-lines.
These are unit tests, whose coverage may be masked by a passing integration test so removal may not indicate a problem if only the coverage information is being checked. Please can you clarify whether the intent of these skipped tests was maintained elsewhere? If not, do you consider that any of the following hold: (i) the unit test is redundant; (ii) the unit test needs to be updated to reflect the new way that reciprocal comparison commands are generated; (iii) the time taken to update the unit tests would be better spent converting command-line generation to something SLURM-compatible?
If (i) then please delete the tests. If (ii) please update the tests accordingly. If (iii) please ignore - other than to note that (iii) is the case - and work on the new command-line generation.
- the sort_index() call now needs axis as an explicit keyword - pandas.utils.testing is now pandas.testing
If an import is no longer required, it should be removed, rather than commented as "probably not required" or similar.
After reviewing the code and tests the reason for the comments (left by past me) has become clear.
>>> list(permutations(['A', 'B', 'C'], 2))
[('A', 'B'), ('A', 'C'), ('B', 'A'), ('B', 'C'), ('C', 'A'), ('C', 'B')] The resulting list of comparisons is looped over in The I would suggest these are redundant, as to match the current expected output is functionally no different than calling the corresponding The only possibility I can think of is related to this:
though, a specific failure to produce a reciprocal command line would generally mean the reciprocal one was not generated via the same mechanism as the 'original'—and that is not the case in this PR. |
Adds
anib
subcommand to v3.Closes #123.
Type of change
Action Checklist
pyani
repository under your own account (please allow write access for repository maintainers)CONTRIBUTING.md
)pytest -v
non-passing code will not be mergedorigin/master
flake8
andblack
before submissionPull requests
section in thepyani
repository