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

Account for different UAS versions #59

Merged
merged 7 commits into from
Oct 20, 2023
Merged

Account for different UAS versions #59

merged 7 commits into from
Oct 20, 2023

Conversation

rnmitchell
Copy link
Contributor

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.

@rnmitchell rnmitchell marked this pull request as ready for review October 18, 2023 18:44
@rnmitchell
Copy link
Contributor Author

This is ready for review @standage

@rnmitchell rnmitchell requested a review from standage October 18, 2023 18:44
Copy link
Member

@standage standage left a 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!

Comment on lines +257 to +261
"--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))
Copy link
Member

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. 😎)

Comment on lines -234 to +262
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
Copy link
Member

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.

@rnmitchell
Copy link
Contributor Author

Ok now this is ready for review 😅

@standage
Copy link
Member

Ok now this is ready for review 😅

Boom!

@standage standage merged commit be6eca5 into master Oct 20, 2023
3 checks passed
@standage standage deleted the uasversion branch October 20, 2023 15:43
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