-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathget_sanger_sequences.sh
executable file
·39 lines (32 loc) · 1.1 KB
/
get_sanger_sequences.sh
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
33
34
35
36
37
38
39
#!/bin/bash
## create directories for genome files
# mkdir -p ${1}
#mkdir -p ${1}/reads/
# # get all the relevant files for the strains
# for f in $(<${1}/${1}_lanes.txt)
# do
# echo $f
# pf assembly --type lane --id $f --symlink ${1}/
# pf annotation --type lane --id $f --filetype gff --symlink ${1}/
# done
for f in $(<${1}/${1}_samples.txt)
do
#echo $f
#pf assembly --type lane --id $f --symlink ${1}/
#pf annotation --type lane --id $f --filetype gff --symlink ${1}/
#pf data --type lane --id $f --filetype fastq --symlink ${1}/reads/
pf qc -t sample -i $f
done
exit
## to get all the files for a complete study
study=ecoli_mobilome_1_2
study=ecoli_mobilome_3_4
study=ecoli_mobilome_5_6_new
study=ecoli_mobilome_7
pf status -t study -i $study > status_${study}
pf annotation -t study -i $study --filetype gff --symlink .
pf assembly -t study -i $study --symlink .
pf data -t study -i $study --filetype fastq --symlink .
## to run
## job_name=bsac
## bsub -J ${job_name} -G team216 -o ${job_name}.o -e ${job_name}.e -R"select[mem>500] rusage[mem=500]" -M500 bash get_sanger_sequences.sh ${job_name}