Skip to content

Commit

Permalink
Merge pull request #45 from vinisalazar/dev
Browse files Browse the repository at this point in the history
Merge v0.1.22
  • Loading branch information
vinisalazar committed Jan 8, 2021
2 parents f365335 + 4a05fb2 commit fe19342
Show file tree
Hide file tree
Showing 30 changed files with 312 additions and 234 deletions.
11 changes: 10 additions & 1 deletion CHANGELOG.md
Expand Up @@ -8,11 +8,20 @@
* .write_paths_to_file, .copy_files_to_dir(), .link_files_to_dir() [ ]
* Add logger calls when saving to JSON and uploading to ProvStore [ ]

### v0.1.22
* Simplify `bp.load_project()` function [x]
* Fix user and env PROV relationships [x]
* Add Run attributes as Program class properties (will consume from the last run) [x]
* Add sequence dunder methods for Project class [x]
* Improve run methods [x]
* Allow specifying sequence format to PresetProgram outputs [x]
* Update env file to Py 3.9 [x]

### v0.1.21
* Add _config argument to `bp.load_project()` (this is a temporary fix) [x]
* Add db property to Config class (prevents bug when setting DB path) [x]
* Improve a few docstrings [x]
* Refactor sha1 as sha256 [x]
* Refactor sha1 as sha256 [x]
* Add add and radd dunder methods for Directory and File [x]
* Package workflows in single module [x]
* Add FastTree PresetProgram [x]
Expand Down
2 changes: 1 addition & 1 deletion bioprov/__init__.py
Expand Up @@ -2,7 +2,7 @@
__license__ = "MIT"
__maintainer__ = "Vini Salazar"
__url__ = "https://github.com/vinisalazar/bioprov"
__version__ = "0.1.21"
__version__ = "0.1.22"


"""
Expand Down
2 changes: 1 addition & 1 deletion bioprov/bioprov.py
Expand Up @@ -2,7 +2,7 @@
__license__ = "MIT"
__maintainer__ = "Vini Salazar"
__url__ = "https://github.com/vinisalazar/bioprov"
__version__ = "0.1.21"
__version__ = "0.1.22"

"""
BioProv command-line application. This module holds the main executable.
Expand Down
2 changes: 1 addition & 1 deletion bioprov/data/__init__.py
Expand Up @@ -2,7 +2,7 @@
__license__ = "MIT"
__maintainer__ = "Vini Salazar"
__url__ = "https://github.com/vinisalazar/bioprov"
__version__ = "0.1.21"
__version__ = "0.1.22"


"""
Expand Down
2 changes: 1 addition & 1 deletion bioprov/programs/__init__.py
Expand Up @@ -2,7 +2,7 @@
__license__ = "MIT"
__maintainer__ = "Vini Salazar"
__url__ = "https://github.com/vinisalazar/bioprov"
__version__ = "0.1.21"
__version__ = "0.1.22"


from .programs import (
Expand Down
6 changes: 3 additions & 3 deletions bioprov/programs/programs.py
Expand Up @@ -2,7 +2,7 @@
__license__ = "MIT"
__maintainer__ = "Vini Salazar"
__url__ = "https://github.com/vinisalazar/bioprov"
__version__ = "0.1.21"
__version__ = "0.1.22"


"""
Expand Down Expand Up @@ -60,8 +60,8 @@ def prodigal(sample=None, input_tag="assembly", extra_flags=None):
sample=sample,
input_files={"-i": input_tag},
output_files={
"-a": ("proteins", "_proteins.faa"),
"-d": ("genes", "_genes.fna"),
"-a": ("proteins", "_proteins.faa", "fasta"),
"-d": ("genes", "_genes.fna", "fasta"),
"-s": ("scores", "_scores.cds"),
},
preffix_tag=input_tag,
Expand Down
2 changes: 1 addition & 1 deletion bioprov/src/__init__.py
Expand Up @@ -2,7 +2,7 @@
__license__ = "MIT"
__maintainer__ = "Vini Salazar"
__url__ = "https://github.com/vinisalazar/bioprov"
__version__ = "0.1.21"
__version__ = "0.1.22"


"""
Expand Down
11 changes: 10 additions & 1 deletion bioprov/src/config.py
Expand Up @@ -2,7 +2,7 @@
__license__ = "MIT"
__maintainer__ = "Vini Salazar"
__url__ = "https://github.com/vinisalazar/bioprov"
__version__ = "0.1.21"
__version__ = "0.1.22"


"""
Expand Down Expand Up @@ -274,10 +274,19 @@ def __init__(self):
self.user = None
self.env_namespace = None
self.update()
self._actedOnBehalfOf = False

def __repr__(self):
return self.env_hash

@property
def actedOnBehalfOf(self):
return self._actedOnBehalfOf

@actedOnBehalfOf.setter
def actedOnBehalfOf(self, value):
self._actedOnBehalfOf = value

def update(self):
"""
Checks current environment and updates attributes using the os.environ module.
Expand Down
2 changes: 1 addition & 1 deletion bioprov/src/files.py
Expand Up @@ -2,7 +2,7 @@
__license__ = "MIT"
__maintainer__ = "Vini Salazar"
__url__ = "https://github.com/vinisalazar/bioprov"
__version__ = "0.1.21"
__version__ = "0.1.22"


"""
Expand Down

0 comments on commit fe19342

Please sign in to comment.