echo -n "all:" > makefile && ls *.rmdup.bam | while read line; do echo -en "$(basename $line ".bam") ";done >> makefile && echo "" >>makefile;
ls *.rmdup.bam | while read line; do echo -e "$(basename $line ".bam"):\n\tcufflinks -o $(basename $line ".bam") -G /mnt/dfc_data1/zhoujj/data/lncfuntk_data/hg19/refGene.gtf -p 12 $line > $line.log 2>$line.log && touch $(basename $line ".bam").finished";done >> makefile;
网友评论