diamond
diamond copied to clipboard
Error: Invalid output format. Allowed values: 0,5,6,100,101,102
Related to #340?
Quoted variable interpolation fails in --outfmt, but seems to work elsewhere.
fmt6_custom='6 qseqid sseqid'
fasta_file="test.fasta"
# Fails
sudo ./diamond blastx \
--query "$fasta_file" \
--db nr \
--outfmt "$fmt6_custom" -o "${fasta_file/.fasta}.test.tsv"
# ...
# Error: Invalid output format. Allowed values: 0,5,6,100,101,102
# Works
sudo ./diamond blastx \
--query "$fasta_file" \
--db nr \
--outfmt $fmt6_custom -o "${fasta_file/.fasta}.test.tsv"
I'm aware that this doesn't work, although it would probably be better if it did.