Rename an existing BLAST database
1
1
Entering edit mode
7.3 years ago
cmdcolin ★ 4.0k

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

blast • 2.5k views
ADD COMMENT
0
Entering edit mode
7.3 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]
    [-hash_index] [-mask_data mask_data_files] [-mask_id mask_algo_ids]
    [-mask_desc mask_algo_descriptions] [-gi_mask]
    [-gi_mask_name gi_based_mask_names] [-out database_name]
    [-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.

ADD COMMENT
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.

ADD REPLY
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.

ADD REPLY

Login before adding your answer.

Traffic: 2367 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6