Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • nedoluzhko
    Member
    • Aug 2009
    • 22

    Corona Lite and coverage histogram

    Hello to all! I have a little expirience in bioinformatics but I want to create coverage histogram after mapping. I have: F3.unique.25.2.coverage.unique and R3.unique.25.2.coverage.unique for several runs, also I have F3.unique.csfasta.ma.25.2 and R3.unique.csfasta.ma.25.2 files, but I haven't a some ideas what I can do next Please say to me what i need to do?
  • westerman
    Rick Westerman
    • Jun 2008
    • 1104

    #2
    It depends on what tools you have available, what organism you are sequencing and what you want to accomplish. Those 'coverage' files should be in the format of one line per base with each line being the coverage count. Thus you could import these into a spreadsheet program and draw graphs. Or toss the data into a genome browser that is loaded with all sorts of good stuff about your organism. Or ... well, there are lots of possibilities. The ma (match) files can be used for SNP calling, InDel detection, or transcriptome counting. What you need to do depends on what you want to get done.

    Comment

    • drio
      Senior Member
      • Oct 2008
      • 323

      #3
      Originally posted by nedoluzhko View Post
      Hello to all! I have a little expirience in bioinformatics but I want to create coverage histogram after mapping. I have: F3.unique.25.2.coverage.unique and R3.unique.25.2.coverage.unique for several runs, also I have F3.unique.csfasta.ma.25.2 and R3.unique.csfasta.ma.25.2 files, but I haven't a some ideas what I can do next Please say to me what i need to do?
      Parse the unique.csfasta.ma.25.2. That file contains the unique mapped
      reads and the coordinates of the alignment:

      Use that to keep track of how much coverage you have per each base.
      Once you are done, dump the data in a fasta file:

      >chr1
      0
      2
      .
      .

      Each line represent the coverage you have for that genome at that position.

      Once you have that file you can display that easily. I would use either gnuplot
      or circos.

      -drd
      -drd

      Comment

      • shibujohn
        Junior Member
        • Oct 2009
        • 6

        #4
        SOLiD number of reads mapped in whole exome target locations

        Hi,
        I wrote a simple perl code to get the number of reads were mapped (SOLiD Corona_lite) in the target location. The perl code is working perfectly, but its taking long time to run with whole exome target locations (more than 5 days with 17million reads). If anybody can you help me to improve this code or easy way to find out the number of reads were mapped into the target location, then it will be great?

        I copied the example input files for the perl program,,

        *********example of whole exome target location SureSelect_All_Exon_G3362_with_names.v2.bed**********
        chr exon_start exon_end totalBase ID
        1 20138 20258 120 gb|BC048429
        1 58932 59892 960 entg|OR4F5:ccds|CCDS30547.1
        1 860956 861196 240 entg|SAMD11:ccds|CCDS2.2
        1 864267 864387 120 entg|SAMD11:ccds|CCDS2.2
        1 864490 864730 240 entg|SAMD11:ccds|CCDS2.2
        2 9016029 9016269 240 entg|MBOAT2:ccds|CCDS1660.1
        2 9061053 9061173 120 entg|MBOAT2:ccds|CCDS1660.1
        3 15591480 15591600 120 entg|HACL1:ccds|CCDS2627.1
        3 15596368 15596608 240 entg|HACL1:ccds|CCDS2627.1
        3 15599383 15599503 120 entg|HACL1:ccds|CCDS2627.1
        4 47648088 47648304 216 entg|CNGA1:ccds|CCDS43226.1
        4 47713576 47713696 120 entg|NIPAL1:ccds|CCDS3479.1
        4 47721794 47722154 360 entg|NIPAL1:ccds|CCDS3479.1
        ************************************************

        ******head of SureSelect_20091218_4_F3.unique.csfasta.ma.50.6*****************
        >1_48_337_F3,3_137353925.5
        T00120201000200020311112100111100230002023120222022
        >1_49_100_F3,2_-86591224.5
        T31202300221201300132312132112130032010203103221031
        >1_50_326_F3,20_-43849935.6
        T01311332010321311110222301111321200112222200011020
        >1_51_297_F3,17_-26283180.4
        T33003203132010100002232223221303000113022300222002
        >1_54_263_F3,5_-102923763.3
        T31120203312212121300220132222022210312001202012020
        ******************************************************

        ********targetMaps.pl**********
        #usr/bin/perl
        #AGRV[0] is the whole exome target locations file
        open(FILE,$ARGV[0]) || die "unable to open file $ARGV[0]";
        while (<FILE>)
        {
        $line = $_;
        chomp $line;
        $a[$i] =$line ;
        $i++;
        }

        open (FILE2,$ARGV[1]) || die " unable to open the file $ARGV[1]";
        #ARGV[1] is the .unique.csfasta.ma file
        $count = 0; while (<FILE2>)
        {
        $line = $_;
        chomp $line;
        #>1303_25_81_F3,12_2661894.5
        if($line =~ /^>\S+\_\S+\_\S+\_\S+\,(\S+)\_(\S+)\.\d+/)
        {
        $chr = $1;
        $pos = $2;
        if($pos =~ /^-(\d+)/){$pos = $1};
        # print "$chr\t$pos\n";
        for($j=0; $j<=$i;$j++)
        {
        $capture = $a[$j];
        @d = split (/\t/, $capture);
        if(($chr eq $d[0]) && ($pos >= $d[1] && $pos <= $d[2]))
        {
        # print "$chr\t$pos\n";
        # print "$d[0]\t$d[1]\t$d[2]\n";
        $count++;
        }
        }
        }

        }
        print "\n Total reads mapped to target locations : $count \n";
        *******************************

        Perl program run :
        perl targetMaps.pl SureSelect_All_Exon_G3362_with_names.v2.bed SureSelect_20091218_4_F3.unique.csfasta.ma.50.6

        Thanks in advance.

        Thanks,
        Shibu
        Last edited by shibujohn; 03-31-2010, 03:07 AM.

        Comment

        • quinlana
          Senior Member
          • Sep 2008
          • 119

          #5
          17million reads compared to even a 1000 feature target file yields 17 billion comparisons in your loop in the worst case. 10000 features = 170 billion comparisons, etc.

          You could implement a binning approach (see Kent et al 2002, the SAMTools paper, etc. for details). Alternatively, you could use intersectBed or coverageBed in BEDTools or use Galaxy.

          This should run in a minute or so with BEDTools.

          Comment

          • shibujohn
            Junior Member
            • Oct 2009
            • 6

            #6
            Thanks for your information. I am using the BEDTools to get this information,

            Comment

            • ilivyatan
              Junior Member
              • Aug 2010
              • 7

              #7
              Help with .csfasta.ma parsing

              Hi,
              I understand from this thread that you're pretty familiar with .csfasta.ma format.
              I'd like to convert it to a simple .bed.
              Can someone help me with that. I see how you get the position in the perl script, but how do I understand where that position is in the reference?

              Any help would be appreciated.

              Thanks!

              Comment

              Latest Articles

              Collapse

              • SEQadmin2
                Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
                by SEQadmin2



                Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
                ...
                Yesterday, 11:10 AM
              • SEQadmin2
                Cancer Drug Resistance: The Lingering Barrier to Rising Survival
                by SEQadmin2



                Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

                There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
                07-08-2026, 05:17 AM
              • GATTACAT
                Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
                by GATTACAT
                Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
                07-01-2026, 11:43 AM

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by SEQadmin2, Yesterday, 10:04 AM
              0 responses
              10 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 07-08-2026, 10:08 AM
              0 responses
              7 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 07-07-2026, 11:05 AM
              0 responses
              13 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 07-02-2026, 11:08 AM
              0 responses
              31 views
              0 reactions
              Last Post SEQadmin2  
              Working...