offtracker 2.14.0__zip → 2.14.2__zip
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {offtracker-2.14.0/offtracker.egg-info → offtracker-2.14.2}/PKG-INFO +1 -1
- {offtracker-2.14.0 → offtracker-2.14.2}/offtracker/_version.py +3 -1
- {offtracker-2.14.0 → offtracker-2.14.2/offtracker.egg-info}/PKG-INFO +1 -1
- offtracker-2.14.2/offtracker.egg-info/requires.txt +20 -0
- {offtracker-2.14.0 → offtracker-2.14.2}/scripts/offtracker_config.py +17 -5
- {offtracker-2.14.0 → offtracker-2.14.2}/setup.py +2 -1
- offtracker-2.14.0/offtracker.egg-info/requires.txt +0 -7
- {offtracker-2.14.0 → offtracker-2.14.2}/LICENSE.txt +0 -0
- {offtracker-2.14.0 → offtracker-2.14.2}/MANIFEST.in +0 -0
- {offtracker-2.14.0 → offtracker-2.14.2}/README.md +0 -0
- {offtracker-2.14.0 → offtracker-2.14.2}/offtracker/X_offplot.py +0 -0
- {offtracker-2.14.0 → offtracker-2.14.2}/offtracker/X_offtracker.py +0 -0
- {offtracker-2.14.0 → offtracker-2.14.2}/offtracker/X_sequence.py +0 -0
- {offtracker-2.14.0 → offtracker-2.14.2}/offtracker/__init__.py +0 -0
- {offtracker-2.14.0 → offtracker-2.14.2}/offtracker/snakefile/Snakefile_QC.smk +0 -0
- {offtracker-2.14.0 → offtracker-2.14.2}/offtracker/snakefile/Snakefile_offtracker.smk +0 -0
- {offtracker-2.14.0 → offtracker-2.14.2}/offtracker/utility/1.1_bed2fr.py +0 -0
- {offtracker-2.14.0 → offtracker-2.14.2}/offtracker/utility/1.3_bdg_normalize_v4.0.py +0 -0
- {offtracker-2.14.0 → offtracker-2.14.2}/offtracker/utility/bedGraphToBigWig +0 -0
- {offtracker-2.14.0 → offtracker-2.14.2}/offtracker/utility/hg38.chrom.sizes +0 -0
- {offtracker-2.14.0 → offtracker-2.14.2}/offtracker/utility/mm10.chrom.sizes +0 -0
- {offtracker-2.14.0 → offtracker-2.14.2}/offtracker/utility/offtracker_blacklist_hg38.merged.bed +0 -0
- {offtracker-2.14.0 → offtracker-2.14.2}/offtracker/utility/offtracker_blacklist_mm10.merged.bed +0 -0
- {offtracker-2.14.0 → offtracker-2.14.2}/offtracker.egg-info/SOURCES.txt +0 -0
- {offtracker-2.14.0 → offtracker-2.14.2}/offtracker.egg-info/dependency_links.txt +0 -0
- {offtracker-2.14.0 → offtracker-2.14.2}/offtracker.egg-info/top_level.txt +0 -0
- {offtracker-2.14.0 → offtracker-2.14.2}/scripts/offtracker_analysis.py +0 -0
- {offtracker-2.14.0 → offtracker-2.14.2}/scripts/offtracker_candidates.py +0 -0
- {offtracker-2.14.0 → offtracker-2.14.2}/scripts/offtracker_correction.py +0 -0
- {offtracker-2.14.0 → offtracker-2.14.2}/scripts/offtracker_init.py +0 -0
- {offtracker-2.14.0 → offtracker-2.14.2}/scripts/offtracker_plot.py +0 -0
- {offtracker-2.14.0 → offtracker-2.14.2}/scripts/offtracker_qc.py +0 -0
- {offtracker-2.14.0 → offtracker-2.14.2}/setup.cfg +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
__version__ = "2.14.
|
|
1
|
+
__version__ = "2.14.2"
|
|
2
2
|
# 2023.08.11. v1.1.0 adding a option for not normalizing the bw file
|
|
3
3
|
# 2023.10.26. v1.9.0 prerelease for v2.0
|
|
4
4
|
# 2023.10.27. v2.0.0 大更新,还没微调
|
|
@@ -46,3 +46,5 @@ __version__ = "2.14.0"
|
|
|
46
46
|
# 2025.08.09. v2.13.1 测试 correction 功能
|
|
47
47
|
# 2025.08.09. v2.13.2 chromap + trim 参数
|
|
48
48
|
# 2025.10.05. v2.14.0 添加 threads 监控,在 offtracker_config.py 中添加 --cpu_help 选项进入互动模式,推荐 CPU 参数。
|
|
49
|
+
# 2025.10.05. v2.14.1 修正小问题。
|
|
50
|
+
# 2025.10.06. v2.14.2 修正依赖。
|
|
@@ -83,23 +83,35 @@ def main():
|
|
|
83
83
|
#####################
|
|
84
84
|
import psutil
|
|
85
85
|
if args.cpu_help:
|
|
86
|
+
# CPU 相关信息
|
|
86
87
|
cpu_count_total = psutil.cpu_count(logical=True) # 逻辑 CPU 总数(包括超线程)
|
|
88
|
+
cpu_percent = psutil.cpu_percent(interval=1) # 1秒内的 CPU 使用率(百分比)
|
|
89
|
+
cpu_idle_percent = 100 - cpu_percent
|
|
90
|
+
cpu_available = int(cpu_count_total*cpu_idle_percent/100)
|
|
91
|
+
|
|
92
|
+
# 内存相关信息
|
|
87
93
|
memory = psutil.virtual_memory()
|
|
94
|
+
memory_total = round(memory.total/1024/1024/1024, 2) # 总内存
|
|
88
95
|
memory_available = round(memory.available/1024/1024/1024, 2) # 可用内存 GB
|
|
89
|
-
|
|
96
|
+
|
|
97
|
+
print('\n')
|
|
98
|
+
print('Total memory:', memory_total, 'GB')
|
|
90
99
|
print('Total CPU threads:', cpu_count_total)
|
|
100
|
+
print('Available memory:', memory_available, 'GB')
|
|
101
|
+
print('Available CPU threads:', cpu_available)
|
|
91
102
|
n_sample = len(sample_names)
|
|
92
103
|
print('Total samples:', n_sample)
|
|
104
|
+
print('\n')
|
|
93
105
|
# 用户输入分配的最大内存和CPU线程数
|
|
94
|
-
max_memory_gb = float(input(
|
|
95
|
-
max_cpu_threads = int(input(
|
|
106
|
+
max_memory_gb = float(input(rf"Please input the maximum memory for the program (GB): 25 - {memory_available}\n"))
|
|
107
|
+
max_cpu_threads = int(input(rf"Please input the maximum CPU threads for the program: 1 - {cpu_available}\n"))
|
|
96
108
|
assert (max_memory_gb < memory_available)&(max_memory_gb >= 25), f'max memory must be < available memory ({memory_available} GB) and >= 25 GB, current input: {max_memory_gb} GB'
|
|
97
|
-
assert (max_cpu_threads <=
|
|
109
|
+
assert (max_cpu_threads <= cpu_available)&(max_cpu_threads >= 1), f'max CPU threads must be <= available CPU threads ({cpu_available}) and >= 1, current input: {max_cpu_threads}'
|
|
98
110
|
# 计算推荐的 cpu 参数
|
|
99
111
|
max_task = min(int(max(max_memory_gb,30)/30), n_sample)
|
|
100
112
|
max_cpu_per_task = int(max_cpu_threads/max_task)
|
|
101
113
|
total_cpu = max_task*max_cpu_per_task
|
|
102
|
-
|
|
114
|
+
print('\n')
|
|
103
115
|
print('Assigning', max_cpu_per_task, f'CPU threads to each task. (i.e., -t {max_cpu_per_task})')
|
|
104
116
|
print('Number of parallel tasks:', max_task)
|
|
105
117
|
print(f'Please specify "--cores {total_cpu}" when formally running snakemake.')
|
|
@@ -26,7 +26,8 @@ with open(os.path.join(here, package_folder, '_version.py'),'r',encoding='utf-8'
|
|
|
26
26
|
|
|
27
27
|
# requirements
|
|
28
28
|
REQUIRED = [
|
|
29
|
-
'pandas', 'polars>=1.19.0', 'numpy', 'biopython<=1.85', 'pybedtools', 'pyyaml', 'psutil'
|
|
29
|
+
'pandas', 'polars>=1.19.0', 'numpy', 'scipy', 'matplotlib', 'biopython<=1.85', 'pybedtools', 'pyyaml', 'psutil',
|
|
30
|
+
'os','sys','re', 'glob', 'time','itertools','argparse', 'multiprocessing', 'shutil', 'yaml', 'math'
|
|
30
31
|
]
|
|
31
32
|
## pybedtools may be not supported in Windows
|
|
32
33
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{offtracker-2.14.0 → offtracker-2.14.2}/offtracker/utility/offtracker_blacklist_hg38.merged.bed
RENAMED
|
File without changes
|
{offtracker-2.14.0 → offtracker-2.14.2}/offtracker/utility/offtracker_blacklist_mm10.merged.bed
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|