Closed muol closed 7 years ago
Most likely this is because of comments in the GFF file. Can you try again after stripping comments from your GFF file:
grep -v '^#' foo.gff3 > foo_comments_stripped.gff3
Building chain file is the most time consuming step of flo. If you didn't remove the chain file created by flo at run/liftover.chn
, it won't create it again.
Thanks, but that didn't help. Next up I began removing all non protein coding gene features and eventually ended up with a one gene skeleton gff3, plus only the matching chromosome in source and target fastas. The error unfortunately remains.
source gff3 (tabs replaced with spaces in this post):
Chr1 test gene 29510 37126 . + . ID=gene1 Chr1 test mRNA 29510 37126 . + . ID=rna_gene1-1;Parent=gene1 Chr1 test CDS 29510 34762 . + 0 ID=cds_gene1-1;Parent=rna_gene1-1 Chr1 test CDS 35888 37126 . + 0 ID=cds_gene1-2;Parent=rna_gene1-1 Chr1 test exon 29510 34762 . + . ID=exon_gene1-1;Parent=rna_gene1-1 Chr1 test exon 35888 37126 . + . ID=exon_gene1-2;Parent=rna_gene1-1
lifted.gff3 (tabs replaced with spaces in this post):
TargetChr1 test gene 49342 56961 . + . ID=gene1 TargetChr1 test mRNA 49342 56961 . + . ID=rna_gene1-1;Parent=gene1 TargetChr1 test CDS 49342 54594 . + 0 ID=cds_gene1-1;Parent=rna_gene1-1 TargetChr1 test CDS 55723 56961 . + 0 ID=cds_gene1-2;Parent=rna_gene1-1 TargetChr1 test exon 49342 54594 . + . ID=exon_gene1-1;Parent=rna_gene1-1 TargetChr1 test exon 55723 56961 . + . ID=exon_gene1-2;Parent=rna_gene1-1
So it appears the new landmark Id and all features have been lifted, yet rake errors out with NoMethodError: undefined method `last' for nil:NilClassi in the next step.
Lift over is done by calling out to UCSC's liftOver
command. After that, process_gff
function (written by us) is called to ensure the output GFF3 (lifted.gff3) is valid. That is where flo is failing: process_gff
knows only to process mRNA/transcript, exon, and CDS annotations. I am sorry, I realise this limitation is not documented in README.
process_gff
is hardly a 15 line function. You can skip it and process lifted.gff3 yourself through a custom script instead. Please see https://github.com/wurmlab/flo#lift-over and process_gff
for advice.
I have updated flo - this shouldn't be a problem now.
Hi, I receive the error above during annotation liftover with flo, and would appreciate some help. The output directory contains completed lifted.gff3 and unlifted.gff3 before rake aborts.
My system: Ubuntu 12.04 x64 Ruby 2.3.1 Bioruby 1.5.1 flo and its dependencies have been installed as described.
Thanks
Log: