datasnakes / OrthoEvolution

An easy to use and comprehensive python package which aids in the analysis and visualization of orthologous genes. 🐵
https://orthoevolution.readthedocs.io/en/master/
29 stars 4 forks source link

GI deprecation #115

Closed grabear closed 6 years ago

grabear commented 6 years ago

NCBI has deprecated using GI numbers for anything in the future. Here we must also do this.

In order to begin this process I have commented out code and created todos:

# TODO: GI deprecation.

The following commits were made on individual files for deprecating the GI functionality:

grabear commented 6 years ago

@sdhutchins GI list paths weren't integrated with the Manager module, and all of it's functionality. So it's not necessary for anything to change at the moment. Whenever the Window Masker stuff get's going, we can add an attribute into the management.py file and add the appropriate directories to cookiecutter templates. It should go under /users//databases/NCBI//WindowMasker or something like that.

If you add some basic links here that would be awesome.

grabear commented 6 years ago

113 to speed up BLAST we will deprecate GI numbers and use seqIDs or Windowmasker.

sdhutchins commented 6 years ago

I added this to the CompGenBLASTn class (now named OrthoBlastN) in the the __init__

self.environment_vars = dict(os.environ)
if 'BLASTDB' not in self.environment_vars.keys():
    msg = "BLASTDB is not set in your path."
    raise EnvironmentError(msg)
elif 'WINDOW_MASKER_PATH' not in self.environment_vars.keys():
    msg = "WINDOW_MASKER_PATH is not set in your path."
    raise EnvironmentError(msg)       
sdhutchins commented 6 years ago

PR #116

sdhutchins commented 6 years ago

Addressed by #120