forked from StaPH-B/docker-builds
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.sh
More file actions
29 lines (19 loc) · 806 Bytes
/
Copy pathtest.sh
File metadata and controls
29 lines (19 loc) · 806 Bytes
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
#!/bin/bash
for i in NZ_AP018457.1 NZ_LC520274.1 NZ_CP051612.1
do
ID=`curl -X 'POST' \
'https://ccb-microbe.cs.uni-saarland.de/plsdb/plasmids/api/fasta' \
-H 'accept: application/json' \
-H 'Content-Type: multipart/form-data' \
-F "fastas=$i" | jq -r '.job_id'`
curl --output $i.gz -X 'GET' \
"https://ccb-microbe.cs.uni-saarland.de/plsdb/plasmids/api/fasta?job_id=$ID" \
-H 'accept: text/html'
gzip -d $i.gz
done
cat NZ_AP018457.1 NZ_LC520274.1 NZ_CP051612.1 > database.fastas
database_builder.pl -i database.fastas
wget http://bioinfo.ut.ee/plasmidseeker/e_coli_sakai_ref.fna
wget ftp://ftp.sra.ebi.ac.uk/vol1/fastq/ERR193/000/ERR1937840/ERR1937840.fastq.gz
gzip -d ERR1937840.fastq.gz
plasmidseeker.pl -d plasmid_db -i ERR1937840.fastq -b e_coli_sakai_ref.fna -o EC_1_results.txt