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

Bugfix/specify lane ordinal sorting #46

Merged
merged 3 commits into from
Apr 28, 2023
Merged

Conversation

nh13
Copy link
Collaborator

@nh13 nh13 commented Apr 13, 2023

[bugfix] reads were written to the wrong file when --lanes was used

When subsetting to a specific lane, the reads were being written to the
wrong output file. This was caused by the list of samples internally
not being in ascending order by ordinal, but the writers created after
sorting the samples by ordinal.

The fix is to order the samples by ordinal prior to creating the
writers, and adding in validation code to ensure the samples are sorted
in ascending order by ordinal.

Also changed the ordinal of the undetermined sample to be one larger
than the largest ordinal in the existing samples.

When subsetting to a specific lane, the reads were being written to the
wrong output file.  This was caused by the list of samples internally
not being in ascending order by ordinal, but the writers created after
sorting the samples by ordinal.

The fix is to order the samples by ordinal prior to creating the
writers, and adding in validation code to ensure the samples are sorted
in ascending order by ordinal.

Also changed the ordinal of the undetermined sample to be one larger
than the largest ordinal in the existing samples.
@nh13 nh13 requested a review from tfenne April 13, 2023 23:50
@nh13 nh13 marked this pull request as ready for review April 13, 2023 23:50
src/lib/sample_metadata.rs Outdated Show resolved Hide resolved
src/lib/sample_sheet.rs Outdated Show resolved Hide resolved
@nh13 nh13 merged commit 040a551 into main Apr 28, 2023
@nh13 nh13 deleted the bugfix/specify-lane-ordinal-sorting branch April 28, 2023 22:02
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