Closed abretaud closed 4 years ago
@abretaud I'm taking a look now.
I see what I did wrong. If a gene with an mRNA subtype then process as an mRNA:
I was not doing that check. I think that will fix it, but we'll see.
Also isn't sending the exon, which is a larger problem. The top versus the bottom.
addTranscript {"suppressEvents":false,"features":[{"name":"Merlin_1_mRNA","location":{"strand":1,"fmin":1,"fmax":691},"type":{"cv":{"name":"sequence"},"name":"mRNA"}}],"sequence":"Merlin","password":"password","organism":"test_cds","clientToken":"ignore","suppressHistory":false,"username":"admin@local.host"}
addTranscript {"features":[{"children":[{"children":[{"location":{"strand":1,"fmin":1,"fmax":691},"type":{"cv":{"name":"sequence"},"name":"CDS"}},{"location":{"strand":1,"fmin":1,"fmax":691},"type":{"cv":{"name":"sequence"},"name":"exon"},"orig_id":"Merlin_1_CDS"}],"location":{"strand":1,"fmin":1,"fmax":691},"type":{"cv":{"name":"sequence"},"name":"exon"},"orig_id":"Merlin_1_exon"}],"name":"Merlin_1_mRNA","location":{"strand":1,"fmin":1,"fmax":691},"type":{"cv":{"name":"sequence"},"name":"mRNA"},"orig_id":"Merlin_1_mRNA"}],"clientToken":"14540178701615202211144956811","track":"Merlin","operation":"add_transcript","username":"admin@local.host"}
Working:
current:
Not adding children . . so will have to fix this.
The problem is that it is checking feature by feature instead the whole thing as a group (i.e., should be using rec
instead of rec.features
. this should be more efficient.
So, the problem is that it was trying to write out only a single line of GFF3 at a time. I'll look back through the code, but it might have been serendipity that we didn't run into this sooner.
Anyway, if you look at #33 you can see the start of my fixes.
Fixed in #33
@nathandunn it looks like there is a problem with the new load_gff3 method, could you look into it?
I get this error when trying to export CDS or peptide fasta:
And when I export the GFF, CDS features are missing (which explain the error above I guess). After loading Merlin.gff, the exported GFF should look like this, but instead it looks like this:
I've added a few tests for data export in GFF/VCF/FASTA formats, some of them are failing due to this bug