-
Notifications
You must be signed in to change notification settings - Fork 15
Addition of the strandMode parameter to readGAlignmentsList() #26
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
Addition of the strandMode parameter to readGAlignmentsList() #26
Conversation
|
Hi Robert, Remember that we don't want to change the default behavior of Old behavior: New behavior: The old behavior has been around forever i.e. since the introduction of the So instead of using If we want to discuss changing the default to About the description of the Should probably be modified to distinguish between the Also maybe:
Thanks, |
…ards compatibility. Update help page of readGAlignmentsList() on strandMode, including a new example
|
Hi Hervé, sure, no problem, I fully understand the situation. I've updated the PR to set |
|
Hi Robert, Thanks for the update. Will take a 2nd look soon. Won't be before next week though, as I'll be out of town starting tomorrow (Wed), chaperoning for a 3-day field trip to a remote area with no internet and no cell reception. Best, |
|
Sounds good, enjoy nature! |
|
Hi @hpages any chance you can still take a 2nd look at this and if everything looks fine, integrate it into the next release of GenomicAlignments? |
|
Done, thanks! |
Following our discussion in this other PR, this PR adds the parameter
strandModeto the functionreadGAlignmentsList(), which returns aGAlignmentsListobject with the real strand calculated according to thestrandModeargument. This fixes the call tosummarizeOverlaps(..., fragments=TRUE), so that it gives correct results and, more generally, it fixes the use offindOverlaps()withGAlignmentsListobjects obtained with this new version of thereadGAlignmentsList()function. However,findOverlaps()will still give the wrong result for any previously serializedGAlignmentsListobjects and, because thestrandModeis not stored in the object, the following functionality will differ with respect toGAlignmentPairsobjects:strandModeused to create theGAlignmentsListobject cannot be displayed through theshow()method.GAlignmentobjects is lost.strandModecannot be changed after reading the object.GAlignmentsListtoGAlignmentPairswill produce aGAlignmentPairsobject with the wrong strand, sinceGAlignmentPairsobjects store the original strand, but nowGAlignmentsListobjects will only have the real strand.