Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
jmzhang1911 committed Apr 28, 2023
1 parent 17f5aad commit 4e95137
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 1 deletion.
Binary file modified .DS_Store
Binary file not shown.
3 changes: 3 additions & 0 deletions .gitattributes
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
6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 28 additions & 1 deletion README.md
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()
```

0 comments on commit 4e95137

Please sign in to comment.