Open ferninfm opened 2 years ago
The installation instructions specify Python =>3.6,<3.9, thus 3.9 is not supported. I got the Interpro db from the same date and it downloaded without issues not more than a few weeks ago.
1) I also thought interpro was being upgraded, but it wasn't. There is no error collection in process.call. The download process is slow compared to using wget on the terminal and finishes with an broken file. Then there is no gunzip bit the old XML remains. As long as the old interpro.xml is present the update process continues. It is only a problem when using -force. It simply does not update.
The GitHub version of funnanotate has compatibility issues with python 3.8 which is why I use a fresh conda environment with python 3.9
Irrespective of this. Why does .get modify the specified string to http:// from ftp:// ? That seems undesirable? I modified the resources file to asses the behaviour.
Now you mention it, I had issues with 3.8 too, but I ended installing 3.7.10 and everything works (in case you want to try). Can't comment on the other stuff though.
It is ok, as I said I cheated to get the problem solved and it simply worked...
Hi,
Sorry that I do not have time to make this properly, meditate and push useful changes to the code. There are some issues in setupDB.py that do not allow it to work properly when downloading the Pfam and interpro databases. Because I was in a hurry I used a temporary solution editing setupDB.py... In general it is not very useful, but after quite some time I did not manage to solve the problems in a useful way.
A useful edit:
1) Change line 470 from the deprecated (python 3.9)
for x in elem.getchildren():
tofor x in list(elem):
https://github.com/nextgenusfs/funannotate/blob/6d098c265e83b63c42918b486b9324ba4beb3b87/funannotate/setupDB.py#L470Some problems I could not solve properly:
2) The system used to download the databases does not work when using
ftp://ftp.server/file
. The address gets consistently changed tohttp://ftp.server/file
no matter what is writen in DBURL of resources.py. It must have to do with DBURL.get and not wgrep. I solved the situation by imposing a string value.3) The date of the interpro datafile is different this time around. The month is capitalized. So is not
%d-%b-%Y
(10-Mar-22) but%d-%^b-%Y
(10-MAR-22). I tried to change both instances of %b to %^b, but this did not work.https://github.com/nextgenusfs/funannotate/blob/6d098c265e83b63c42918b486b9324ba4beb3b87/funannotate/setupDB.py#L477 https://github.com/nextgenusfs/funannotate/blob/6d098c265e83b63c42918b486b9324ba4beb3b87/funannotate/setupDB.py#L480
Same as before I edited setupDB.py imposing a hard string value which did the job (10-Mar-22).... Now I can annotate.
Cheers, Thanks for everything