This is a test version of Biostars. For the public version, visit https://www.biostars.org.
KisSplice error during sampling bubbles by type step

Hi!

I'm tyring to run kissplice on a dataset I've used before with an older version, however now it exits with an error. I'm using version 2.5.1, it does the graph and some other steps until "Sampling bubbles by type". Then this error occurs:

Traceback (most recent call last):
  File "/programs/kissplice/bin/kissplice", line 999, in <module>
    main()
  File "/programs/kissplice/bin/kissplice", line 916, in main
    nb = sort_all_bubbles(KS_SEC_EXEC_PATH, readfiles, workdir, outdir, kval, output_snps, infix_name, not only_graph, options.verbose)
  File "/programs/kissplice/bin/kissplice", line 591, in sort_all_bubbles
    concatenate_graph_all_log_bcc_to_all_bcc_type0(workdir, kval, output_snps)
  File "/programs/kissplice/bin/kissplice", line 464, in concatenate_graph_all_log_bcc_to_all_bcc_type0
    destinationSNPS.write(line)
TypeError: a bytes-like object is required, not 'str'

Is this caused by my input or a bug?

Cheers

kissplice

1 answer

Changing the mode of open in line 453 from ab to just a seems to fix the problem.

Log in to answer this question.