Rename an existing BLAST database
1
1
Entering edit mode
5.0 years ago
cmdcolin ★ 2.3k

Is it possible to rename an existing BLAST database using the NCBI command line tools?

blast • 1.6k views
0
Entering edit mode
5.0 years ago
st.ph.n ★ 2.7k
makeblastdb -in input_file.fasta -dbtype prot/nucl -out desired_name.fasta

USAGE
makeblastdb [-h] [-help] [-in input_file] [-input_type type]
-dbtype molecule_type [-title database_title] [-parse_seqids]
[-max_file_sz number_of_bytes] [-logfile File_Name] [-taxid TaxID]
[-taxid_map TaxIDMapFile] [-version]


You can rename the files you have, but make sure you keep the blast extensions, which depend on dbtype.

0
Entering edit mode

My particular case the -title argument was also added to the makeblastdb command, and I was hoping to just simply modify the title that was given to the DB rather than regenerate everything with makeblastdb. In this case renaming the files wouldn't work I think since the -title was used.

1
Entering edit mode

I think there is a bug and so the title usually defaults to the input file name even if you set the -title argument. So, change the name of the input file to the name of the database you want.