Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yksikaksi
    Member
    • Dec 2009
    • 20

    #1

    Unmatched read name error when converting csfasta to fastq with solid2fastq.pl

    I'm encountered with "unmatched read name" error when I converting paired SOLiD csfasta files to fastq by using solid2fastq.pl from bwa-0.5.9

    The error message:
    ================================
    ** unmatched read name: '>4_26_52_F3
    ' != '>4_26_52_F3
    '
    ================================

    I read there was suggestion to modify the script as mentioned by

    1. drio's post in PE SOLiD reads alignment by bwa thread.

    2. javijevi's post in bwa samse segmentation fault thread.

    I tired the modification and the "unmatched read name" error remained.

    Could anyone shares your solution for this?

    Thank you very much.
  • Richard Finney
    Senior Member
    • Feb 2009
    • 701

    #2
    It's dieing in this routine:
    Code:
    [FONT="Courier New"]sub read1 {
      my $i = shift(@_);
      my $j = ($i-1)<<1;
      my ($key, $seq);
      my ($fhs, $fhq) = ($fhr[$j], $fhr[$j|1]);
      while (<$fhs>) {
            my $t = <$fhq>;
            if (/^>(\d+)_(\d+)_(\d+)_[FR]3/) {
              $key = sprintf("%.4d_%.4d_%.4d", $1, $2, $3); # this line could be improved on 64-bit machines
              die(qq/** unmatched read name: '$_' != '$_'\n/) unless ($_ eq $t);
              my $name = "$pre:$1_$2_$3/$i";
              $_ = substr(<$fhs>, 2);
              tr/0123./ACGTN/;
              my $s = $_;
              $_ = <$fhq>;
              s/-1\b/0/eg;
              s/^(\d+)\s*//;
              s/(\d+)\s*/chr($1+33)/eg;
              $seq = qq/\@$name\n$s+\n$_\n/;
              last;
            }
      }
      return defined($seq)? ($key, $seq) : ();
    }[/FONT]
    Things you might try are modifying this to print out $t and the line number. Please do it on a copy of solid2fastq.pl so you keep the original. You can look at that line number in both files to see what's up. I'm not really sure what's up with that extra carriage return(s) in the error message.
    Last edited by Richard Finney; 11-06-2011, 08:51 AM. Reason: format

    Comment

    • yksikaksi
      Member
      • Dec 2009
      • 20

      #3
      Thanks Richard Finney.

      I came across to this piece of modified solid2fastq.pl script by bgulko in bwa color-space index thread.

      I did minor changed as suggested by drio's post in PE SOLiD reads alignment by bwa thread for pairend reads on this modified solid2fasta.pl script.

      Without that minor changed on that script, it only converted the F3 csfasta to single end reads fastq.

      So far, the script worked with no complaint. I got read1.fastq and read2.fastq after the converting task done. However, I'm not yet carry out the mapping task. I will do it later.

      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, Yesterday, 11:13 AM
      0 responses
      19 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, Yesterday, 10:48 AM
      0 responses
      18 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...