Skip to content

Set max node length for gfa export#172

Merged
Chris7 merged 4 commits intomainfrom
gfa-export-node-length
Apr 10, 2025
Merged

Set max node length for gfa export#172
Chris7 merged 4 commits intomainfrom
gfa-export-node-length

Conversation

@Chris7
Copy link
Contributor

@Chris7 Chris7 commented Apr 9, 2025

No description provided.

@Chris7 Chris7 requested a review from dkhofer April 9, 2025 21:30
{
let sub_end = (sub_start + chunk_size).min(block.end);
let seq_start = index as i64 * chunk_size;
let mut seq_end = (index as i64 + 1) * chunk_size;
Copy link
Contributor

Choose a reason for hiding this comment

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

Seems like this could just be

let seq_end = (seq_start + chunk_size).min(block_sequence.len())

?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i believe you are right

Copy link
Contributor

@dkhofer dkhofer left a comment

Choose a reason for hiding this comment

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

Nice, LGTM!

@Chris7 Chris7 merged commit d755bc4 into main Apr 10, 2025
1 check passed
@Chris7 Chris7 deleted the gfa-export-node-length branch April 10, 2025 17:58
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