-
Notifications
You must be signed in to change notification settings - Fork 7
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 bowtie2 and SNAP aligners (resolves #102) #105
base: master
Are you sure you want to change the base?
Conversation
def run_bowtie2(job, | ||
read1, | ||
name1, name2, name3, name4, rev1, rev2, ref, | ||
read2=None): |
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.
Is this being called directly from the tool that generates the index files? It might be a bit cleaner to pass a dict of IDs, but if you'd prefer it this way that's fine.
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.
I am OK either way. Let me know if you have strong preferences.
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.
Actually, I've been thinking about this more (i.e., actually wiring up the tools) and you're correct. I'll be refactoring this shortly.
'-o', '-bam', '/data/sample.bam', | ||
'-t', str(job.cores)] | ||
else: | ||
|
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.
You think whitespace is free or something?
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.
I do.
if not sort: | ||
return job.fileStore.writeGlobalFile(os.path.join(work_dir, 'sample.bam')) | ||
else: | ||
return (job.fileStore.writeGlobalFile(os.path.join(work_dir, 'sample.bam')), |
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.
Minor: outermost parentheses unnecessary as more than one item is always returned as a tuple.
No description provided.