If you happen to see a question you know the answer to, please do chime in and help your fellow community members. We encourage our fourm members to be more involved, jump in and help out your fellow researchers with their questions. GATK forum is a community forum and helping each other with using GATK tools and research is the cornerstone of our success as a genomics research community.We appreciate your help!

Test-drive the GATK tools and Best Practices pipelines on Terra

Check out this blog post to learn how you can get started with GATK and try out the pipelines in preconfigured workspaces (with a user-friendly interface!) without having to install anything.

How to calulate base counts percentage?

KuoshengKuosheng TaiwainMember
edited July 2015 in Ask the GATK team

Hi, I using DepthOfCoverage to count base counts of my bam file and I got the information as list:

Locus Total_Depth Average_Depth_sample Depth_for_sample mane sample mane_base_counts
1:27059142-27059298:1 482 482.00 482 A:1 C:481 G:0 T:0 N:0
1:27059142-27059298:2 482 482.00 482 A:482 C:0 G:0 T:0 N:0

And I want to transfer count number to percentage such as:
1:27059142-27059298:1 482 482.00 482 A:0.2 C:99.8 G:0 T:0 N:0
1:27059142-27059298:2 482 482.00 482 A:100 C:0 G:0 T:0 N:0

Here "A:0.2" is 1/482100, "C:99.8" is 481/482100, and "A:100" is 482/482*100.

So how can I do that after DepthOfCoverage??




Sign In or Register to comment.