File: GenerateRayCommand.sh

package info (click to toggle)
ray 2.3.1-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,008 kB
  • sloc: cpp: 49,973; sh: 339; makefile: 281; python: 168
file content (32 lines) | stat: -rw-r--r-- 673 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
echo "#Generated with $0 on $(date)"
echo "mpirun -np 30 /path/to/Ray  \\"

for i in $(ls *.fast*|grep _1.fastq)
do
	echo "-p \\"
	echo "   $(pwd)/$i \\"
	echo "   $(pwd)/$(echo $i|sed 's/_1\.fast/_2.fast/g') \\"
done


# BGI naming scheme in assemblathon 2
for i in $(ls *.fast*|grep _1.fq.fastq)
do
	echo "-p \\"
	echo "   $(pwd)/$i \\"
	echo "   $(pwd)/$(echo $i|sed 's/_1\.fq.fast/_2.fq.fast/g') \\"
done



# assemblathon format
for i in $(ls *.fast*|grep "\.1\.fastq")
do
	echo "-p \\"
	echo "   $(pwd)/$i \\"
	echo "   $(pwd)/$(echo $i|sed 's/\.1\.fast/.2.fast/g') \\"
done


output=$((ls *.fast*;date)|md5sum|awk '{print $1}')
echo "-o $output | tee $output"".log"