Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
YaqiangCao committed Sep 18, 2023
1 parent d0e52db commit bfaf4a2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion build/scripts-3.10/tracPre2.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/home/caoy7/anaconda3/envs/astroBoy/bin/python
#--coding:utf-8--
"""
tracPre.py
tracPre2.py
Pre-processing code for Hi-Trac data, implemented with cLoops2, from fastq to bedpe files and qc report.
2020-02-27: finished and well tested.
2020-06-30: add linker filter, new stat, and changing mapping to end-to-end
Expand Down Expand Up @@ -357,9 +357,11 @@ def main():
Batch converting from bam to bedpe.
"""
#prepare everything
global logger
op = help()
date = time.strftime(' %Y-%m-%d', time.localtime(time.time()))
logger = getLogger(fn=op.output + "/" + date.strip() + "_" + os.path.basename(__file__) + ".log")

for t in ["bowtie2", "samtools", "bamToBed"]:
if not isTool(t):
logger.error("%s not exits! Please install through conda." % t)
Expand Down
Binary file modified dist/cLoops2-0.0.5-py3.10.egg
Binary file not shown.
4 changes: 3 additions & 1 deletion scripts/tracPre2.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
#--coding:utf-8--
"""
tracPre.py
tracPre2.py
Pre-processing code for Hi-Trac data, implemented with cLoops2, from fastq to bedpe files and qc report.
2020-02-27: finished and well tested.
2020-06-30: add linker filter, new stat, and changing mapping to end-to-end
Expand Down Expand Up @@ -357,9 +357,11 @@ def main():
Batch converting from bam to bedpe.
"""
#prepare everything
global logger
op = help()
date = time.strftime(' %Y-%m-%d', time.localtime(time.time()))
logger = getLogger(fn=op.output + "/" + date.strip() + "_" + os.path.basename(__file__) + ".log")

for t in ["bowtie2", "samtools", "bamToBed"]:
if not isTool(t):
logger.error("%s not exits! Please install through conda." % t)
Expand Down

0 comments on commit bfaf4a2

Please sign in to comment.