-
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
[FEATURE] Add std::string overload for alignment_from_cigar. #3077
[FEATURE] Add std::string overload for alignment_from_cigar. #3077
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov ReportBase: 98.25% // Head: 98.25% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## master #3077 +/- ##
=======================================
Coverage 98.25% 98.25%
=======================================
Files 276 276
Lines 12344 12344
=======================================
Hits 12128 12128
Misses 216 216
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. |
clang-format should be resolved by a rebase on master, but it's not blocking IMO |
ffc7151
to
78e180e
Compare
78e180e
to
bcfcbc2
Compare
You might have read a CIGAR string from elsewhere, used our IO with a std::string as type for
field::cigar
or want to get the alignment for a secondary alignment which is stores as a string in the tag dictionary.In all those cases, you want to create an alignment from a CIGAR string not a vector, so I added an overload.
Note that the overload currently is not the most efficient one, because it allocates a
std::vector<seqan3::cigar>
for convenient use of the other overload. This can be improved by directly parsing the CIGAR string.Alternatively, we could make the function
detail::parse_cigar
(not a good name right now), which creates a CIGAR vector out of a CIGAR string, public.