Question: Error with hera
0
gravatar for cristian
20 months ago by
cristian220
cristian220 wrote:

Hi,

I get an error when I build the index.

Installation:

git clone https://github.com/bioturing/hera.git output/software/hera
cd output/software/hera/
chmod +x build.sh
./build.sh

Building index:

./output/software/hera/build/hera_build --fasta output/genome/celegans/ref/seq/celegans.fa --gtf output/genome/celegans/ref/annotation/celegans.gtf --outdir output/genome/celegans/ref/index/hera/

Output:

Scan reference sequence ...
Scan gtf file...
Extract transcript sequence
Traceback (most recent call last):
  File "./output/software/hera/build/hera_build", line 195, in <module>
    write_index(total_byte, gene_info)
  File "./output/software/hera/build/hera_build", line 129, in write_index
    fi.write(chr)
TypeError: a bytes-like object is required, not 'str'

My default version of python is 3.

Can you please help me fix this error?

Thanks.

Best,

C.

hera • 603 views
ADD COMMENTlink modified 20 months ago by WouterDeCoster38k • written 20 months ago by cristian220
1

Thank you for the bug report and sorry for the inconvenience. We have applied a patch to fix it, and now it should work with both versions of Python. Please get the updated version and it will resolve the problem.

Thank you! BioTuring Algorithm Team.

ADD REPLYlink written 20 months ago by sonpham550
3
gravatar for cristian
20 months ago by
cristian220
cristian220 wrote:

Thanks WouterDeCoster: A: Hera: A new tool for RNA-Seq analysis

I have created a conda environment with python 2 and when I activate it and then run the Hera command, it works.

source activate python2env
(python2env) ➜  project ./output/software/hera/build/hera_build --fasta output/genome/celegans/ref/seq/celegans.fa --gtf output/genome/celegans/ref/annotation/celegans.gtf --outdir output/genome/celegans/ref/index/hera/

Scan reference sequence ...
Scan gtf file...
Extract transcript sequence
Hera is a program developed by BioTuring for RNA-Seq analysis.
Please contact info@bioturing.com if you need further support
Index transcripts in: output/genome/celegans/ref/index/hera/transcripts.fasta
Number of sequence  : 58941
ADD COMMENTlink modified 20 months ago • written 20 months ago by cristian220
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1356 users visited in the last hour