Skip to content

Commit

Permalink
Instructions on how to download, clean and index Resfinder
Browse files Browse the repository at this point in the history
  • Loading branch information
Torsten Seemann committed Feb 7, 2015
1 parent 4eb2708 commit cf69620
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions db/README
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,19 @@
# Data based on Resfinder
# http://cge.cbs.dtu.dk/services/data.php

RM="rm -fv --"
DB=resfinder
TITLE="Abricate / ResFinder database"
#RM="rm -fv --"

$RM $DB.n??
DB="resfinder"
TITLE="Abricate Antiobiotic Resistance database (filtered ResFinder)"

#cat *.fsa | sed 's/_.*$//' > $DB.tmp
cat *.fsa > $DB.tmp
#$RM $DB.n??

nrdb -o $DB $DB.tmp

$RM $DB.tmp

#formatdb -i $DB -p F -t "$TITLE"
makeblastdb -in $DB -dbtype nucl -title "$TITLE" -logfile /dev/null -taxid 2

$RM formatdb.log
cat *.fsa | \
../bin/abricate-fix_resfinder_fasta - | \
makeblastdb -out "$DB" -dbtype nucl -title "$TITLE" -logfile /dev/null -taxid 2

ls -lsa $DB.*

blastdbcmd -info -db "$DB"

blastdbcmd -info -db $DB

0 comments on commit cf69620

Please sign in to comment.