Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lskatz
    Junior Member
    • Sep 2010
    • 9

    #1

    How do I convert 454 ace to a regular ace?

    I have read on the BioPerl site that a 454 ace is not standardized due to its coordinate system. How can I convert it to the standard ace file?

    When I run this code either by using contig or assembly objects, I get an error.


    PHP Code:
    sub _newblerAceToAce($args){
      
    my($self,$args)=@_;
      
    my $ace454=Bio::Assembly::IO->new(-file=>$$args{ace454Path},-format=>"ace",-variant=>'454');
      
    my $ace=Bio::Assembly::IO->new(-file=>">$$args{acePath}",-format=>"ace");
      
    #while(my $contig=$ace454->next_contig){
      
    while(my $scaffold=$ace454->next_assembly){
        print 
    Dumper $scaffold;
      }
      return $
    $args{acePath};
    } 
    Code:
    Can't call method "get_consensus_sequence" on an undefined value at Bio/Assembly/IO/ace.pm line 280, <GEN0> line 93349.

    Further details:

    From the bioperl site,
    The ACE files produced by the 454 GS Assembler (Newbler) do not conform to the
    reference ACE format. In 454 ACE, the consensus sequence reported covers only
    its clear range and the start of the clear range consensus is defined as position
    1. Consequently, aligned reads in the contig can have negative positions. Be sure
    to use the '454' variant to have positive alignment positions. No attempt is made
    to construct the missing part of the consensus sequence (beyond the clear range)
    based on the underlying reads in the contig. Instead the ends of the consensus
    are simply padded with the gap character '-'.

    P.S. It'd be really awesome if there were perl tags on this forum but I couldn't find them in the help section. I'm using PHP tags as a substitute.
  • maubp
    Peter (Biopython etc)
    • Jul 2009
    • 1544

    #2
    My reading of the BioPerl text you quote suggests you just need to tell the parser it is a 454 Ace file, not a "standard" Ace file. i.e. There is no need to convert it.

    Have you asked on the BioPerl mailing list?

    Comment

    • lskatz
      Junior Member
      • Sep 2010
      • 9

      #3
      Originally posted by maubp View Post
      My reading of the BioPerl text you quote suggests you just need to tell the parser it is a 454 Ace file, not a "standard" Ace file. i.e. There is no need to convert it.

      Have you asked on the BioPerl mailing list?
      Yes I've tried telling it that it is a 454 Ace file, using both the variant syntax and the ace-454 syntax. I get the error using either one.

      I asked the mailing list at the end of last week, but no response yet.

      I think this is the case of "it should work but it doesn't for me" and if anyone has a spare minute I would appreciate a tested code snippet.

      Comment

      • maubp
        Peter (Biopython etc)
        • Jul 2009
        • 1544

        #4
        Originally posted by lskatz View Post
        I asked the mailing list at the end of last week, but no response yet.
        I don't think your message made it to the list. I didn't see it, and it isn't on the archive.


        Check you sent the message from the same email address you are subscribed with?

        If you send it again, make sure you include important information missing in your post here like the version of BioPerl, the OS, and the full error message - that usually makes it easier to help.

        Comment

        • lskatz
          Junior Member
          • Sep 2010
          • 9

          #5
          Originally posted by maubp View Post
          I don't think your message made it to the list. I didn't see it, and it isn't on the archive.


          Check you sent the message from the same email address you are subscribed with?

          If you send it again, make sure you include important information missing in your post here like the version of BioPerl, the OS, and the full error message - that usually makes it easier to help.
          It's down there at the end. If you think it's helpful I'll send again to the list with all those details.


          My OS is Ubuntu 8.
          BioPerl: I have a global version of bioperl, and I installed the latest version of Assembly::IO into a local directory.
          Code:
          $ perl -MBio::Root::Version -e 'print $Bio::Root::Version::VERSION,"\n"'
          1.006001
          $ perl -MBio::SeqIO -e 'printf "%vd\n", Bio::Assembly::IO::ace::VERSION'
          66.105.111.58.58.65.115.115.101.109.98.108.121.58.58.73.79.58.58.97.99.101.58.58.86.69.82.83.73.79.78
          Error message after running the perl code (shown in the first post):
          Code:
          Can't call method "get_consensus_sequence" on an undefined value at Bio/Assembly/IO/ace.pm line 280, <GEN0> line 93349.
          Thank you for helping!

          Comment

          • maubp
            Peter (Biopython etc)
            • Jul 2009
            • 1544

            #6
            Originally posted by lskatz View Post
            It's down there at the end. If you think it's helpful I'll send again to the list with all those details.
            http://lists.open-bio.org/pipermail/...er/034275.html
            Oh yeah - I see it now, the title surprised me, that was all.
            Originally posted by lskatz View Post
            My OS is Ubuntu 8.
            There were two Ubuntu releases in 2008, so Ubuntu 8 isn't specific.

            Ubuntu 8.04 (Hardy Heron) or Ubuntu 8.10 (Intrepid Ibex)?

            Originally posted by lskatz View Post
            BioPerl: I have a global version of bioperl, and I installed the latest version of Assembly::IO into a local directory.
            Code:
            $ perl -MBio::Root::Version -e 'print $Bio::Root::Version::VERSION,"\n"'
            1.006001
            $ perl -MBio::SeqIO -e 'printf "%vd\n", Bio::Assembly::IO::ace::VERSION'
            66.105.111.58.58.65.115.115.101.109.98.108.121.58.58.73.79.58.58.97.99.101.58.58.86.69.82.83.73.79.78
            Wow - that is a crazy version number
            Originally posted by lskatz View Post
            Error message after running the perl code (shown in the first post):
            Code:
            Can't call method "get_consensus_sequence" on an undefined value at Bio/Assembly/IO/ace.pm line 280, <GEN0> line 93349.
            Thank you for helping!
            I know very little Perl - hence suggesting asking on the BioPerl mailing list. And yes, if I were you I would reply to your previous message with the extra version information.

            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-15-2026, 10:52 AM
            0 responses
            31 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-14-2026, 05:39 AM
            0 responses
            38 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-13-2026, 09:56 AM
            0 responses
            31 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-09-2026, 11:14 AM
            0 responses
            29 views
            0 reactions
            Last Post SEQadmin2  
            Working...