Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • dicty
    Member
    • Nov 2010
    • 28

    Velvet error

    Hi,

    I tried to run sequence assembling against a reference genome with Velvet, but got error message as below.

    [42.392250] Read 1 of length 32773, longer than limit 32767
    [42.392259] You should modify ShortLength to int32_t in globals.h (around) line 84, recompile and re-run

    How to resolve the problem? What's "modify ShortLength to int32)in in globals.h"?

    Thanks a lot!

    Dicty
  • Thorondor
    Member
    • Feb 2011
    • 69

    #2


    i think velvet thinks your "reference" is a read for assembly and therefore it's too long. If I am wrong there is a -long option for long reads.

    If I am right:
    velvet does NOT support assembling with a reference! for that you need the extension Columbus, read the Columbus manual. try again. ask again for help. ;-)

    Comment

    • dicty
      Member
      • Nov 2010
      • 28

      #3
      I just followed the Columbus manual, but got the error message. Yes, there is a -long option for long reads, but I still got the same error message.

      Comment

      • Thorondor
        Member
        • Feb 2011
        • 69

        #4
        vell ok. sry then.

        I suggest to do what the error tells you. Go to

        /bin/velvet/velvet_1.0.18/src/

        open globals.h
        and change the line:
        typedef int32_t ShortLength;
        to
        typedef int64_t ShortLength;

        compile velvet again, try again. the line is just below "#ifdef LONGSEQUENCES".
        hope this helps.

        Comment

        • dicty
          Member
          • Nov 2010
          • 28

          #5
          Thorondor,

          Thank you very much for your help. I just made the change following the error message. It's working now.

          Again, really appreciate your suggestion.

          Dicty

          Comment

          • maria.b
            Member
            • Sep 2009
            • 14

            #6
            Hi

            I have quite the same problem and I don't understand why

            [338.503721] Read 1 of length 32785, longer than limit 32767
            [338.503727] You should modify recompile with the LONGSEQUENCES option (cf. manual)

            I'm using velvet against on sequence of 33Mb, with 51,415,694 short reads of 101 bp. So I don't understand what is the "Read 1 of length 32785".

            what is the "LONGSEQUENCES option"? Is that when we declare our library with -long option ?

            Maria

            Comment

            • maria.b
              Member
              • Sep 2009
              • 14

              #7
              The answer is a title of the manual, well done Maria!

              I'm tired sorry!

              But I still do not understand why Velvet detect a read of 32785 bp. Does someone have an idea?
              Last edited by maria.b; 03-05-2012, 08:26 AM.

              Comment

              • chariko
                Member
                • Jun 2010
                • 56

                #8
                I am getting the same error:

                velveth 21 21 -reference Reference.fna -shortPaired -sam 1D14.sam

                [0.000001] Reading FastA file Reference.fna;
                [1.264527] 90 sequences found
                [1.264545] Done
                [1.264555] Reading SAM file 1D14.sam
                [12.113724] 3364950 reads found.
                [12.113741] Done
                [12.113745] Reference mapping counters
                [12.113749] Name Read mappings
                ...
                [12.114339] Reading read set file 21/Sequences;
                [12.677591] 3365040 sequences found
                [12.677667] Read 1 of length 32794, longer than limit 32767
                [12.677674] You should modify recompile with the LONGSEQUENCES option (cf. manual)

                I got my sam file by aligning paired end fastq file with bwa.

                I made Thorondorś change and it did not work (although it was not exactly the same error).


                Edited:

                I did the make 'LONGSEQUENCES=Y' and it worked.
                Last edited by chariko; 12-17-2014, 07:34 AM. Reason: solution found

                Comment

                Latest Articles

                Collapse

                • SEQadmin2
                  Nine Things a Sample Prep Scientist Thinks About Before Sequencing
                  by SEQadmin2


                  I’m not a sequencing expert. I’m a purification scientist who uses NGS to evaluate workflows my group develops. With this perspective, we think about the sample first and the NGS workflow second. The sequencer is an exceptionally honest reporter, but it can only report on what you give it, so whether you get clean, interpretable data from an NGS workflow is largely determined before you begin.


                  Here are nine questions we think about, in roughly the order they matter, before...
                  06-18-2026, 07:11 AM
                • SEQadmin2
                  From Collection to Sequencing: Why Sample Preparation and Preservation Define Sequencing Data
                  by SEQadmin2


                  Data variability is still an issue in sequencing technologies despite the advances in reproducibility and accuracy of these platforms. But the problem does not originate in the sequencing itself, but in the previous steps, before the sample reaches the sequencer.


                  The first step is collection, followed by preservation and sample preparation for analysis. Most scientists overlook those steps, but not being careful might just be skewing the experiment’s results.
                  ...
                  06-02-2026, 10:05 AM

                ad_right_rmr

                Collapse

                News

                Collapse

                Topics Statistics Last Post
                Started by SEQadmin2, 06-17-2026, 06:09 AM
                0 responses
                30 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 06-09-2026, 11:58 AM
                0 responses
                96 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 06-05-2026, 10:09 AM
                0 responses
                116 views
                0 reactions
                Last Post SEQadmin2  
                Started by SEQadmin2, 06-04-2026, 08:59 AM
                0 responses
                109 views
                0 reactions
                Last Post SEQadmin2  
                Working...