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

[MISC] Alphabet: deprecate phred_type constructor #2537

Merged

Conversation

Irallia
Copy link
Contributor

@Irallia Irallia commented Apr 20, 2021

@Irallia Irallia self-assigned this Apr 20, 2021
@vercel
Copy link

vercel bot commented Apr 20, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/seqan/seqan3/EE48YZ8W2UkFoTPFkxRzV4Nbdx3d
✅ Preview: https://seqan3-git-fork-irallia-api-alphabetdeprecatephr-6d82a6.vercel.app

@Irallia Irallia force-pushed the API/alphabet/deprecate_phred_type_constructor branch from bfd896e to 30669a1 Compare April 20, 2021 15:37
@codecov
Copy link

codecov bot commented Apr 20, 2021

Codecov Report

Merging #2537 (06ba79a) into master (dca7146) will decrease coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2537      +/-   ##
==========================================
- Coverage   98.23%   98.23%   -0.01%     
==========================================
  Files         269      269              
  Lines       10541    10535       -6     
==========================================
- Hits        10355    10349       -6     
  Misses        186      186              
Impacted Files Coverage Δ
include/seqan3/alphabet/quality/phred42.hpp 100.00% <ø> (ø)
include/seqan3/alphabet/quality/phred63.hpp 100.00% <ø> (ø)
include/seqan3/alphabet/quality/phred68solexa.hpp 100.00% <ø> (ø)
include/seqan3/alphabet/quality/phred94.hpp 100.00% <ø> (ø)
include/seqan3/alphabet/quality/phred_base.hpp 100.00% <ø> (ø)
include/seqan3/io/sequence_file/input.hpp 100.00% <ø> (ø)
include/seqan3/range/views/to_lower.hpp 100.00% <0.00%> (ø)
include/seqan3/alphabet/views/char_to.hpp 100.00% <0.00%> (ø)
include/seqan3/search/fm_index/bi_fm_index.hpp 100.00% <0.00%> (ø)
include/seqan3/range/views/to_char.hpp
... and 9 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 dca7146...06ba79a. Read the comment docs.

/*!\brief Allow construction from the Phred score value.
* \details
* \deprecated This will be removed in 3.1.0. Please use seqan3::phred42::assign_phred() or '!'_phred42.
*/
constexpr phred42(phred_type const p) : base_t{p} {}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
constexpr phred42(phred_type const p) : base_t{p} {}
SEQAN3_DEPRECATED_310 constexpr phred42(phred_type const p) : base_t{p} {}

@Irallia Irallia force-pushed the API/alphabet/deprecate_phred_type_constructor branch from 30669a1 to 131e644 Compare April 21, 2021 01:16
CHANGELOG.md Outdated
@@ -127,6 +127,11 @@ regression test suite and patches at https://github.com/seqan/seqan3/tree/master
* Renamed `seqan3::phred68legacy` to `seqan3::phred68solexa` ([\#2522](https://github.com/seqan/seqan3/pull/2522)).
* Renamed `seqan3::sam_dna16` to `seqan3::dna16sam`
([\#2521](https://github.com/seqan/seqan3/pull/2521)).
* Removed phred constructors instead ([\#2537](https://github.com/seqan/seqan3/pull/2537)):
* Use instead of `seqan3::phred42{0}` constructor `seqan3::phred42::assign_phred(0)` or `'!'_phred42`.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
* Use instead of `seqan3::phred42{0}` constructor `seqan3::phred42::assign_phred(0)` or `'!'_phred42`.
* Use instead of `seqan3::phred42(phred_type)` constructor `seqan3::phred42::assign_phred()` or `seqan3::operator""_phred42`.

@Irallia Irallia force-pushed the API/alphabet/deprecate_phred_type_constructor branch from 131e644 to be93733 Compare April 21, 2021 11:03
@Irallia Irallia force-pushed the API/alphabet/deprecate_phred_type_constructor branch from a1d535b to d7e077c Compare April 21, 2021 15:06
@marehr marehr requested review from a team and SGSSGene and removed request for a team April 22, 2021 08:44
@Irallia Irallia force-pushed the API/alphabet/deprecate_phred_type_constructor branch from d7e077c to 62180e1 Compare April 23, 2021 13:33
Copy link
Contributor

@SGSSGene SGSSGene left a comment

Choose a reason for hiding this comment

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

👍

@SGSSGene SGSSGene requested a review from eseiler April 26, 2021 10:20
CHANGELOG.md Outdated Show resolved Hide resolved
@eseiler eseiler enabled auto-merge (squash) April 26, 2021 10:52
@eseiler eseiler merged commit c49e2be into seqan:master Apr 26, 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.

deprecate phred_type constructor
4 participants