This program takes the Rapseach output and transforms it in a xml file similar to blast xml format. This is useful when we want to submit a Rapsearch output file to Blast2Go to perform the annotation step.
##Usage:
To transform the output:
In the command line:
python3 RapsearchToXml.py infile.aln outfile.xml "example@mail.com"
The description field is not working after run the blast2go4pipe.I am still figuring it out, but for now, i developed a work around:
To get the correct definition on the final annotation file:
- Run the RapsearchToXml.py script
- Run the Blast2Go4Pipe with the output of th previous script
- Get the output.dat and open it with Blast2Go with graphical interface. You will see the "seq definition" filled with "-NA-" instead of the actual description.
- Run Blast-Description-Annotator (BDA): Menu >> Tools >> Run BDA - It will replace the "-NA-" for the acession numbers.
- Save the annotation to a file
- Then, in the command line:
python3 setDescription.py annoationfile.annot newannotationfile.annot "example@mail.com"
Notes:
- The RapsearchToXml.py uses fake values for the fields wich dont appear in the output of Rapsearch.
- This fields will not interfere with the final result of the Blast2Go annotation.
- It takes multiple hits per query
- The program uses the Entrez module from biopython adapted to NCBI_Mass_Downloader. A big Kudos to the authors;
##Dependencies:
- Python3
##License:
GPLv2
##Known limitations:
For now:
- It only accepts the rapsearchoutput.aln file
- Only works in the Blast2Go edition for comand line Blast2Go4pipe (still figuring it out)
- Only works with a sequence name as "name|size1234", where 1234 is used for the size of the sequence
##Found a bug?
Or maybe just wanto to drop some feedback? Just open an issue on github!