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

throw error and quit if input dir is obviously wrong #36

Open
dizak opened this issue May 9, 2018 · 3 comments
Open

throw error and quit if input dir is obviously wrong #36

dizak opened this issue May 9, 2018 · 3 comments
Assignees
Labels
enhancement new feature update generic change, too small to call it a feature

Comments

@dizak
Copy link
Owner

dizak commented May 9, 2018

4f5823a

Proposed change

If there no fastq files or for other reason the input directory is obviously wrong, everything tries and fails. It should be detected before mothur is called.

@dizak dizak added the update generic change, too small to call it a feature label May 9, 2018
@Setnea
Copy link
Collaborator

Setnea commented May 11, 2018

I can fix it when I will be working on issue #22 .

@Setnea Setnea self-assigned this May 11, 2018
@Setnea Setnea added the enhancement new feature label Jul 3, 2018
Setnea added a commit that referenced this issue Jul 9, 2018
Function validates if the defined directory contains files required for analysis (illumina PE mode: at least one pair of forward & reverse)
@Setnea
Copy link
Collaborator

Setnea commented Jul 13, 2018

Current travis build does not support new input directory validation.
Software exits if the input directory does not contain proper fastq fails, and because of that some files cannot be created and compared (see branch args_fix)

Edit: Travis build was ok, the new functions didn't support analysis-only mode. Fixed.

Setnea added a commit that referenced this issue Jul 17, 2018
Make function more flexible and editable by parsing some previously hard coded variables as function arguments.
Add more comments.
dizak added a commit that referenced this issue Jul 18, 2018
@dizak
Copy link
Owner Author

dizak commented Jul 18, 2018

Added CI tests for the input validation. After mothulity.py is called with the nonsense input directory, its warning is redirected to a file which is then compared with the reference logs from test_data/logs/. @Setnea it means that you need to make it identical.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement new feature update generic change, too small to call it a feature
Projects
None yet
Development

No branches or pull requests

2 participants