Skip to content

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

Open
ericenns wants to merge 2 commits into
katholt:masterfrom
phac-nml:fix_sample_name_parsing
Open

Remove sample name parsing which doesn't work when directories have .…#100
ericenns wants to merge 2 commits into
katholt:masterfrom
phac-nml:fix_sample_name_parsing

Conversation

@ericenns
Copy link
Copy Markdown

… 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.
Comment thread scripts/srst2.py Outdated
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)
Copy link
Copy Markdown

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