Skip to content
Snippets Groups Projects
Commit 79526d57 authored by Venkat Malladi's avatar Venkat Malladi
Browse files

Fix output.

parent f545947d
Branches
Tags
1 merge request!11Resolve "Include Phantompeakqualtools step"
Pipeline #1115 failed with stage
in 1 hour, 56 minutes, and 32 seconds
......@@ -5,7 +5,6 @@
import os
import argparse
import shutil
import shlex
import logging
from multiprocessing import cpu_count
import utils
......@@ -60,17 +59,17 @@ def check_tools():
def xcor(tag, paired):
'''Use spp to calculate cross-correlation stats.'''
tag_basename = tag.rstrip('.gz')
tag_basename = os.path.basename(utils.strip_extensions(tag, ['.gz']))
uncompressed_tag_filename = tag_basename
out, err = utils.run_pipe(['gzip -d %s' % (tag_basename)])
out, err = utils.run_pipe([
'gzip -dc %s > ' % (tag)], outfile=uncompressed_tag_filename)
# Subsample tagAlign file
NREADS = 15000000
subsampled_tag_filename = \
tag_basename + \
".%d.tagAlign.gz" % (NREADS/1000000)
tag_basename + ".%d.tagAlign.gz" % (NREADS/1000000)
steps = [
'grep -v "chrM" %s' % (uncompressed_tag_filename),
'shuf -n %d --random-source=%s' % (NREADS, uncompressed_tag_filename)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment