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

zygosity flag incorrectly printed for het deletions #4

Open
delocalizer opened this issue Apr 26, 2013 · 0 comments
Open

zygosity flag incorrectly printed for het deletions #4

delocalizer opened this issue Apr 26, 2013 · 0 comments

Comments

@delocalizer
Copy link

delocalizer commented Apr 26, 2013

Trivial fix:

diff --git a/wgsim.c b/wgsim.c
index 5c82192..55b8daf 100644
--- a/wgsim.c
+++ b/wgsim.c
@@ -193,14 +193,14 @@ void wgsim_print_mutref(const char *name, const kseq_t *ks, mutseq_t *hap1, muts
                                                printf("%s\t%d\t", name, i+1);
                                                for (j = i; j < ks->seq.l && hap1->s[j] != hap2->s[j] && (hap1->s[j]&mutmsk) == DELETE; ++j)
                                                        putchar("ACGTN"[nst_nt4_table[(int)ks->seq.s[j]]]);
-                                               printf("\t-\t-\n");
-                                               printf("\t-\t+\n");
                                      }
                              } else if ((c[2]&mutmsk) == DELETE) {
                                      if (i >= j) {
                                              printf("%s\t%d\t", name, i+1);
                                              for (j = i; j < ks->seq.l && hap1->s[j] != hap2->s[j] && (hap2->s[j]&mutmsk) == DELETE; ++j)
                                                      putchar("ACGTN"[nst_nt4_table[(int)ks->seq.s[j]]]);
-                                               printf("\t-\t-\n");
-                                               printf("\t-\t+\n");
                                      }
                              } else if (((c[1] & mutmsk) >> 12) <= 4 && ((c[1] & mutmsk) >> 12) > 0) { // ins1
                                      printf("%s\t%d\t-\t", name, i+1);
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

1 participant