Skip to content

Commit

Permalink
[assembly] Split contig name in hic
Browse files Browse the repository at this point in the history
  • Loading branch information
tanghaibao committed Mar 6, 2017
1 parent 6307938 commit 939a10a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assembly/hic.py
Expand Up @@ -19,10 +19,10 @@
class ContigOrderingLine(object):
'''Stores one line in the ContigOrdering file
'''
def __init__(self, line):
def __init__(self, line, sep="|"):
args = line.split()
self.contig_id = args[0]
self.contig_name = args[1]
self.contig_name = args[1].split(sep)[0]
contig_rc = args[2]
assert contig_rc in ('0', '1')
self.strand = '+' if contig_rc == '0' else '-'
Expand Down

0 comments on commit 939a10a

Please sign in to comment.