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

whatshap stats - format printout #399

Merged
merged 1 commit into from Sep 7, 2022
Merged

whatshap stats - format printout #399

merged 1 commit into from Sep 7, 2022

Conversation

pontushojer
Copy link
Collaborator

Small change in the case we have large stats valyes. Before these would be shifted if the are longer than 8 digits. Now every value is shifted along to keep thing looking nice. Look at Sum of lengths in the example below.

Before

---------------- Chromosome chr1 ----------------
     Variants in VCF:   354236
        Heterozygous:   208485 (  176461 SNVs)
              Phased:   204892 (  175025 SNVs)
            Unphased:     3564 (not considered below)
          Singletons:       29 (not considered below)
              Blocks:      151

Block sizes (no. of variants)
   Median block size:      247.00 variants
  Average block size:     1356.90 variants
       Largest block:    13975    variants
      Smallest block:        2    variants

Block lengths (basepairs)
      Sum of lengths: 219115273    bp
 Median block length:   130575.00 bp
Average block length:  1451094.52 bp
       Longest block: 14019933    bp
      Shortest block:        2    bp
          Block NG50:  5009929    bp

After

---------------- Chromosome chr1 ----------------
     Variants in VCF:    354236
        Heterozygous:    208485 (   176461 SNVs)
              Phased:    204892 (   175025 SNVs)
            Unphased:      3564 (not considered below)
          Singletons:        29 (not considered below)
              Blocks:       151

Block sizes (no. of variants)
   Median block size:       247.00 variants
  Average block size:      1356.90 variants
       Largest block:     13975    variants
      Smallest block:         2    variants

Block lengths (basepairs)
      Sum of lengths: 219115273    bp
 Median block length:    130575.00 bp
Average block length:   1451094.52 bp
       Longest block:  14019933    bp
      Shortest block:         2    bp
          Block NG50:   5009929    bp

@marcelm
Copy link
Contributor

marcelm commented Sep 7, 2022

This is obviously an improvement.

@marcelm marcelm merged commit 56263e6 into main Sep 7, 2022
@marcelm marcelm deleted the format-printout branch September 7, 2022 12:15
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

Successfully merging this pull request may close these issues.

None yet

2 participants