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

[Bug]: IndexError: list index out of range #3577

Closed
shin0727 opened this issue Dec 5, 2024 · 1 comment
Closed

[Bug]: IndexError: list index out of range #3577

shin0727 opened this issue Dec 5, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@shin0727
Copy link

shin0727 commented Dec 5, 2024

Describe the bug

I got error in
"flair/lib/python3.10/site-packages/flair/gtf_to_bed.py", line 108, in
if blockcount > 1 and blockstarts[0] > blockstarts[1]: # need to reverse exons"

IndexError: list index out of range

To Reproduce

flair collapse -g ${REF} --gtf ${EGAPX_GTF} -q ../../02_correct/${PREFIX}/${PREFIX}_all_corrected.bed -r ${FASTQ} --stringent --check_splice --generate_map --annotation_reliant generate --output ${PREFIX} --thread ${THREAD}

Expected behavior

${PREFIX}_scaf.annotated_transcripts.bed

Logs and Stack traces

Traceback (most recent call last):
  File "/home/junkim/tools/miniconda3/envs/flair/lib/python3.10/site-packages/flair/gtf_to_bed.py", line 108, in <module>
    if blockcount > 1 and blockstarts[0] > blockstarts[1]:  # need to reverse exons
IndexError: list index out of range

Screenshots

image

Additional Context

ModuleNotFoundError: No module named 'torch'

Environment

ModuleNotFoundError: No module named 'torch'

@shin0727 shin0727 added the bug Something isn't working label Dec 5, 2024
@helpmefindaname
Copy link
Collaborator

Hi @shin0727
it looks to me, like you are trying to use a different library that has the same name as ours.
I can ensure you that in our library:

  • flair collapse isn't a valid command, as we are not providing any installable scripts.
  • flair/gtf_to_bed.py doesn't exist.
  • torch would be installed as a dependency when installing flair.

If you intend to use flair-brookslab then you might be better off to contact the authors of that library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants