Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 40x reads calculation

    Attached is the original output from bedtools (zipped file) and a custom file using the awk code below in which the average reads per bait are calculated (average.txt)

    Code:
     awk '{if(len==0){last=$4;total=$6;len=1;getline}if($4!=last){printf("%s\t%f\n", last, total/len);last=$4;total=$6;len=1}else{total+=$6;len+=1}}END{printf("%s\t%f\n", last, total/len)}' output.bam.hist.txt > average.txt
    Is it possible to output the length of the bait, average # of reads, and the # calculated for 40x coverage? I am not sure how to do this.

    The awk will do the first 2 things (length of bait and average # of reads), but I am not sure how to accomplish the last part (calculate the 40x coverage). Thank you .
    Attached Files
    Last edited by cmccabe; 06-11-2015, 10:48 AM.

Latest Articles

Collapse

  • seqadmin
    Advanced Methods for the Detection of Infectious Disease
    by seqadmin




    The recent pandemic caused worldwide health, economic, and social disruptions with its reverberations still felt today. A key takeaway from this event is the need for accurate and accessible tools for detecting and tracking infectious diseases. Timely identification is essential for early intervention, managing outbreaks, and preventing their spread. This article reviews several valuable tools employed in the detection and surveillance of infectious diseases.
    ...
    Yesterday, 01:15 PM
  • seqadmin
    Strategies for Investigating the Microbiome
    by seqadmin




    Microbiome research has led to the discovery of important connections to human and environmental health. Sequencing has become a core investigational tool in microbiome research, a subject that we covered during a recent webinar. Our expert speakers shared a number of advancements including improved experimental workflows, research involving transmission dynamics, and invaluable analysis resources. This article recaps their informative presentations, offering insights...
    11-09-2023, 07:02 AM

ad_right_rmr

Collapse

News

Collapse

Topics Statistics Last Post
Started by seqadmin, Yesterday, 08:12 AM
0 responses
15 views
0 likes
Last Post seqadmin  
Started by seqadmin, 11-22-2023, 09:29 AM
1 response
53 views
0 likes
Last Post VilliamPast  
Started by seqadmin, 11-22-2023, 08:53 AM
0 responses
61 views
0 likes
Last Post seqadmin  
Started by seqadmin, 11-21-2023, 08:24 AM
0 responses
32 views
0 likes
Last Post seqadmin  
Working...
X