-
Notifications
You must be signed in to change notification settings - Fork 2
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
Process dir #208
Process dir #208
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #208 +/- ##
==========================================
+ Coverage 88.19% 88.58% +0.38%
==========================================
Files 14 16 +2
Lines 1720 1874 +154
==========================================
+ Hits 1517 1660 +143
- Misses 203 214 +11 ☔ View full report in Codecov by Sentry. |
fa23910
to
f3e1935
Compare
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.
Some minor changes required. In general I would also add a note about process_file
to the general vignette and tell the difference between different types of this process_...
functions.
@@ -0,0 +1,53 @@ | |||
#' @title | |||
#' Process a file to generate normalised data and reports |
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.
a little more description please
R/process-dir.R
Outdated
#' | ||
#' @keywords internal | ||
#' | ||
is_mba_data_file <- function(filepath) { |
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.
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.
The issue still persists. The format pattern that you require for the filenames is not present in our files. I guess the function is_mba_data_file
should be less restrictive.
Another interesting thing I found is that there is a case where for each plate there is different layout. For sake of convenience here is the link to the data I'm talking about: OneDrive |
I think it would be nice if list of plates returned if parametr |
Fix typos Co-authored-by: Tymoteusz Kwieciński <31191783+Fersoil@users.noreply.github.com>
I have sorted the outputs of the As for the layout and input file naming convention I think we have to set some kind of standard for those files if we want to process those files accordingly without any misunderstandings |
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.
The only problem I have noticed is too restrictive validation in is_mba_data_file
, the rest looks good
R/process-dir.R
Outdated
#' | ||
#' @keywords internal | ||
#' | ||
is_mba_data_file <- function(filepath) { |
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.
The issue still persists. The format pattern that you require for the filenames is not present in our files. I guess the function is_mba_data_file
should be less restrictive.
There is also the issue of multiple layouts for one directory, i.e., layout per plate, but I would leave it as is and discuss it at the next meeting with Michael. He will tell us how they want to work with the package, and then we can introduce changes. |
The layout per plate is supported. It will search for a layout file called
I will adopt the function so that if the format is globally provided then the pattern matching will be less restrictive |
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.
LGTM
* Always return the absolute path for output path * Add process file function * Move path checking to helpers * Add mock data from multiplate * Implement process dir * Normalization to normalisation * Document process_dir function * Fix typo * removed typos, added commas * fixed typos, renamed from mbr to mba * Apply suggestions from code review Fix typos Co-authored-by: Tymoteusz Kwieciński <31191783+Fersoil@users.noreply.github.com> * Create a global src config * Add more documnetation and run check * Add another example for process file * Sort returned plates by plate datetime * Always print if no plates found * Less restrictive is_mba_data_file and more output to the user * Improve test coverage --------- Co-authored-by: Tymoteusz Kwieciński <31191783+Fersoil@users.noreply.github.com> Co-authored-by: Fersoil <Fersoil>
Implements: