Skip to content

Commit

Permalink
Fixed: python 3 byte decoding error from cython
Browse files Browse the repository at this point in the history
  • Loading branch information
ctokheim committed Oct 4, 2016
1 parent 0e10271 commit 85f2c16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion prob2020/console/annotate.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ def main(opts):
# save indels
if opts['maf']:
with open(opts['output'], 'a') as handle:
mywriter = csv.writer(handle, delimiter='\t')
mywriter = csv.writer(handle, delimiter='\t', lineterminator='\n')
for maf_lines in indel.simulate_indel_maf(indel_df, bed_dict,
opts['num_iterations'],
opts['seed']):
Expand Down
2 changes: 1 addition & 1 deletion prob2020/python/permutation.py
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ def maf_permutation(context_counts,
# append results
maf_line = [gene_name, strand, chrom, genome_coord[k], genome_coord[k],
ref_nuc, mysomatic_base, base_context[k], dna_change,
protein_change, var_class[k]]
protein_change, var_class[k].decode()]
maf_list.append(maf_line)

return maf_list

0 comments on commit 85f2c16

Please sign in to comment.