Using parallel with Mem
2.9 years ago
@always_learning8364
Hi All.
We are trying to us MEM with GNU parallel with paired fastQ files, but its saying that can't accept more then one file. What could be the possible reasons? What if we concatante both file as single one and then use that with mem? Does Mem command support multi threading too ?
Thanks
Syed
mem
BWA
Parallel
• 3.2k views
2.9 years ago
@Korsocius14475
There is snytax for parallel with bwa mem, but I can't load ID and SM from INPUT. Do you know, where could be a problem?
ls *R1_001.fastq | parallel 'bwa mem -k 19 -A 1 -B 4 -O 6 -L 5 -R '@RG\tID:'{.}'\tSM:'{.}'\tLB:'Trusight_custom_amplicon_CARR'\tPL:'ILLUMINA'\tPI:150' $REFERENCE {} {= s/_R1_001/_R2_001/ =} > {= s/_R1_001.fastq/.sam/ =}'
Login before adding your answer.
show us the cmd-line please.
this exact commant we are using:
${bwa} mem -t 8 -R \\"@RG\\tID:${ursId}_pairend\\tSM:${sampleName}\\tLB:${libraryId}\\tPL:${platform}\\" ${refGenomeFastaFile} \${seqReadsDir}/${ursId}_pairend1.fastq.gz ${seqReadsDir}/${ursId}_pairend2.fastq.gz
but how do you invoke parallel ?
Sorry as I didn't able to post complete command. Here it goes as we are trying to convert SAM files to BAM files at same time only