Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • luisczul
    Member
    • May 2009
    • 10

    #1

    is my reference too big for maq?

    I am trying to convert my reference fasta file to bfa using maq with the command fasta2bfa.

    I am having a segmentation fault.

    My script has worked before with other old references but I just downloaded the new one from Ensmble and this one it doesn't work.

    I have noticed that it is a little bigger than usual.

    My reference is 11 Gb.

    Could it be that Maq cannot handle the file size or should I run my program with a bigger ram memory?
  • allo
    Member
    • Jul 2009
    • 15

    #2
    Run the program "fasta2bfa" and on another terminal check the memory usage every 15 - 20 seconds with the command: free -m (in megabytes) or free -g (in gigabytes) if the memory usage approaches the total Ram that your machine has just before the segmentation fault, That's your problem...

    Comment

    • luisczul
      Member
      • May 2009
      • 10

      #3
      According to my network administrator, I am using a node in the cluster that has 32 gigs of ram.

      So I find that the cluster is not the problem, it is more like a C++ limitation in the memory pointing.

      What other tests do you think i can run?

      I will try your post.

      I did though a little experiment splitting the file and 7 gigs is also too big. :S

      Comment

      • luisczul
        Member
        • May 2009
        • 10

        #4
        Hello,

        apparently is not a memory problem, since I checked for the memory resources just before the program crashes and there is a lot free.

        The program crashes just after line 166 in the fasta2bfa.c source file.

        Can somebody help me out?

        Comment

        • simonandrews
          Simon Andrews
          • May 2009
          • 870

          #5
          Originally posted by luisczul View Post
          I am trying to convert my reference fasta file to bfa using maq with the command fasta2bfa.

          My script has worked before with other old references but I just downloaded the new one from Ensmble and this one it doesn't work.
          In another forum there was a thread about someone having problems indexing the latest human assembly with blat. The problem was that the length of the new haplotype chromosomes pushed the overall genome length above what could be handled by a 32 bit pointer. There may be a similar issue with maq.

          Since the extra haplotype sequences are mostly poly-N (to keep the positions the same as the originals) you could either delete them altogether, or remove the Ns and see if things start working again.

          Comment

          • luisczul
            Member
            • May 2009
            • 10

            #6
            Solved

            static void ma_fasta2csfa_core(FILE *fpout, FILE *fpin)
            {
            seq_t seq;
            int i, c1, c2, c;
            char name[256], comment[4096];
            INIT_SEQ(seq);

            So finally the problem got solved.

            The reference file that I was downloading had a very big header file information.

            As you can see in the code i pasted from maq, there was a limitation of char name[256]. When the header went over that then a segmentation fault was created.

            Cheers hope this helps somebody.

            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
            31 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-22-2026, 10:48 AM
            0 responses
            22 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-15-2026, 10:52 AM
            0 responses
            39 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-14-2026, 05:39 AM
            0 responses
            45 views
            0 reactions
            Last Post SEQadmin2  
            Working...