diff --git a/.DS_Store b/.DS_Store index fcf0211..1a89e6d 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/.gitattributes b/.gitattributes index dfe0770..d4b635f 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1,5 @@ # Auto detect text files and perform LF normalization * text=auto + +cmds_sh +test.py diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/README.md b/README.md index b71352e..e23d989 100644 --- a/README.md +++ b/README.md @@ -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() +``` \ No newline at end of file