Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #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


    • #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


      • #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


        • #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


          • #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

            • seqadmin
              Best Practices for Single-Cell Sequencing Analysis
              by seqadmin



              While isolating and preparing single cells for sequencing was historically the bottleneck, recent technological advancements have shifted the challenge to data analysis. This highlights the rapidly evolving nature of single-cell sequencing. The inherent complexity of single-cell analysis has intensified with the surge in data volume and the incorporation of diverse and more complex datasets. This article explores the challenges in analysis, examines common pitfalls, offers...
              Today, 07:15 AM
            • seqadmin
              Latest Developments in Precision Medicine
              by seqadmin



              Technological advances have led to drastic improvements in the field of precision medicine, enabling more personalized approaches to treatment. This article explores four leading groups that are overcoming many of the challenges of genomic profiling and precision medicine through their innovative platforms and technologies.

              Somatic Genomics
              “We have such a tremendous amount of genetic diversity that exists within each of us, and not just between us as individuals,”...
              05-24-2024, 01:16 PM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by seqadmin, Today, 08:18 AM
            0 responses
            8 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, Today, 08:04 AM
            0 responses
            10 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 06-03-2024, 06:55 AM
            0 responses
            13 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 05-30-2024, 03:16 PM
            0 responses
            27 views
            0 likes
            Last Post seqadmin  
            Working...
            X