How to fix this error: Too many positional arguments (1)?
FASTA file: /home/farhana/Desktop/Long Assignment/seqfasta.fa
FASTA type: protein
Proceed? [y/n] (Default: y): y
Enter a database title or will use 'seqfasta': seqfasta.fa
Enter taxid (optional):
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]
[-blastdb_version version] [-max_file_sz number_of_bytes]
[-logfile File_Name] [-taxid TaxID] [-taxid_map TaxIDMapFile] [-version]
DESCRIPTION
Application to create BLAST databases, version 2.8.1+
Use '-help' to print detailed descriptions of command line arguments
========================================================================
Error: (CArgException::eSynopsis) Too many positional arguments (1), the offending value: Assignment/seqfasta.fa
command-line
add a comment |
FASTA file: /home/farhana/Desktop/Long Assignment/seqfasta.fa
FASTA type: protein
Proceed? [y/n] (Default: y): y
Enter a database title or will use 'seqfasta': seqfasta.fa
Enter taxid (optional):
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]
[-blastdb_version version] [-max_file_sz number_of_bytes]
[-logfile File_Name] [-taxid TaxID] [-taxid_map TaxIDMapFile] [-version]
DESCRIPTION
Application to create BLAST databases, version 2.8.1+
Use '-help' to print detailed descriptions of command line arguments
========================================================================
Error: (CArgException::eSynopsis) Too many positional arguments (1), the offending value: Assignment/seqfasta.fa
command-line
add a comment |
FASTA file: /home/farhana/Desktop/Long Assignment/seqfasta.fa
FASTA type: protein
Proceed? [y/n] (Default: y): y
Enter a database title or will use 'seqfasta': seqfasta.fa
Enter taxid (optional):
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]
[-blastdb_version version] [-max_file_sz number_of_bytes]
[-logfile File_Name] [-taxid TaxID] [-taxid_map TaxIDMapFile] [-version]
DESCRIPTION
Application to create BLAST databases, version 2.8.1+
Use '-help' to print detailed descriptions of command line arguments
========================================================================
Error: (CArgException::eSynopsis) Too many positional arguments (1), the offending value: Assignment/seqfasta.fa
command-line
FASTA file: /home/farhana/Desktop/Long Assignment/seqfasta.fa
FASTA type: protein
Proceed? [y/n] (Default: y): y
Enter a database title or will use 'seqfasta': seqfasta.fa
Enter taxid (optional):
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]
[-blastdb_version version] [-max_file_sz number_of_bytes]
[-logfile File_Name] [-taxid TaxID] [-taxid_map TaxIDMapFile] [-version]
DESCRIPTION
Application to create BLAST databases, version 2.8.1+
Use '-help' to print detailed descriptions of command line arguments
========================================================================
Error: (CArgException::eSynopsis) Too many positional arguments (1), the offending value: Assignment/seqfasta.fa
command-line
command-line
edited Jan 3 at 11:41
karel
58.1k12128146
58.1k12128146
asked Jan 3 at 11:36
Farhana NizamFarhana Nizam
82
82
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Long and Assignment in line 1 are interpreted by the Bash shell as too many positional arguments, 2 instead of 1. Instead enclose the whole path in quotes like this:'/home/farhana/Desktop/Long Assignment/seqfasta.fa'
or connect Long and Assignment with a connecting character like this Long-Assignment to make it a single positional argument instead of two separate arguments. You can also escape the space character between Long and Assignment by preceding it with a backslash which makes it not interpreted by the shell as a special character.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1106556%2fhow-to-fix-this-error-too-many-positional-arguments-1%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Long and Assignment in line 1 are interpreted by the Bash shell as too many positional arguments, 2 instead of 1. Instead enclose the whole path in quotes like this:'/home/farhana/Desktop/Long Assignment/seqfasta.fa'
or connect Long and Assignment with a connecting character like this Long-Assignment to make it a single positional argument instead of two separate arguments. You can also escape the space character between Long and Assignment by preceding it with a backslash which makes it not interpreted by the shell as a special character.
add a comment |
Long and Assignment in line 1 are interpreted by the Bash shell as too many positional arguments, 2 instead of 1. Instead enclose the whole path in quotes like this:'/home/farhana/Desktop/Long Assignment/seqfasta.fa'
or connect Long and Assignment with a connecting character like this Long-Assignment to make it a single positional argument instead of two separate arguments. You can also escape the space character between Long and Assignment by preceding it with a backslash which makes it not interpreted by the shell as a special character.
add a comment |
Long and Assignment in line 1 are interpreted by the Bash shell as too many positional arguments, 2 instead of 1. Instead enclose the whole path in quotes like this:'/home/farhana/Desktop/Long Assignment/seqfasta.fa'
or connect Long and Assignment with a connecting character like this Long-Assignment to make it a single positional argument instead of two separate arguments. You can also escape the space character between Long and Assignment by preceding it with a backslash which makes it not interpreted by the shell as a special character.
Long and Assignment in line 1 are interpreted by the Bash shell as too many positional arguments, 2 instead of 1. Instead enclose the whole path in quotes like this:'/home/farhana/Desktop/Long Assignment/seqfasta.fa'
or connect Long and Assignment with a connecting character like this Long-Assignment to make it a single positional argument instead of two separate arguments. You can also escape the space character between Long and Assignment by preceding it with a backslash which makes it not interpreted by the shell as a special character.
edited Jan 3 at 12:03
answered Jan 3 at 11:50
karelkarel
58.1k12128146
58.1k12128146
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1106556%2fhow-to-fix-this-error-too-many-positional-arguments-1%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown