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

flair correct error #207

Closed
guandailu opened this issue Jul 12, 2022 · 2 comments
Closed

flair correct error #207

guandailu opened this issue Jul 12, 2022 · 2 comments
Assignees

Comments

@guandailu
Copy link

Command: flair.py correct -q flair.aligned.bed -g ../00_ref/Gallus_gallus.GRCg6a.dna_sm.toplevel.fa -f ../00_ref/Gallus_gallus.GRCg6a.102.gtf

Step 1/5: Splitting junctions from GTF by chromosome: 100%|████████████████████████████████████| 39288/39288 [00:00<00:00, 57308.79it/s]
Step 3/5: Preparing annotated junctions to use for correction: 100%|█████████████████████████████████| 160/160 [00:01<00:00, 140.47it/s]
Step 4/5: Preparing reads for correction: 187929it [00:01, 183547.76it/s]███████████████████████████▌| 158/160 [00:01<00:00, 348.46it/s]
Step 5/5: Correcting Splice Sites: 100%|████████████████████████████████████████████████████████████████| 50/50 [00:00<00:00, 50.59it/s]
Traceback (most recent call last): 90%|█████████████████████████████████████████████████████████▌ | 45/50 [00:00<00:00, 50.73it/s]
File "/group/zhougrp/dguan/nanopore_annotation/Chicken/24_flair/flair/bin/ssCorrect.py", line 425, in
main()
File "/group/zhougrp/dguan/nanopore_annotation/Chicken/24_flair/flair/bin/ssCorrect.py", line 407, in main
with open(os.path.join(tempDir, "%s_inconsistent.bed" % chrom),'rb') as fd:
FileNotFoundError: [Errno 2] No such file or directory: '/group/zhougrp/dguan/nanopore_annotation/Chicken/24_flair/tmp_c484aeea-2f06-4058-9a1a-de123aefec21/MT_inconsistent.bed'
Correction command did not exit with success status

image

@Jeltje
Copy link
Collaborator

Jeltje commented Jul 12, 2022

It looks like Gallus_gallus.GRCg6a.102.gtf has annotations for chromosomes that are not present in Gallus_gallus.GRCg6a.dna_sm.toplevel.fa
Can you make sure that all chromosomes in the first field of the gtf are present with the exact same name in the fasta file?
For instance, if your annotation uses MT but the sequence is present as >chrMT or >mt you will get this error.

The same is true for flair.aligned.bed but I'm assuming you used Gallus_gallus.GRCg6a.dna_sm.toplevel.fa during flair align so that shouldn't be a problem.

@Jeltje
Copy link
Collaborator

Jeltje commented Jul 21, 2022

Correction, I was wrong. I had introduced a bug that caused flair correct to die if no introns were found (which is expected with mitochondrial annotations).
Release v1.6.1 fixes this.

Please reopen this ticket if this didn't solve your problem.

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

3 participants