-
Notifications
You must be signed in to change notification settings - Fork 1
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: allow empty input tables #140
fix: allow empty input tables #140
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just some minor issues :)
…thub.com:zavolanlab/mirflowz into 136-fix-merge_tablesr-fails-if-given-empty-input
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's actually really nice with the linting and docstrings and all of that good stuff. Good job! 👍
It just would have been nice to keep the linting and other improvements separate from the fix that this PR was supposed to be about, especially as they now make up, like, 95% of the whole PR. I really don't even know how to name this PR properly.
This PR closes #136 .
The changes in
merge_tables.R
are:get_table()
that tries to read the input file and if empty, create a data frame made of one row withNA
s in each columnmerge_tables()
function to include the new function and, if an empty file was present, remove the row with aNA
in the miRNA species column