Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vplagnol
    Member
    • Sep 2008
    • 13

    #1

    mpileup of BAM files through ftp

    Dear SEQanswers users,

    I am trying to work out case-control association tests based on the raw data rather than the genotype calls. The idea is to use the samtools mpileup feature to stream 1,000 genomes indexed BAM files from the web to create vcf files that are combined for cases and controls. We face 2 difficulties:

    1- we are limited by the nb of ftp connections so that the work cannot be made fully parallel (we are thinking one gene per job but it simply does not work).

    2- Independently of the ftp issue, mpileup is very slow. Doing a genome-wide case control test is incredibly time consuming owing to the computations behind mpileup.

    Have others considered the same problem, and have solutions been found? Is basing the test on the published genotype calls really the only option? We are keen to go back to the BAM files if possible but it seems challenging.

    Thank you in advance for your help,

    Vincent
  • lh3
    Senior Member
    • Feb 2008
    • 686

    #2
    1. you should download the BAMs. You probably cannot open hundreds of BAMs via ftp at the same time.

    2. Disabling indel calling will help. However, doing association test, you have to call SNPs in the first place. You should know that this alone takes hundreds to thousands CPU days for every group doing 1000g SNP calling. Make sure you have a dedicate cluster.

    Comment

    • vplagnol
      Member
      • Sep 2008
      • 13

      #3
      Thanks.

      This isn't completely satisfying though because it requires a local copy of gigantic files (how many Tb for the whole 1,000G data? Are we really expected to have this available locally in every university?). I was hoping that the whole network based approach would deliver but if it does not work then there is little one can do I suppose.

      And I appreciate the SNP calling takes time, but it seems overly long. But again, my intuition is probably flawed, and there is probably a good reason why it takes so long. But for SNPs... it's essentially just counting reference vs non reference allele, I am still surprised by the time these computations take.

      Comment

      • colindaven
        Senior Member
        • Oct 2008
        • 417

        #4
        Vincent, I think it's a little unfair to complain on the one hand about the vast amounts of data and the difficulty of storing it, and then on the other about the time taken by SNP calling algorithms to wade through said massive amounts of data !
        In my opinion these are good, well optimised algorithms which do take a lot of factors into account, and do not just simply test reference vs non ref reads.

        Perhaps it might be very much more tractable to use the genotype calls done by the 1000 genomes team after all.

        Good luck with your ambitious project!

        Comment

        • lh3
          Senior Member
          • Feb 2008
          • 686

          #5
          You may dramatically speed up by disabling indel calling and BAQ computation. BAQ is necessary to get good calls especially for low-coverage samples, but for association you may not care too much. But even so, tens of CPU days is the minimum.

          As to data transfer, even if you keep a constant 5MB/sec downloading speed, downloading 10TB data will take about a month, which cannot be parallelized. Using aspera should be times faster. In addition, probably you are not allowed to open hundreds of BAMs directly from NCBI FTP. Downloading the file to your local disk is the only sensible solution for now.

          If you want to process terabytes of data, you must have enough computing resources and skills in the first place. This is the deal. Another option is to try cloud computing. Someone told me that the pilot alignments are available at EC2.

          Comment

          • vplagnol
            Member
            • Sep 2008
            • 13

            #6
            Thank you all.

            Colin: I am sure the format is efficient, I did not mean otherwise. And yes I can work with the VCF calls, that's 99% fine I suppose. And if things look odd I can always go back to the proper full computation on a local basis and see what effect it may have.

            lh3: yes computing resources are required. I was hoping, when I started looking into it, that the network based interface would solve many of the issues but apparently I was too optimistic. I guess that if one really wants the raw data I will need to purchase large amount of cheap storage to store it all.

            This thread is useful for me to set my expectations at the right level, and be sure that I was not missing something obvious. So thank you again.

            Comment

            • lh3
              Senior Member
              • Feb 2008
              • 686

              #7
              The network interface is mainly useful when

              1) you want to visualize alignments

              2) you want to download the sequences in a few small regions or related to a few genes

              This functionality does not mean to be used to process terabytes of data in this way.

              Comment

              Latest Articles

              Collapse

              • SEQadmin2
                Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
                by SEQadmin2



                Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

                Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
                ...
                10-14-2026, 09:55 AM
              • SEQadmin2
                New Genomics Technologies Take Aim at Long-Standing Limits
                by SEQadmin2


                Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

                We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
                ...
                09-28-2026, 10:25 AM

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by SEQadmin2, 10-22-2026, 11:13 AM
              0 responses
              55 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 10-22-2026, 10:48 AM
              0 responses
              40 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 10-15-2026, 10:52 AM
              0 responses
              46 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 10-14-2026, 05:39 AM
              0 responses
              46 views
              0 reactions
              Last Post SEQadmin2  
              Working...