Skip to content

Commit 12f9b4a

Browse files
committed
Add commands to Command Palette
1 parent e362658 commit 12f9b4a

5 files changed

+32
-4
lines changed

Diff for: BioPythonUtils.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ def run(self, edit):
6464
print("Entrez count: {}".format(ids['Count']))
6565
dialog_result = sublime.ok_cancel_dialog(
6666
"Download {0} sequences? 'retmax': {1}".format(ids['Count'],
67-
entrez_retmax), 'Download')
67+
entrez_retmax),
68+
'Download')
6869

6970
if dialog_result is True:
7071
try:
@@ -168,7 +169,7 @@ def run(self):
168169
self.result = False
169170

170171

171-
# "Download Taxon"
172+
# "Download Sequence by Taxon"
172173
class DownloadSequenceByTaxonCommand(sublime_plugin.TextCommand):
173174

174175
def run(self, edit):
@@ -431,8 +432,8 @@ def run(self, edit):
431432

432433
seqin.close()
433434
else:
434-
# Assume it's plain sequence and use an incrementing number as
435-
# an id
435+
# Assume it's "plain" format and use an incrementing
436+
# number as an id
436437
seq_id = 1
437438
for seq_str in re.split('^\s*\n', seq_str, 0, re.MULTILINE):
438439
seq_str = re.sub("[^a-zA-Z]", "", seq_str)

Diff for: Default (Linux).sublime-keymap

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
{ "keys": ["ctrl+alt+super+t"], "command": "translate" },
33
{ "keys": ["ctrl+alt+super+g"], "command": "genbank_to_fasta" },
44
{ "keys": ["ctrl+alt+super+d"], "command": "download_sequence_by_id" },
5+
{ "keys": ["ctrl+alt+super+s"], "command": "download_sequence_by_search" },
56
{ "keys": ["ctrl+alt+super+x"], "command": "download_taxon" },
67
{ "keys": ["ctrl+alt+super+b"], "command": "remote_blast" }
78
]

Diff for: Default (OSX).sublime-keymap

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
{ "keys": ["ctrl+alt+super+t"], "command": "translate" },
33
{ "keys": ["ctrl+alt+super+g"], "command": "genbank_to_fasta" },
44
{ "keys": ["ctrl+alt+super+d"], "command": "download_sequence_by_id" },
5+
{ "keys": ["ctrl+alt+super+s"], "command": "download_sequence_by_search" },
56
{ "keys": ["ctrl+alt+super+x"], "command": "download_taxon" },
67
{ "keys": ["ctrl+alt+super+b"], "command": "remote_blast" }
78
]

Diff for: Default (Windows).sublime-keymap

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
{ "keys": ["ctrl+alt+super+t"], "command": "translate" },
33
{ "keys": ["ctrl+alt+super+g"], "command": "genbank_to_fasta" },
44
{ "keys": ["ctrl+alt+super+d"], "command": "download_sequence_by_id" },
5+
{ "keys": ["ctrl+alt+super+s"], "command": "download_sequence_by_search" },
56
{ "keys": ["ctrl+alt+super+x"], "command": "download_taxon" },
67
{ "keys": ["ctrl+alt+super+b"], "command": "remote_blast" }
78
]

Diff for: Default.sublime-commands

+24
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,30 @@
2424
}
2525
},
2626
{
27+
"caption": "BioPythonUtils: Remote Blast",
28+
"command": "remote_blast"
29+
},
30+
{
31+
"caption": "BioPythonUtils: Genbank To Fasta",
32+
"command": "genbank_to_fasta"
33+
},
34+
{
35+
"caption": "BioPythonUtils: Translate",
36+
"command": "translate"
37+
},
38+
{
39+
"caption": "BioPythonUtils: Get Sequences by Search",
40+
"command": "download_sequence_by_search"
41+
},
42+
{
43+
"caption": "BioPythonUtils: Get Sequences by Taxon",
44+
"command": "download_sequence_by_taxon"
45+
},
46+
{
47+
"caption": "BioPythonUtils: Get Sequences by Id",
48+
"command": "download_sequence_by_id"
49+
},
50+
{
2751
"caption": "BioPythonUtils: Select Remote BLAST database",
2852
"command": "select_blast_database"
2953
},

0 commit comments

Comments
 (0)