-
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
1 parent
17f5aad
commit 4e95137
Showing
4 changed files
with
37 additions
and
1 deletion.
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,5 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=auto | ||
|
||
cmds_sh | ||
test.py |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,29 @@ | ||
# bioinfor_tools | ||
|
||
![Stars](https://img.shields.io/pypi/v/bioinfor-tools.svg) | ||
|
||
## Install | ||
```angular2html | ||
pip install bioinfor-tools | ||
``` | ||
|
||
## Quick Guide | ||
```angular2html | ||
import bioinfor_tools as bt | ||
import random | ||
# Decorate a function that generates a Linux command. | ||
@bt.cmd_wrapper(n_jobs=2) | ||
def foo(a='hello'): | ||
cmd_list = ['sleep {} && echo done!'.format(random.randint(3, 5)) for _ in range(6)] | ||
return cmd_list, a | ||
foo() | ||
# using qusb. | ||
@bt.cmd_wrapper(n_jobs=2,use_qsub=True) | ||
def foo2(a='hello'): | ||
cmd_list = ['sleep {} && echo done!'.format(random.randint(3, 5)) for _ in range(6)] | ||
return cmd_list, a | ||
foo2() | ||
``` |