Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about dnase_bias_estimator.py #47

Open
leinmeng opened this issue Jan 20, 2020 · 0 comments
Open

Question about dnase_bias_estimator.py #47

leinmeng opened this issue Jan 20, 2020 · 0 comments

Comments

@leinmeng
Copy link

Hello,
Recently I use pyDNase to deal with my ATAC-seq data. I encounter a question like below,and I used python 3.6 version. I don't know how to handle this. Could you give me a hint on that?
Thx!

Determining transposition sites (roughly 60s per 1E6 reads)...
Traceback (most recent call last):
File "/usr/local/bin/dnase_bias_estimator.py", line 85, in
bed_file_for_6mers = generate_6mer_bed(test_bam, genome_dic(genome))
File "/usr/local/bin/dnase_bias_estimator.py", line 51, in generate_6mer_bed
print("\t".join((str(i) for i in (chrom, startbp, endbp, 0, 0, strand))), file=outfile)
File "/usr/lib/python3.6/tempfile.py", line 624, in func_wrapper
return func(*args, **kwargs)
TypeError: a bytes-like object is required, not 'str'

zoi-mibtp added a commit to zoi-mibtp/pyDNase that referenced this issue Jul 13, 2021
NamedTemporaryFile() opens the file in binary mode by default, need to specify "w" mode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant