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 bug for no indels #166

Merged
merged 1 commit into from
Aug 23, 2023
Merged

Conversation

jonathangriffiths
Copy link
Contributor

I've been running into a bug on datasets without indels. Specifically, in check_on_ref_genome.R, there is a failure to rbind the indel_dt and the sumstat_dt. I have deduced that the issue is on my line 120 in this PR, where you are doing indel_dt[, IMPUTATION_SNP := NA] - this is adding a column to indel_dt, so that when you try to rbind the two DTs together, there is an error about the number of columns.

In this fix, the line is not called if the user specifies no indels. that way, the indel_dt stays as a 0-row, 0-column DT and can be successfully rbind-ed.

I also fixed an indentation mismatch that i came across in the same file.

Thanks!

@Al-Murphy Al-Murphy merged commit 7007407 into Al-Murphy:master Aug 23, 2023
0 of 2 checks passed
@Al-Murphy
Copy link
Owner

Looks good, I tried to sort this issue a while back but clearly didn't do a very thorough job. Thanks for looking into this!
Alan.

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