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

Glitch or Feature? Either methods do not represent the true distribution of an allele when gaps are involved #29

Open
moa4020 opened this issue Mar 14, 2023 · 3 comments

Comments

@moa4020
Copy link

moa4020 commented Mar 14, 2023

Hello! I use ggseqlogo to produce logoplots for HIV variants. I recently have come across an inconsistency that I have questions about.

Here is an explanation to the issue I have: In Donor#X, a Gap in site 26 is not reflected on the logoplot. ggseqlogo shows a gap in that site only if all the sequences in that position have a gap. Or else it gives a 100% probability to an allele even if it's present in just one sequence. This was seen in both

Here is an Image I have attached of the logoplot and the consensus matrix. Please see sites 26 and 27.

The A at 26 is full sized even though it is present only in 1 sequence out of 18 total sequences. The rest of them have a "-".

Similarly, I expected site 27s G to be a little smaller due to the fact that it was seen only in 17/18 sequences.

I got the same results even with the "Bits" method.

Screenshot 2023-03-14 at 2 03 10 AM

methods.
@omarwagih
Copy link
Owner

Can you share example data for me to be able to fully reproduce?

@moa4020
Copy link
Author

moa4020 commented Mar 14, 2023

OUT.zip

I have included the aligned fasta sequences and my consensus matrix and logolot for reference.

@moa4020
Copy link
Author

moa4020 commented Mar 28, 2023

Hello! Just following up to see if there are any insights to this issue.

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

No branches or pull requests

2 participants