Unconfigured Ad

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

    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
              Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
              by SEQadmin2


              Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

              The systematic characterization of the human proteome has
              ...
              07-20-2026, 11:48 AM
            • SEQadmin2
              Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
              by SEQadmin2



              Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
              ...
              07-09-2026, 11:10 AM
            • SEQadmin2
              Cancer Drug Resistance: The Lingering Barrier to Rising Survival
              by SEQadmin2



              Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

              There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
              07-08-2026, 05:17 AM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by SEQadmin2, 07-24-2026, 12:17 PM
            0 responses
            18 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 07-23-2026, 11:41 AM
            0 responses
            18 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 07-20-2026, 11:10 AM
            0 responses
            24 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 07-13-2026, 10:26 AM
            0 responses
            37 views
            0 reactions
            Last Post SEQadmin2  
            Working...