-
Notifications
You must be signed in to change notification settings - Fork 0
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
Account for different UAS versions #59
Conversation
This is ready for review @standage |
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.
This change was straightforward enough, and clear based on your description. Looks good!
"--kintelligence", | ||
] | ||
lusSTR.cli.main(lusSTR.cli.get_parser().parse_args(arglist)) | ||
all_arglist = ["snps", "all", "-w", str(tmp_path)] | ||
lusSTR.cli.main(lusSTR.cli.get_parser().parse_args(all_arglist)) |
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.
It looks like this test isn't checking the output in any way. It's just making sure the code runs without exploding? (I call these "smoke tests" and use them frequently. 😎)
forward_strand_allele = check_rev_comp(uas_allele, snpid, metadata) | ||
if ver == "2.0": | ||
forward_strand_allele = check_rev_comp(uas_allele, snpid, metadata) | ||
else: | ||
forward_strand_allele = uas_allele |
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.
That makes sense based on your description.
Ok now this is ready for review 😅 |
Boom! |
It came to my attention that newer versions of the UAS software (at least v2.5) have a different format for the Sample Report than earlier versions. Further, the newest version no longer reports some SNPs on the reverse strand but all SNPs are reported on the forward strand. This PR will address these changes in order to be able to process any version of the UAS Sample Report.