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

I have modified the Bowtie mapper class because the index for bowtie2… #361

Merged
merged 3 commits into from
Oct 26, 2017

Conversation

Acribbs
Copy link
Member

@Acribbs Acribbs commented Oct 26, 2017

… was not being set and was picking up the bowtie index dir

… was not being set and was picking up the bowtie index dir
Copy link
Member

@sebastian-luna-valero sebastian-luna-valero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Acribbs

Please see my comments before merging

@@ -3044,12 +3044,21 @@ def mapper(self, infiles, outfile):
nfiles -= 2
else:
raise ValueError("unexpected number of files")
index_prefix = "%(bowtie_index_dir)s/%(genome)s_cs"
if exexutable == "bowtie":

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be executable instead?

elif self.datatype == "fasta":
data_options.append("-f")
index_prefix = "%(bowtie_index_dir)s/%(genome)s"
if exexutable == "bowtie":

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be executable instead?

else:
index_prefix = "%(bowtie_index_dir)s/%(genome)s"
if exexutable == "bowtie":

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be executable instead?

Copy link
Member

@sebastian-luna-valero sebastian-luna-valero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional idea.

index_prefix = "%(bowtie_index_dir)s/%(genome)s_cs"
if exexutable == "bowtie":
index_prefix = "%(bowtie_index_dir)s/%(genome)s_cs"
else:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would even do elif executable = "bowtie2" and raise an exception in the else, as a sanity check

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I agree with you. I will make the changes.

@Acribbs
Copy link
Member Author

Acribbs commented Oct 26, 2017

@sebastian-luna-valero I have made the changes you suggest. Thanks

bug fix for ValueError
@Acribbs
Copy link
Member Author

Acribbs commented Oct 26, 2017

@sebastian-luna-valero Done, many thanks

@sebastian-luna-valero
Copy link
Member

Thanks @Acribbs

@sebastian-luna-valero sebastian-luna-valero merged commit 0ba7808 into master Oct 26, 2017
@sebastian-luna-valero sebastian-luna-valero deleted the AC-bowtie2_idx branch October 26, 2017 14:32
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.

2 participants