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
              Current Approaches to Protein Sequencing
              by seqadmin


              Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
              04-04-2024, 04:25 PM
            • seqadmin
              Strategies for Sequencing Challenging Samples
              by seqadmin


              Despite advancements in sequencing platforms and related sample preparation technologies, certain sample types continue to present significant challenges that can compromise sequencing results. Pedro Echave, Senior Manager of the Global Business Segment at Revvity, explained that the success of a sequencing experiment ultimately depends on the amount and integrity of the nucleic acid template (RNA or DNA) obtained from a sample. “The better the quality of the nucleic acid isolated...
              03-22-2024, 06:39 AM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by seqadmin, 04-11-2024, 12:08 PM
            0 responses
            30 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-10-2024, 10:19 PM
            0 responses
            32 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-10-2024, 09:21 AM
            0 responses
            28 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-04-2024, 09:00 AM
            0 responses
            53 views
            0 likes
            Last Post seqadmin  
            Working...
            X