-
Notifications
You must be signed in to change notification settings - Fork 82
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] Remove field::alignment from sam_file_[in/out]out. #3058
[MISC] Remove field::alignment from sam_file_[in/out]out. #3058
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
dc407de
to
02023da
Compare
Codecov ReportBase: 98.24% // Head: 98.22% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #3058 +/- ##
==========================================
- Coverage 98.24% 98.22% -0.02%
==========================================
Files 275 275
Lines 12346 12197 -149
==========================================
- Hits 12129 11981 -148
+ Misses 217 216 -1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
7e556b6
to
4cfe87a
Compare
4cfe87a
to
c304f83
Compare
0651d20
to
b138781
Compare
b138781
to
4ad6eca
Compare
0f53c40
to
92e5a5e
Compare
26fd4c4
to
eee8f4a
Compare
eee8f4a
to
056683e
Compare
I don't think the coverage fail is correct (maybe just telling me that I deleted a lot of lines) |
153cb15
to
4a8a14e
Compare
auto alignment = std::tie(gapped_ref, gapped_read); | ||
// create a cigar with more than 65535 cigar elements | ||
std::vector<seqan3::cigar> too_long_cigar{}; | ||
for (size_t i = 0; i < 69'999; ++i) |
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.
for (size_t i = 0; i < 69'999; ++i) | |
for (size_t i = 0; i <= 65'535; ++i) |
Should already suffice?
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.
yes but is it necessary? I would need to change the BAM file binary tests
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.
Then it can stay as is, I thought one would just need to adjust the loop :)
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 you feel like it, you can replace all occurrences of counter++;
LGTM, rebase + auto-merge :)
test/unit/alignment/cigar_conversion/alignment_from_cigar_test.cpp
Outdated
Show resolved
Hide resolved
ce20096
to
63a9a28
Compare
63a9a28
to
6d55996
Compare
please do not merge yet. I think a better deprecation warning for the record is needed. |
6d55996
to
f19b5cb
Compare
@eseiler Can you please have a look at |
return get_impl(field_constant<seqan3::field::alignment>{}, static_cast<tuple_base_t &&>(*this)); | ||
} | ||
SEQAN3_DEPRECATED_340 decltype(auto) alignment() && | ||
{} |
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.
Is there a way to dispatch to alignment_from_cigar
, i.e. do we get access to the reference sequence from here somehow?
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.
no, since
- It would require some dirty hacking to give extra data to the tuple (record)
- there is no guarantee that a reference sequence is provided.
Also Fixes #2907
Deprecation warning:
The most readable solution is to add a static assert. Otherwise I would have to deprecate the
field::alignment
. But then we couldn't use it once we implement e.g. Blast or MSA IO.So I just wanted to deprecate using it with the SAM file.
Todo:
Follow Up:
field::alignment
is gonefield::offset