Skip to content

Commit

Permalink
Merge pull request maximilianh#168 from mxposed/fix-clusters-with-commas
Browse files Browse the repository at this point in the history
Allow commas in cluster names in markers file
  • Loading branch information
maximilianh committed Apr 22, 2020
2 parents 88406a2 + 34a867b commit 634dd61
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/cbPyLib/cellbrowser/cellbrowser.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from collections import namedtuple, OrderedDict
from os.path import join, basename, dirname, isfile, isdir, relpath, abspath, getsize, getmtime, expanduser
from time import gmtime, strftime
import csv

try:
# python3
Expand Down Expand Up @@ -2462,10 +2463,10 @@ def parseMarkerTable(filename, geneToSym):
otherHeaders = headers[otherStart:otherEnd]
logging.debug("Other headers: %s" % otherHeaders)

reader = csv.reader(ifh, delimiter=sep, quotechar='"')
data = defaultdict(list)
otherColumns = defaultdict(list)
for line in ifh:
row = line.rstrip("\r\n").split(sep)
for row in reader:
clusterName = row[clusterIdx]
geneId = row[geneIdx]
scoreVal = float(row[scoreIdx])
Expand Down

0 comments on commit 634dd61

Please sign in to comment.