Skip to content
Snippets Groups Projects
Commit 32ab989d authored by Chris Bennett's avatar Chris Bennett
Browse files

Patch waiting problem with gunzip on line 91 of trenco_core

parent 6e060bf1
1 merge request!1Trenco devel
......@@ -3,8 +3,8 @@
#
# Wraper script for running all of trenco
import sys, os, subprocess, re
import glob, logging
import os, json
import logging
import multiprocessing as mp
import trenco_modules.trenco_args as targs
import trenco_modules.trenco_core as tcore
......
......@@ -5,7 +5,7 @@ Trenco Modules for running scripts
"""
import sys, os, glob, subprocess
import logging
import logging, time
import shlex
import pandas as pd
import numpy as np
......@@ -94,6 +94,8 @@ def process_tss(version, organism, biotypes, fname, logger):
#os.system(cmd) # the code needs to wait at this point
subprocess.check_call(cmd, shell=True)
time.sleep(30) # this is a temporary fix to make sure the gunzip works and has time
if annotations.endswith('.gtf'):
tail = '.gtf'
else:
......
......@@ -205,7 +205,11 @@ def get_df(df, assay_target, biosample_types, filter_age, output_type, file_type
if assay_target == 'RNA-seq':
target = assay
elif assay == 'ChIP-seq':
target = r[1]['Experiment target'].split('-')[0]
try:
target = r[1]['Experiment target'].split('-')[0]
except:
continue
pass
else:
continue
......
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