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

Error when converting GFF3 to GTF2 #44

Open
ale07alvarez opened this issue Jul 16, 2020 · 3 comments
Open

Error when converting GFF3 to GTF2 #44

ale07alvarez opened this issue Jul 16, 2020 · 3 comments
Labels
conda issue Problem with leaky conda build environments

Comments

@ale07alvarez
Copy link

reformat_transcripts --annotation_files Drosophila_melanogaster.BDGP6.28.100.sorted.gff3 --annotation_format GFF3 --sorted --output_format GTF2 Drosophila_melanogaster.BDGP6.28.100.sorted.gtf2
Traceback (most recent call last):
File "###/opt/anaconda3/envs/plastid/bin/reformat_transcripts", line 11, in
load_entry_point('plastid==0.4.7', 'console_scripts', 'reformat_transcripts')()
File "###/opt/anaconda3/envs/plastid/lib/python3.6/site-packages/pkg_resources/init.py", line 488, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "###/opt/anaconda3/envs/plastid/lib/python3.6/site-packages/pkg_resources/init.py", line 2861, in load_entry_point
return ep.load()
File "###/opt/anaconda3/envs/plastid/lib/python3.6/site-packages/pkg_resources/init.py", line 2461, in load
return self.resolve()
File "###/opt/anaconda3/envs/plastid/lib/python3.6/site-packages/pkg_resources/init.py", line 2467, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "###/opt/anaconda3/envs/plastid/lib/python3.6/site-packages/plastid/init.py", line 44, in
from plastid.genomics.genome_array import (BAMGenomeArray,
File "###/opt/anaconda3/envs/plastid/lib/python3.6/site-packages/plastid/genomics/genome_array.py", line 215, in
from plastid.genomics.map_factories import *
File "libchtslib.pxd", line 2530, in init plastid.genomics.map_factories (/anaconda/conda-bld/plastid_1494346258083/work/plastid-0.4.7/plastid/genomics/map_factories.c:26281)
ValueError: pysam.libchtslib.HTSFile has the wrong size, try recompiling. Expected 88, got 80

@AmmarDharani
Copy link

Hi @ale07alvarez,

I was experiencing the same error. The way I fixed it was switching my environment to Python 2.7 instead of Python 3.6. The error disappeared and I could use Plastid fine afterwards. If you're using Anaconda, make a new environment with Python v. 2.7: conda create --name py2 plastid python=2.7 and then once you activate the new environment conda activate py2, the error will go away.

@joshuagryphon joshuagryphon added the conda issue Problem with leaky conda build environments label May 4, 2022
@joshuagryphon
Copy link
Owner

Hi folks-
It's two years later. Is this still relevant?

@bribibel
Copy link

bribibel commented Aug 7, 2022

Thank you @AmmarDharani! I was having a problem trying to run metagene from a conda-downloaded version, getting (I think) similar errors and a Bio.Alphabet error, but I installed using your method and it seems to be running. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conda issue Problem with leaky conda build environments
Projects
None yet
Development

No branches or pull requests

4 participants