Skip to content

Commit

Permalink
Update list of application-specific databases
Browse files Browse the repository at this point in the history
  • Loading branch information
bosborne committed Mar 5, 2017
1 parent 7498387 commit dfdfe9e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
15 changes: 5 additions & 10 deletions BioPythonUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ def run(self, edit):

for region in self.view.sel():

search_str = self.view.substr(region)
search_str = search_str.strip()
search_str = self.view.substr(region).strip()

if not search_str:
sublime.error_message("No search string in selection")
Expand Down Expand Up @@ -98,8 +97,7 @@ def run(self, edit):

for region in self.view.sel():

id_str = self.view.substr(region)
id_str = id_str.strip()
id_str = self.view.substr(region).strip()

if not id_str:
sublime.error_message("No identifiers in selection")
Expand Down Expand Up @@ -185,8 +183,7 @@ def run(self, edit):

for region in self.view.sel():

id_str = self.view.substr(region)
id_str = id_str.strip()
id_str = self.view.substr(region).strip()

if not id_str:
sublime.error_message("No identifiers in selection")
Expand Down Expand Up @@ -251,7 +248,7 @@ class TranslateCommand(sublime_plugin.TextCommand):
def run(self, edit):

for region in self.view.sel():
seq_str = self.view.substr(region)
seq_str = self.view.substr(region).strip()

# Fasta header pattern
patt = re.compile('^>\s*\S+')
Expand Down Expand Up @@ -339,8 +336,7 @@ def run(self, edit):

for region in self.view.sel():

seq_str = self.view.substr(region)
seq_str = seq_str.strip()
seq_str = self.view.substr(region).strip()

if not seq_str:
sublime.error_message("No selected text")
Expand Down Expand Up @@ -491,4 +487,3 @@ def validate_aa(seq):
seq_arr = list(seq.upper())
invalid = list(set(seq_arr) - set(IUPAC.protein.letters))
return invalid
id
3 changes: 0 additions & 3 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"blast_info": {
"blastn": [
"alu_repeats",
"16s",
"chromosome",
"dbsts",
"est",
Expand Down Expand Up @@ -47,7 +46,6 @@
],
"tblastn": [
"alu_repeats",
"Bacteria and Archaea",
"chromosome",
"dbsts",
"est",
Expand All @@ -66,7 +64,6 @@
],
"tblastx": [
"alu_repeats",
"Bacteria and Archaea",
"chromosome",
"dbsts",
"est",
Expand Down

0 comments on commit dfdfe9e

Please sign in to comment.