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

Fix TRUST4 loadContigs issue in #429 #430

Merged
merged 11 commits into from
Oct 28, 2024
Merged

Conversation

Qile0317
Copy link
Collaborator

This is a fix for #429

The issue ended up being that matrix subsetting in R reduces matricies to vectors when the subsetted result will only have 1 column/row which caused an error when trying to do colnames()<-. Fixed this by using drop = FALSE as the k argument in matrix subsetting. This may or may not be present in other functions too - haven't checked yet.

Also did some general reformatting and refactoring but no functionality has been affected.

@Qile0317 Qile0317 marked this pull request as ready for review October 28, 2024 00:30
@Qile0317
Copy link
Collaborator Author

@ncborcherding For the example single row data given in #429 the output after fixing all code contains two rows where the first row contains the correct information, but the second row is just all NA's with the exact same barcode as the first row. Is this intended behaviour? It happens since there was no chain1 data.

@ncborcherding ncborcherding merged commit 4845b7c into ncborcherding:dev Oct 28, 2024
1 check passed
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