-
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
added pydoit example stuff #5
base: master
Are you sure you want to change the base?
Conversation
Basically, this PR includes:
|
def task_index_ref(): | ||
return { 'file_dep' : [opts.ref], | ||
'actions' : ['bwa index %(dependencies)'], | ||
'targets' : [opts.ref.fai] } |
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.
This seems like it should be opts.ref + '.fai'
? Or is pydoit super smart?
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.
F
is a class that I made which extends str
and uses that syntax for adding extensions. It's not pydoit's thing.
F("foo").red == F("foo.red") == "foo.red"
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.
ahh, ok I missed that. For some reason was thinking opts.ref was just a string
I am not sure how to do "dependency which might not exist" yet, (i.e. |
|
||
def gen_cutdapt(fqs): | ||
func = cutadapt_paired if len(fqs) > 1 else cutadapt_up | ||
return { 'targets' : map(_.cutadapt, fqs), |
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.
What does the _
stand for in _.cutadapt
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.
n/m I see now
No description provided.