-
Notifications
You must be signed in to change notification settings - Fork 9
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
added getCigar method to record #126
base: master
Are you sure you want to change the base?
Conversation
nice work! it may be worth adding some testing to make sure this matches samtools decoding. we have our own "read features to cigar string" in jbrowse that uses code created by @jkbonfield that has some corner case handling that i'm not sure actually come up in practice(?) |
thank you for reviewing! |
in the absense of 'synthesizing' read features from thin air, one way to test is to use samtools on a small test file (we have some test files in test/data/ folder) to create a list of CIGAR strings, and then run cram-js to generate CIGAR strings on the same file, and check that they match up |
just wanted to check back to see if you were interested in adding tests for this? |
Yes, I am interested, sorry for holding it so long. |
Please add automated test code similar to the tests that are already in the
repository. Run `npm test` or `yarn test` to run the tests and see their results.
…On Fri, Jun 30, 2023 at 9:36 AM wilsonGen ***@***.***> wrote:
Yes, I am interested, sorry for holding it so long.
Just want to ask, should I create a test script or should I just run it
and compare the results myself?
—
Reply to this email directly, view it on GitHub
<#126 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAASAFIBF5M7PJOAQ5LWALDXN36ATANCNFSM6AAAAAAYSKFEJA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Thank you! I will try to add the test next week! |
Just improved the getCigar() so that it handles hard clip as well, |
added getCigar method to CramRecord,
for example :
record.getCigar() // "50S100M"