Commit 341f9317 authored by Schoorlemmer, Joran's avatar Schoorlemmer, Joran
Browse files

Replace extractdiffanalysis.py

parent 5f54a693
......@@ -27,7 +27,10 @@ def extractlogfold(csv_file):
line.strip()
line_info = line.split('\t') # write tsv line to list
gene_name = line_info[0]
log2fold = float(line_info[2])
try:
log2fold = float(line_info[2])
except:
log2fold = line_info[2]
fold_dict[gene_name] = log2fold
return fold_dict
......@@ -46,7 +49,10 @@ def extractpadj(csv_file):
line.strip()
line_info = line.split('\t') # write tsv line to list
gene_name = line_info[0]
padj = float(line_info[6].strip())
try:
padj = float(line_info[6].strip())
except:
padj = float(line_info[6].strip())
p_dict[gene_name] = padj
return p_dict
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment