Skip to content

Problem with funannote2 annotate parsing from funannotate-addons results #96

Description

@OceaneMion

Hi,
I saw that you Closed #90 as completed via #95,and thanks you for providing a correction, but I am still running into some problem with the parsing of funannotate2, even after downloading the new version.

I think the problem is mainly in the annote.py file:
if "ec_number" in fa:
n["ec_number"][i] = fa["ec_number"]
if "go_terms" in fa:
n["go_terms"][i] = fa["go_terms"]

Here you are taking ec_number, but the notation in the output of eggnog from funannote-addons is EC_number.
Same problem with go_terms from interproscan results it is written as go_term in the output file of interpro not go_terms, and for SignalP in the file it is written as SignalP: not SECRETED, I tried a correction that I do not know if perfectly correct:

cat > ~/fix_funannotate2.sh <<'EOF'
#!/bin/bash
S=$(python -c "import funannotate2,gfftk,os;print(os.path.dirname(funannotate2.file),os.path.dirname(gfftk.file))")
F=${S% }; G=${S# }
sed -i 's/n["ec_number"]/n["EC_number"]/;s/n["go_term"][i]/n["go_terms"][i]/;s/"ec_number" in fa/"EC_number" in fa/;s/fa["ec_number"]/fa["EC_number"]/;s/"go_terms" in fa/"go_term" in fa/;s/fa["go_terms"]/fa["go_term"]/' $F/annotate.py
sed -i 's/InterPro:") for s in v["db_xref"][i]):/InterPro:") for s in v["db_xref"][i] + v["note"][i]):/;s/s.startswith("SECRETED:")/s.startswith(("SECRETED:","SignalP:"))/' $G/stats.py
python -c "import funannotate2.annotate,gfftk.stats" && echo "patchs OK"
EOF
chmod +x ~/fix_funannotate2.sh && ~/fix_funannotate2.sh

But is seems to correct the problem?

"functional": {
  "go_terms": 5296, 
  "interproscan": 7840, ## Instead of 0
  "eggnog": 9449,
  "pfam": 7426,
  "cazyme": 265,
  "merops": 232,
  "busco": 3861,
  "secretion": 505 ## Instead of 0
}

}
}

Also I would like to ask you if you know why on some genes I have a very high number of different pathway and what could be a good way to determine which is not good prediction from the files output ?

Here is an example that I cut because it is very long:
Gd_00293-aad_split#contig_38:0-3546625 ANNEVO mRNA 25658 26938 . + . ID=Gd_00293-aad_split#contig_38:0-3546625-g3.t1;Parent=Gd_00293-aad_split#contig_38:0-3546625-g3;product=hypothetical protein;Dbxref=PFAM:PF13207.13,PFAM:PF12710.14,PFAM:PF00702.33;Note=Uracil phosphoribosyltransferase,COG:S,EggNog:ENOG502EAZH,InterPro:IPR027417 P-loop_NTPase,InterPro:IPR023214 HAD_sf,InterPro:IPR050582 HAD-like_SerB,InterPro:IPR036412 HAD-like_sf,G3DSA:3.40.50.300,PF12710 HAD,PF13207 AAA_17,G3DSA:3.40.50.1000,mobidb-lite disorder_prediction,PTHR43344 PHOSPHOSERINE PHOSPHATASE,SSF52540 P-loop containing nucleoside triphosphate hydrolases,SSF56784 HAD-like,Pathway:Reactome:R-MMU-2173791 TGF-beta receptor signaling in EMT (epithelial to mesenchymal transition),Pathway:Reactome:R-SCE-5689896 Ovarian tumor domain proteases,Pathway:Reactome:R-SSC-432040 Vasopressin regulates renal water homeostasis via Aquaporins,Pathway:Reactome:R-HSA-113418 Formation of the Early Elongation Complex,Pathway:Reactome:R-HSA-5673001 RAF/MAP kinase cascade,Pathway:Reactome:R-HSA-2565942 Regulation of PLK1 Activity at G2/M Transition,Pathway:Reactome:R-MMU-5620912 Anchoring of the basal body to the plasma membrane,Pathway:Reactome:R-CEL-171007 p38MAPK events,Pathway:Reactome:R-HSA-9948001 CASP4 inflammasome assembly,Pathway:Reactome:R-SCE-9696273 RND1 GTPase cycle,Pathway:Reactome:R-MMU-6791226 Major pathway of rRNA processing in the nucleolus and cytosol,Pathway:Reactome:R-HSA-2559586 DNA Damage/Telomere Stress Induced Senescence,Pathway:Reactome:R-HSA-888590 GABA synthesis,Pathway: release,Pathway: reuptake and degradation,Pathway:Reactome:R-GGA-5696400 Dual Incision in GG-NER,Pathway:Reactome:R-HSA-5693616 Presynaptic phase of homologous DNA pairing and strand exchange,Pathway:Reactome:R-HSA-9754706 Atorvastatin ADME,Pathway:Reactome:R-BTA-113418 Formation of the Early Elongation Complex,Pathway:Reactome:R-DME-4608870 Asymmetric localization of PCP proteins,Pathway:Reactome:R-GGA-1810476 RIP-mediated NFkB activation via ZBP1,Pathway:Reactome:R-DME-209461 Ubiquitination and degradation of phosphorylated ARM,Pathway:Reactome:R-RNO-111457 Release of apoptotic factors from the mitochondria,Pathway:Reactome:R-DME-983189 Kinesins,Pathway:Reactome:R-RNO-525793 Myogenesis

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions