Thanks a lot for answering ! There is no extra space between sample name in real code .I test STAR with single file , I type "ps" ,it look like this :
PID TTY TIME CMD
29037 pts/1 00:00:00 bash
29088 pts/1 00:00:00 ps
Looking like normal, however, when I type "ps -ef | grep usr_name" .it shows :
28999 28935 0 18:33 pts/0 00:00:00 bash 1_STAR_test.sh
29007 28999 99 18:33 pts/0 00:23:18 STAR --runMode alignReads --runThreadN 10 --genomeDir /home/zhuyl/Genome/susScr11_STAR_update --readFilesIn /safedisk2/lingziqi/phaseI/2019-5-13-36individual/BMX4_Liver_input/BMX4_Liver_input_R1.fq.gz --readFilesCommand zcat --outSAMstrandField intronMotif --outFileNamePrefix /safedisk/09_Encode/CHIP_Seq/PhaseI/BWA_bam/2019-5-13-36individual_lingziqi/6_wasp_bam/BMX4_Liver_input_wasp --outSAMtype BAM Unsorted --varVCFfile /safedisk/09_Encode/CHIP_Seq/PhaseI/BWA_bam/2019-5-13-36individual_lingziqi/platypus_vcf/BMX4_Liver_input.vcf --waspOutputMode SAMtag --outSAMattributes vA vG
29010 29007 0 18:33 pts/0 00:00:00 [sh] <defunct>`
I guess maybe it is not about loop , it just STAR can't exit normally when it get job done ? Have you ever met this issue before ?
See my suggestion for a simple parallelization script (for
bowtie2but I think you'll get the idea) A: perl script for BWA-mem on multiple different filesThanks ! It seem useful , I will try in my code .
do
${OUT}/and${OUTPUT}/exist before you run STAR?How do you define $OUT and $OUTPUT?
It just like this
These two directory represent results of two different step ,${OUT} is where I store my STAR result. By the way ,I test STAR with one single file, "defunct"still happen.