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

Implement file parsing for webassembly #3047

Merged
merged 5 commits into from
Mar 23, 2024
Merged

Conversation

luizirber
Copy link
Member

Address #1577 (comment)

This PR implements Read for File in browsers, which allows using niffler + needletail to parse FASTA/Q, .gzcompressed or not, in browsers.

I also added error handling, so the browser can print nicer error messages instead of something cryptic to console.log.

Copy link

codecov bot commented Feb 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.89%. Comparing base (24ab89c) to head (6153730).

Additional details and impacted files
@@           Coverage Diff           @@
##           latest    #3047   +/-   ##
=======================================
  Coverage   86.88%   86.89%           
=======================================
  Files         136      136           
  Lines       15543    15542    -1     
  Branches     2637     2637           
=======================================
  Hits        13505    13505           
+ Misses       1736     1735    -1     
  Partials      302      302           
Flag Coverage Δ
hypothesis-py 25.44% <ø> (ø)
python 92.87% <ø> (ø)
rust 61.47% <ø> (+0.02%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@luizirber luizirber merged commit 2b1bf0d into latest Mar 23, 2024
41 checks passed
@luizirber luizirber deleted the lirber/wasm_needletail branch March 23, 2024 20:31
@ctb ctb mentioned this pull request Apr 9, 2024
15 tasks
ctb added a commit that referenced this pull request Apr 9, 2024
Release candidate testing:
- [x] Command line tests pass for a release candidate
- [x] All eight release candidate wheels are built

Releasing to PyPI:

- [ ] RC tag(s)s deleted on github
- [ ] Release tag cut
- [ ] Release notes written
- [ ] All eight release wheels built
- [ ] Release wheels uploaded to pypi
- [ ] tar.gz distribution uploaded to pypi

After release to PyPI and conda-forge/bioconda packages built:

- [ ] [PyPI page](https://pypi.org/project/sourmash/) updated
- [ ] Zenodo DOI successfully minted upon new github release - [see
search
results](https://zenodo.org/search?page=1&size=20&q=sourmash&sort=mostrecent)
- [ ] `pip install sourmash` installs the correct version
- [ ] [conda-forge
sourmash-minimal-feedstock](https://github.com/conda-forge/sourmash-minimal-feedstock)
has updated `sourmash-minimal` to the correct version
- [ ] `mamba create -n smash-release -y sourmash` installs the correct
version

Optional but recommended:

- [ ] PR submitted to update pyodide version
- [ ] PR submitted to update spack version

---

## Release notes:

- Bump histogram from 0.9.1 to 0.10.0 (#3109)
- Bump getrandom from 0.2.12 to 0.2.14 (#3108)
- MRG: add pyopensci review badge (#3105)
- Bump enum_dispatch from 0.3.12 to 0.3.13 (#3102)
- Bump serde_json from 1.0.114 to 1.0.115 (#3101)
- Update pytest-cov requirement from <5.0,>=4 to >=4,<6.0 (#3097)
- Bump rayon from 1.9.0 to 1.10.0 (#3098)
- Implement file parsing for webassembly (#3047)
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.

1 participant