Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uniprot fasta download #739

Closed
mwfoster opened this issue Jun 28, 2022 · 5 comments
Closed

Uniprot fasta download #739

mwfoster opened this issue Jun 28, 2022 · 5 comments
Assignees

Comments

@mwfoster
Copy link

The fasta download feature is not working correctly possibly due to update of Uniprot. The fasta file has this error in the header: {"url":"http://rest.uniprot.org/uniprotkb/query=reviewed:yes%20AND%20proteome:UP000002311&format=fasta&include=no","messages":["The 'accession' value has invalid format. It should be a valid UniProtKB accession"]}

@fcyu
Copy link
Member

fcyu commented Jun 28, 2022

Hi @mwfoster ,

I can't reproduce the error:

19:58:34 INFO : Executing: G:\bin\philosopher_v4.2.2_windows_amd64\philosopher.exe workspace --init --nocheck --temp C:\Users\yufe\AppData\Local\Temp\322d51b7-9856-4f3f-8aed-4164fd7a0bd7
19:58:34 INFO : Process output: 
19:58:34 INFO : Monitoring directory for file changes: G:\dev
19:58:34 INFO : Executing: G:\bin\philosopher_v4.2.2_windows_amd64\philosopher.exe database --reviewed --contam --contamprefix --id UP000002311
19:58:35 INFO : Process output: 
19:58:35 INFO : Executing: G:\bin\philosopher_v4.2.2_windows_amd64\philosopher.exe workspace --clean --nocheck
19:58:35 INFO : Process output: 
19:58:35 INFO : Detected new or changed file: 2022-06-28-decoys-reviewed-contam-UP000002311.fas
19:58:35 INFO : Extension: [fas]
19:58:35 INFO : Is regular file: true; Is not inside .meta folder: true; Extension starts with .fa: true

Best,

Fengchao

@fcyu fcyu unassigned prvst Jun 28, 2022
@fcyu fcyu removed the Philosopher label Jun 28, 2022
@mwfoster
Copy link
Author

mwfoster commented Jun 29, 2022 via email

@fcyu
Copy link
Member

fcyu commented Jun 29, 2022

Hi Matt,

You are right! The fasta file is small and there are only contaminant proteins. Felipe @prvst , can you take a look?

Also, it seems that Philosopher does not report any errors if something is wrong in some modules. Here (Nesvilab/philosopher#447) is another example. I don't think it is a good practice to suppress the errors when something is going wrong.

Best,

Fengchao

@prvst
Copy link

prvst commented Jun 29, 2022

Hi Matt. I can reproduce your error. According to the message from Philosopher, the end point is not valid anymore. The UniProt team just updated their code base and the website, and they added a lot of changes. Unfortunately, their changes alter the REST API, which is how we fetch the data. I'll take a look at the new documentation and try to have the database working by tomorrow.

@fcyu fcyu closed this as completed Jul 1, 2022
@fcyu
Copy link
Member

fcyu commented Jul 1, 2022

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

No branches or pull requests

3 participants