Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zhacker
    Member
    • May 2011
    • 12

    #1

    problem with novoalign RG option

    Hello everyone,

    I am trying to use novoalign for 108 illumina .fastq paired-end files (54 pairs) and for that I wrote a perl script that pairs up the files and runs novaalign on each pair. the perl line that generates the novoalign call is:


    $rgoption = '$\'@RG\tID:'.$file1.'\tPL:illumina\tPU:illumina\tLB:tumour\tSM:'.$temp.'\'';
    @system_args = ("novoalign", "-d", $REF, "-F", "STDFQ", "-f", $file1, $file2, "-r", "Random", "-K", $temp, "-o", "SAM", $rgoption, $temp1, ">" , $temp2);


    the actual call generated by running this line becomes:


    novoalign -d /scratch/data/reference_genomes/human/human_g1k_v37.fasta -F STDFQ -f 0099758_1_1sanger.fastq 0099758_1_2sanger.fastq -r Random -K 0099758_1_1sanger -o SAM $'@RG\tID:0099758_1_1sanger.fastq\tPL:illumina\tPU:illumina\tLB:tumour\tSM:0099758_1_1sanger' 0099758_1_1sanger.fastqnovo.stats > 0099758_1_1sanger.fastqnovo.raw.sam


    Giving me the following error:

    Problem processing command line arguments: Expecting @RG record with -o SAM option. at '$'@RG\tID:0099758_1_1sanger.fastq\tPL:illumina\tPU:illumina\tLB:tumour\tSM:0099758_1_1sanger''

    It's not liking my RG record...the problem is that if I don't include it in my command, it asks for it saying that required RG record for -o SAM

    Do you have any idea what I am doing wrong? I would highly appreciate your input. Thank you in advance.
  • zhacker
    Member
    • May 2011
    • 12

    #2
    I just noticed that I am missing > before my .stats file, it's still giving me the same error though......your help will save my brain from exploding, Thank YOu!!!!

    Comment

    • zee
      NGS specialist
      • Apr 2008
      • 249

      #3
      Hi Zhacker,

      I think you should place your SAM RG header in double quotes `""` rather than single quotes. i.e.

      Code:
      novoalign -d /scratch/data/reference_genomes/human/human_g1k_v37.fasta \
      -F STDFQ -f 0099758_1_1sanger.fastq 0099758_1_2sanger.fastq \
      -r Random -K 0099758_1_1sanger \
       -o SAM $"@RG\tID:0099758_1_1sanger.fastq\tPL:illumina\tPU:illumina\tLB:tumour\tSM:0099758_1_1sanger" 
      2> 0099758_1_1sanger.fastqnovo.stats > 0099758_1_1sanger.fastqnovo.raw.sam

      Comment

      • zhacker
        Member
        • May 2011
        • 12

        #4
        Thank you for the reply zee and sorry about not getting back earlier. After scratching my head for a while I discovered that the problem's not in the novoalign command itself but it's in my perl script. I am using perl's system() to call novoalign which shouldn't be done because system() can only be used when you're not returning anything - not the case for my command. Thank you very much!

        Comment

        Latest Articles

        Collapse

        • kinpict.com
          Reply to 16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
          by kinpict.com
          The part about this topic feels surprisingly grounded, and the details on the page is the bit that made me slow down. I’d keep <a href="https://kinpict.com/">ai family photo generator</a> bookmarked for later.
          Yesterday, 06:37 PM
        • SEQadmin2
          16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
          by SEQadmin2





          NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification,...
          10-30-2026, 06:46 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by SEQadmin2, 11-12-2026, 07:59 AM
        0 responses
        29 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 11-05-2026, 09:25 AM
        0 responses
        36 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 11-03-2026, 11:54 AM
        2 responses
        60 views
        0 reactions
        Last Post kinpict.com  
        Started by SEQadmin2, 10-28-2026, 09:57 AM
        0 responses
        176 views
        0 reactions
        Last Post SEQadmin2  
        Working...