-
Notifications
You must be signed in to change notification settings - Fork 5
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
For runs w/multiple projects, manage adapter-trimmed files #126
Conversation
Pull Request Test Coverage Report for Build 7937197343Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
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 few questions.
@@ -92,6 +92,10 @@ def _find_projects(self, path_to_run_id_data_fastq_dir, is_raw_input): | |||
files = [x for x in files if x.endswith('.fastq.gz') and | |||
'zero_files' not in x] | |||
|
|||
# remove fastq files in the only-adapter-filtered | |||
# folder from consideration if they are present. | |||
files = [x for x in files if 'only-adapter-filtered' not in x] |
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.
my concern here is that this folder is at the top of the NuQCJob folder, which potentially means that if there are more than one project with the same filename it could be overwritten; is this possible?
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.
Correct, that's what this PR is fixing. As NuQCJob processes each project, it will move the adapter-trimmed files from only-adapter-filtered into a subdirectory of said folder. This way there will be no overwrites while NuQCJob is running.
This line here is in FastQCJob, which is downstream of NuQCJob. This line is the same line I added to qiita-rc. If the path to _find_projects is a sub-directory of NuQCJob, then this line will have no effect. If however it's passed the path to the entire working directory, this will safely cover that situation.
:return: None | ||
''' | ||
|
||
# method made static and output_path made a parameter for easier |
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.
should this be part of the docstring vs. a comment?
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.
Mostly there as a discussion point for us. Better to delete it after.
No description provided.