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

Add Forward/Reverse mapping counts #54

Open
25shmeckles opened this issue Jul 8, 2022 · 2 comments
Open

Add Forward/Reverse mapping counts #54

25shmeckles opened this issue Jul 8, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@25shmeckles
Copy link

25shmeckles commented Jul 8, 2022

samtools mpileup reports forward and reverse mapping counts using uppercase letters (ATCGN) for F-mappings and lowercase (atcgn) for R.
Indels have also separate symbols to specify if the event was found on an F or R mapping.

Right now, perbase outputs only one column per base, so it is not possible to determine the mapping orientation.
I suggest adding an optional param to explicitly get a more complete report mapping counts on both strands. This is extremely useful to deal with strand biases in the sequencing data.

Example current output (16 T mapped, no orientation info):

REF     POS     REF_BASE    DEPTH   A       C       G       T       N       INS     DEL
chr1    709636  T           16      0       0       0       16      0       0       0

Example suggested output (10 F mapped (T) and 6 R mapped (t)):

REF     POS     REF_BASE    DEPTH   A       a       C       c       G       g       T       t       N       n       INS     DEL     ins     del
chr1    709636  T           16      0       0       0       0       0       0       10      6       0       0       0       0       0       0
@25shmeckles 25shmeckles changed the title Add Forward, Reverse mapping counts Add Forward/Reverse mapping counts Jul 8, 2022
@sstadick
Copy link
Owner

@25shmeckles - I'm sorry I never replied to this / only just saw it! This is a very cool idea that I would be on-board with. I'm not sure when I'll get a chance to take a crack at it, but if you're still interested in / wanted to make a PR I'd be happy to point you to a good starting point in the code.

@sstadick sstadick added the enhancement New feature or request label Aug 30, 2022
@25shmeckles
Copy link
Author

25shmeckles commented Aug 31, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants