Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cliff
    Member
    • Oct 2009
    • 41

    #1

    how to make BreakDancer's bam2cfg.pl work?

    Dear All,

    I hope someone here can help me figure out how to make BreakDancer's bam2cfg.pl work. I just downloaded the latest version of BreakDancer from http://breakdancer.sourceforge.net/index.html

    From this page http://breakdancer.sourceforge.net/moreperl.html, it looks like we need download two perl modules. So, I downloaded them and put them into a library directory and added

    Code:
    use lib 'myDirectory/lib/';
    at the beginning of bam2cfg.pl.

    But after I ran bam2cfg.pl, I still got this error

    Code:
    Use of uninitialized value in printf at /myDirectory/bam2cfg.pl line 223.
    Can anyone share your experience of doing this?

    All your help will be greatly appreciated.

    -c
  • KevinLam
    Senior Member
    • Nov 2009
    • 204

    #2
    actually on my CentOS system i found that i needed 3 modules

    this are my own notes
    #Perl version requires below install using cpan as root
    cpan
    install Statistics:escriptive;
    install Math::CDF;

    install GD::Graph::histogram

    if you have root access and install using CPAN you do not need to fuss with the use lib option.


    but your error seems like it has another reason. can you print the line 223 here?

    for my version i only see
    }
    Last edited by KevinLam; 09-06-2010, 11:19 PM.
    http://kevin-gattaca.blogspot.com/

    Comment

    • natstreet
      Member
      • Nov 2009
      • 83

      #3
      I downloaded breakdancer a minute ago and tried running bam2cfg.pl and get the error message

      Code:
      Use of uninitialized value in printf at perl/bam2cfg.pl line 222
      This is line 222

      Code:
            printf "%d",$flagHgram{$rg}{all};
      I installed the three libraries required using CPAN.

      Comment

      • KevinLam
        Senior Member
        • Nov 2009
        • 204

        #4
        Hmmm I am using version
        breakdancer-1.0_2010_06_24

        but I see the same code.
        will upgrade and try tomorrow.
        $rg is the readgroup. perhaps the read group wasn't defined?
        http://kevin-gattaca.blogspot.com/

        Comment

        • cliff
          Member
          • Oct 2009
          • 41

          #5
          Originally posted by natstreet View Post
          I downloaded breakdancer a minute ago and tried running bam2cfg.pl and get the error message

          Code:
          Use of uninitialized value in printf at perl/bam2cfg.pl line 222
          This is line 222

          Code:
                printf "%d",$flagHgram{$rg}{all};
          I installed the three libraries required using CPAN.

          my error is the same. I added

          use lib 'myDirectory/lib';
          at the beginning of bam2cfg.pl so my line 223 is your line 222.

          Have you changed line 61 or 60 to


          open(BAM,"yourDirectory/samtools view -h $fbam |") || die "unable to open $fbam\n";
          I installed three modules and changed line 61 but still got the same error...

          Comment

          • Xian
            Junior Member
            • Jul 2010
            • 6

            #6
            The error message is probably due to that the readgroup hasn't shown up as the key for flagHgram. Please change line 222 to

            if(defined $flagHgram{$rg} && defined $flagHgram{$rg}{all}){
            printf "%d", $flagHgram{$rg}{all};
            }

            Basically just adding a condition to print out the histogram number.

            If the same error still appears after adding the condition, please try not using the option -g.

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