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.
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.
Comment