Skip to content

Commit b58ed03

Browse files
committed
Fixed bug in UCSC header conversion.
1 parent 426c219 commit b58ed03

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bin/01_SplitFasta.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def splitFasta(infile, outdir):
6464

6565
def convertHeader(line):
6666
'''Returns a header containing only the genome build name.'''
67-
if line.startswith(">ENS") == True:
67+
if "_" in line:
6868
# Extract relevant data from UCSC header
6969
genebuild = line[1:].split()[0]
7070
genebuild = genebuild.split("_")

0 commit comments

Comments
 (0)