-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
70 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
include README.md | ||
recursive-include scripts * | ||
include src/ribotools/scripts/get-sample-table | ||
include src/ribotools/scripts/run-tea | ||
include src/ribotools/scripts/run-dea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
__version_info__ = ("1", "0", "1") | ||
__version_info__ = ("1", "0", "2") | ||
__version__ = ".".join(__version_info__) |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import shlex | ||
import subprocess | ||
import sys | ||
from importlib.resources import files | ||
|
||
|
||
def get_sample_table(): | ||
_run("get-sample-table") | ||
|
||
|
||
def run_dea(): | ||
_run("run-dea") | ||
|
||
|
||
def run_tea(): | ||
_run("run-tea") | ||
|
||
|
||
def _get_resource(script): | ||
package = "ribotools" | ||
resource = "scripts" | ||
return files(package).joinpath(resource).joinpath(script) | ||
|
||
|
||
def _run(script): | ||
executable = _get_resource(script) | ||
cmd = f"{executable} {' '.join(sys.argv[1:])}" | ||
safe = shlex.split(cmd) | ||
subprocess.run(safe, check=True, stderr=sys.stderr, stdout=sys.stdout, text=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters