-
Notifications
You must be signed in to change notification settings - Fork 0
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
filter & trim #16
filter & trim #16
Conversation
"By default, the filtering options discard or redirect the read pair if any of the two reads fulfill the criteria." |
so essentially that is saying that if any read is filtered that both reads will be taken out and put into the "filtered" file So then you have to somehow fetch the filtered out reads from some file? |
I'm also trying to figure out why jip is not parsing the docopt correctly. it seems like it should work to do something like from jip.vendor.docopt import docopt
d=docopt('''\nUsage:\n test (-j <j> | -x <x>)\n\nOptions:\n -j <j>\n -x <x>\n''', ['-j', '5', '-x', '6'])
print d
d=docopt('''\nUsage:\n test (-j <j> | -x <x>)\n\nOptions:\n -j <j>\n -x <x>\n''', ['-j', '5'])
print d
|
from jinja2 import Template
print Template(open("templates/jip.jinja").read()).render(json.loads(open("templates/filter.json").read())) |
So here you can see he does some crazy code where he parses the docstring The downfall is that you lose the ability to use all the normal docopt features like mutually exclusive groups |
Well, we could investigate running jobs straight from template + json
|
On a related note, I would reccomend doing validation using either json schemas have the advantage of being very clear and being just json but schematic is more flexible because you can use any python function (not unlike python contracts) |
I just realized that in our template the Usage line is not printing the options from json file. |
Discussion:
|
Just to document discussion:
|
…endency to setup.py
…common. Updated common to support toggable log to console for all scripts
…rleave now test usage for input/output
…plate for being able to easily generate sequence/records
Hypothesis
I'm comfortable merging this |
The jip tools don't conform to the
Should this PR represent the completion of |
f702715
to
b370f0e
Compare
This is ready for merging |
What is that iomatrix doing? Hard to tell by just reading it |
yeah I will have to re-write it sometime. Basically it defines a matrix of choices like Basically it does this by This is not super simple but it is fairly generalized as it only replaces the input/output. The point is you can put whatever you want into the body of your test and have your test test whatever you want to test. |
No description provided.