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

[MRG] Accept file list in sourmash sig cat #1236

Merged
merged 3 commits into from
Nov 5, 2020
Merged

Conversation

luizirber
Copy link
Member

@luizirber luizirber commented Nov 5, 2020

Current behavior of sourmash sig cat doesn't support passing a file list as input. I would like to run sourmash sig cat filelist.txt and be able to load signatures from filelist.txt (one signature path per line).

I think load_file_as_signatures (called here) is missing the call to load_file_list_of_signatures?

Checklist

  • Is it mergeable?
  • make test Did it pass the tests?
  • make coverage Is the new code covered?
  • Did it change the command-line interface? Only additions are allowed
    without a major version increment. Changing file formats also requires a
    major version number increment.
  • Was a spellchecker run on the source code and documentation after
    changes were made?

@codecov
Copy link

codecov bot commented Nov 5, 2020

Codecov Report

Merging #1236 into latest will increase coverage by 9.43%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           latest    #1236      +/-   ##
==========================================
+ Coverage   83.29%   92.72%   +9.43%     
==========================================
  Files         103       76      -27     
  Lines        9588     5977    -3611     
==========================================
- Hits         7986     5542    -2444     
+ Misses       1602      435    -1167     
Flag Coverage Δ
rusttests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
sourmash/sourmash_args.py 95.57% <100.00%> (+0.15%) ⬆️
sourmash/sbt_storage.py 86.44% <0.00%> (-5.09%) ⬇️
src/core/src/index/sbt/mhbt.rs
src/core/src/ffi/signature.rs
src/core/tests/minhash.rs
src/core/src/sketch/minhash.rs
src/core/src/ffi/cmd/compute.rs
src/core/src/signature.rs
src/core/src/index/search.rs
src/core/src/index/linear.rs
... and 19 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a6c800e...7e95ad2. Read the comment docs.

sourmash/sourmash_args.py Outdated Show resolved Hide resolved
@ctb
Copy link
Contributor

ctb commented Nov 5, 2020 via email

@luizirber luizirber changed the title [WIP] Accept file list in sourmash sig cat [MRG] Accept file list in sourmash sig cat Nov 5, 2020
@luizirber
Copy link
Member Author

Ready for review and merge

Copy link
Contributor

@ctb ctb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I think there are probably some edge cases that we will discover later ;)

@luizirber luizirber merged commit 95bd546 into latest Nov 5, 2020
@luizirber luizirber deleted the sig_cat_filelist branch November 5, 2020 21:47
luizirber added a commit that referenced this pull request Nov 9, 2020
* Allow loading DBs from a file list
* add test and impl for passing DBs in the file list
@ctb ctb mentioned this pull request Feb 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants