Skip to content

Conversation

@averagehat
Copy link
Contributor

No description provided.

@averagehat
Copy link
Contributor Author

Basically, this PR includes:

def task_index_ref():
return { 'file_dep' : [opts.ref],
'actions' : ['bwa index %(dependencies)'],
'targets' : [opts.ref.fai] }
Copy link
Member

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?

Copy link
Contributor Author

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"

Copy link
Member

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

@averagehat
Copy link
Contributor Author

I am not sure how to do "dependency which might not exist" yet, (i.e. unpaired.bam), other than using 'task_dep' which doesn't seem right
also creating an empty file would work but not optimal


def gen_cutdapt(fqs):
func = cutadapt_paired if len(fqs) > 1 else cutadapt_up
return { 'targets' : map(_.cutadapt, fqs),
Copy link
Member

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

Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants