Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge v0.1.22 #45

Merged
merged 9 commits into from
Jan 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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