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

product info not printout in tbl #74

Open
shuhailaMSR opened this issue Aug 26, 2021 · 2 comments
Open

product info not printout in tbl #74

shuhailaMSR opened this issue Aug 26, 2021 · 2 comments
Assignees
Labels

Comments

@shuhailaMSR
Copy link

hi, I am using this convert_gff3_to_ncbi_tbl.py to convert gff3 into tbl and it work but there are problem that it does not print out protein_id and product in tbl.

INPUT
##gff-version 3
JA01000001 AUG gene 91 2658 . - . ID=g1;locus_tag=K_g1
JA01000001 AUG mRNA 91 2658 . - . ID=g1.t1;Parent=g1;locus_tag=K_g1;protein_id=K_g1;product=Transcription factor
JA01000001 AUG CDS 94 2658 . - 0 ID=g1.t1.cds;Parent=g1.t1;locus_tag=K_g1
JA01000001 AUG exon 94 2658 . - . ID=g1.t1.exon1;Parent=g1.t1;locus_tag=K_g1

EXPECTED

Feature gnl|WGS:JA|SeqID|gb|JA01000001
2658 91 gene
locus_tag K_g1
2658 94 mRNA
protein_id K_g1
product Transcription factor
2658 94 CDS

but the
OUTPUT

Feature gnl|WGS:JA|SeqID|gb|JA01000001
2658 91 gene
locus_tag K_g1
2658 94 mRNA
2658 94 CDS

@jorvis jorvis self-assigned this Aug 26, 2021
@jorvis jorvis added the bug label Aug 26, 2021
@jorvis
Copy link
Owner

jorvis commented Aug 26, 2021

Interesting. This section of code first checks to see if the gff3 has a polypeptide line and uses the annotation there, else falls back to the RNA feature, which yours has.

https://github.com/jorvis/biocode/blob/master/lib/biocode/tbl.py#L147

Are you comfortable posting your (compressed) GFF3 to this issue?

@shuhailaMSR
Copy link
Author

shuhailaMSR commented Aug 26, 2021

do you mean gff3 file?
k_gff3.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants