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

Remove sample name parsing which doesn't work when directories have .… #100

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ericenns
Copy link

… in the name, instead just pass sample_name along to functions requiring it.

This addresses #99

… in the name, instead just pass sample_name along to functions requiring it.
scripts/srst2.py Outdated
@@ -450,7 +450,7 @@ def read_pileup_data(pileup_file, size, prob_err, consensus_file = ""):
elif consensus_file.split(".")[-2] == "all_consensus_alleles":
consensus_type = "consensus"
with open(consensus_file, "a") as consensus_outfile:
consensus_outfile.write(">{0}.{1} {2}\n".format(allele, consensus_type, pileup_file.split(".")[1].split("__")[1]))
consensus_outfile.write(">{0}.{1} {2}\n".format(allele, consensus_type, sample_name)

Choose a reason for hiding this comment

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

typo: missing )

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