BinPro / CONCOCT

Clustering cONtigs with COverage and ComposiTion
Other
119 stars 48 forks source link

Error during concoct_coverage_table.py: TypeError #303

Open aparada opened 2 years ago

aparada commented 2 years ago

Hello, I am running into the following error when trying to get the coverage table. I'm running concoct through conda. My read files have been sorted and indexed and all files are in the same directory. Any thoughts on what may be going on and how to fix? Thanks! Alma


$ concoct_coverage_table.py contigs_10K.bed OC*sorted.bam > coverage_table.tsv
Traceback (most recent call last):
  File "/scratch/users/aparada/miniconda3/envs/concoct_env/bin/concoct_coverage_table.py", line 91, in <module>
    generate_input_table(args.bedfile, args.bamfiles, samplenames=samplenames)
  File "/scratch/users/aparada/miniconda3/envs/concoct_env/bin/concoct_coverage_table.py", line 41, in generate_input_table
    sys.stderr.write(out)
TypeError: write() argument must be str, not bytes
michoug commented 2 years ago

Hi, I ran it one sample at a time and it worked for me for some reasons

arijitnus commented 1 year ago

Hi @aparada @michoug I can run one sample at a time, but doesn't work for all files at a time. Is there a way to combine the results into one coverage table? Kindly guide, if you managed to run for all files or somehow combined results from all files.