Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
KatharinaHoff committed Aug 19, 2019
2 parents 579590c + 1f9b446 commit b572870
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion make_hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ def make_gtf_sane(annot_file, ucsc_file):
with open(annot_file, "r") as annot_handle:
txs = {}
for line in annot_handle:
if (len(line) > 1) and (not(re.match(r'^#', line))):
if ('transcript_id' in line):
seq, first_part, strand, second_part, txid = re.search(
r'(\S+)(\t\S+\t\S+\t\d+\t\d+\t\S+\t)(\S+)(\t\S+\t).*transcript_id\s\"(\S+)\"', line).groups()
if txid not in txs:
Expand Down

0 comments on commit b572870

Please sign in to comment.