Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jmzhang1911 committed Apr 28, 2023
0 parents commit 17f5aad
Show file tree
Hide file tree
Showing 153 changed files with 2,076 additions and 0 deletions.
Binary file added .DS_Store
Binary file not shown.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
8 changes: 8 additions & 0 deletions .idea/.gitignore

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

8 changes: 8 additions & 0 deletions .idea/bioinfor_tools.iml

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

36 changes: 36 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

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

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

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

4 changes: 4 additions & 0 deletions .idea/misc.xml

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

8 changes: 8 additions & 0 deletions .idea/modules.xml

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

2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# bioinfor_tools

12 changes: 12 additions & 0 deletions bioinfor_tools.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Metadata-Version: 2.1
Name: bioinfor-tools
Version: 0.1
Summary: UNKNOWN
Home-page: UNKNOWN
Author: jmzhang
Author-email: [email protected]
License: UNKNOWN
Platform: UNKNOWN

UNKNOWN

9 changes: 9 additions & 0 deletions bioinfor_tools.egg-info/SOURCES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
setup.py
bioinfor_tools/__init__.py
bioinfor_tools/_bio_basic.py
bioinfor_tools/_cmd_runner.py
bioinfor_tools/_utils.py
bioinfor_tools.egg-info/PKG-INFO
bioinfor_tools.egg-info/SOURCES.txt
bioinfor_tools.egg-info/dependency_links.txt
bioinfor_tools.egg-info/top_level.txt
1 change: 1 addition & 0 deletions bioinfor_tools.egg-info/dependency_links.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions bioinfor_tools.egg-info/top_level.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bioinfor_tools
19 changes: 19 additions & 0 deletions bioinfor_tools/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/share/nas2/genome/biosoft/Python//3.7.3/bin/python3
# -*- coding: utf-8 -*-
# @Time : 2023/4/28 09:13
# @Author : jmzhang
# @Email : [email protected]

import logging

FORMAT = '%(asctime)s %(message)s'
logging.basicConfig(level=logging.INFO, format=FORMAT, datefmt='%Y-%m-%d %H:%M:%S')

__version__ = 'v0.1 beta'

from ._bio_basic import BioBasic
from ._cmd_runner import CmdRunner as __CmdRunner
from ._utils import *

cmd_wrapper = __CmdRunner.cmd_wrapper
cmd = __CmdRunner.cmd
Binary file added bioinfor_tools/__pycache__/__init__.cpython-39.pyc
Binary file not shown.
Binary file added bioinfor_tools/__pycache__/_bio_basic.cpython-39.pyc
Binary file not shown.
Binary file not shown.
Binary file added bioinfor_tools/__pycache__/_utils.cpython-39.pyc
Binary file not shown.
20 changes: 20 additions & 0 deletions bioinfor_tools/_bio_basic.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
from pathlib import Path


class BioBasic:
"""
- basic functions and property
- read cfg
- mkdir dir
- module property
"""
# 主路径位置
BASE_DIR = Path(__file__).absolute().parent.parent
# 日志路径
LOGGING_SUMMARY = BASE_DIR / 'logging_summary.txt'

def __init__(self, module):
# 模块所在的绝对父目录
self._module_dir = Path(module).absolute().parent
# 模块的名称
self._module_name = Path(module).name
Loading

0 comments on commit 17f5aad

Please sign in to comment.