Skip to content

Commit

Permalink
edit
Browse files Browse the repository at this point in the history
jingchunzhu committed Sep 27, 2019
1 parent 4126afb commit 96dfba2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion HCA/expression.csv.py
Original file line number Diff line number Diff line change
@@ -44,7 +44,11 @@ def process (infile, outfile, input_delimiter, k, probeID_gene_mapping):
#switch gene ids in a
for row in a:
probeID = row[0]
gene = probeID_gene_mapping[probeID]
try:
gene = probeID_gene_mapping[probeID]
except:
print probeID
gene = probeID
row[0] = gene
csv.writer(fout, delimiter="\t", lineterminator="\n").writerows(a)
os.system("rm -rf " + tmpinfile)

0 comments on commit 96dfba2

Please sign in to comment.