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

Error when trying to download interaction #2

Open
Rohit-Satyam opened this issue Mar 21, 2024 · 1 comment
Open

Error when trying to download interaction #2

Rohit-Satyam opened this issue Mar 21, 2024 · 1 comment

Comments

@Rohit-Satyam
Copy link

Dear @vitkl

Thanks for developing PItools. I am first time usier of PItools and I was trying to fetch the interactions for Plasmodium from Intact and I encountered the following error:

> pf = fullInteractome(taxid = 36329, database = "IntActFTP", # 36329 - pf taxid
+                         clean = TRUE,
+                         protein_only = TRUE,
+                         directory = "./data_files/", # NULL to keep data files inside R library - default
+                         releaseORdate = NULL) # useful to keep track of the release date e.g. 2019Mar23, but for the first download set to NULL 
... looking for the date of the latest IntAct release ...
... looking for the date of the latest IntAct release ...
... dowloading from IntAct ftp ...
Error in compressFile.default(filename = filename, ..., ext = ext, FUN = FUN) : 
  No such file: ./data_files/IntActRelease_2024Feb16/intact.txt
In addition: Warning messages:
1: In dir.create(dir_last_release) :
  cannot create dir './data_files/IntActRelease_2024Feb16', reason 'No such file or directory'
2: In download.file(url, ...) :
  URL ftp://ftp.ebi.ac.uk/pub/databases/intact/current/psimitab/intact.zip: cannot open destfile './data_files/IntActRelease_2024Feb16/intact2024Feb16.zip', reason 'No such file or directory'
3: In download.file(url, ...) : download had nonzero exit status
4: In unzip(file_name.zip, exdir = dir) :
  error 1 in extracting from zip file

The above error disappears when I remove directory = "./data_files/" but then another error surfaces:

> pf = fullInteractome(taxid = 36329, database = "IntActFTP", # 36329 - pf taxid
+                         clean = TRUE,
+                         protein_only = TRUE,
+                         releaseORdate = NULL) # useful to keep track of the release date e.g. 2019Mar23, but for the first download set to NULL 
... looking for the date of the latest IntAct release ...
... looking for the date of the latest IntAct release ...
... dowloading from IntAct ftp ...
trying URL 'ftp://ftp.ebi.ac.uk/pub/databases/intact/current/psimitab/intact.zip'
Content type 'unknown' length 618183230 bytes (589.5 MB)
==================================================
|--------------------------------------------------|
|==================================================|
trying URL 'https://www.uniprot.org/taxonomy/?query=ancestor:36329&format=tab'
Error in download.file(url, method = method, ...) : 
  cannot open URL 'https://www.uniprot.org/taxonomy/?query=ancestor:36329&format=tab'
In addition: Warning messages:
1: In fread(file_name, header = T, stringsAsFactors = F) :
  Found and resolved improper quoting out-of-sample. First healed line 25417: <<uniprotkb:P16054	uniprotkb:Q05769	intact:EBI-298451|ensembl:ENSMUSP00000094873.3|ensembl:ENSMUSP00000094874.3	intact:EBI-298933|uniprotkb:Q543K3|ensembl:ENSMUSP00000035065.8	psi-mi:kpce_mouse(display_long)|uniprotkb:Prkce(gene name)|psi-mi:Prkce(display_short)|uniprotkb:Pkce(gene name synonym)|uniprotkb:Pkcea(gene name synonym)|uniprotkb:nPKC-epsilon(gene name synonym)	psi-mi:pgh2_mouse(display_long)|uniprotkb:Ptgs2(gene name)|psi-mi:Ptgs2(display_short)|uniprotkb:Cox-2(gene name synonym)|unipro>>. If the fields are not quoted (e.g. field separator does not appear within any field), try quote="" to avoid this warning.
2: In download.file(url, method = method, ...) :
  cannot open URL 'https://rest.uniprot.org/taxonomy/query=ancestor:36329&format=tab': HTTP status was '400 Bad Request'

I see that IntAct provides the interactions here but in miXML 3.0 format which I don't know how to read in R. So any level of help from your side is appreciated.

@vitkl
Copy link
Owner

vitkl commented Mar 21, 2024 via email

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

No branches or pull requests

2 participants