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

Support outputting alignments in GAF format #384

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Conversation

hmusta
Copy link
Collaborator

@hmusta hmusta commented Feb 7, 2022

This format reports the node IDs of alignment paths.

See "The Graph Alignment Format (GAF)" and "Sequence Alignment/Map Optional Fields Specification"

Copy link
Member

@karasikov karasikov left a comment

Choose a reason for hiding this comment

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

Please add integration / unit tests.

md_string += std::to_string(match_count);
match_count = 0;
}
md_string += std::string(ref_it, ref_it + num);
Copy link
Member

Choose a reason for hiding this comment

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

string_view would be enough. Why do you create a new string?

Comment on lines +313 to +314
for (size_t i = 0; i < paths.size(); ++i) {
const auto &path = paths[i];
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
for (size_t i = 0; i < paths.size(); ++i) {
const auto &path = paths[i];
for (const auto &path : paths) {

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I had it set up this way because a bug in GCC-8 was causing the compilation to crash because of this kind of for-loop. Let's see if it happens this time.

@hmusta hmusta marked this pull request as draft June 12, 2023 15:00
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.

2 participants