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

Problems connecting to ENSEMBL FTP server #130

Open
Faitero opened this issue Feb 7, 2017 · 4 comments
Open

Problems connecting to ENSEMBL FTP server #130

Faitero opened this issue Feb 7, 2017 · 4 comments

Comments

@Faitero
Copy link
Collaborator

Faitero commented Feb 7, 2017

Cannot download ENSEMBL annotation from the cluster. It work on my computer but never from the HPC. Do you have any idea why this is happening?

iCount annotation --release 75 --out_dir iCount_genomes --annotation hs75.gtf.gz homo_sapiens
Executing the following command: iCount annotation --release 75 --out_dir iCount_genomes --annotation hs75.gtf.gz homo_sapiens
Input parameters for function 'annotation' in iCount.genomes.ensembl
    species: homo_sapiens
    release: 75
    out_dir: iCount_genomes
    annotation: hs75.gtf.gz
Input parameters for function 'species' in iCount.genomes.ensembl
    release: 84
[ConnectionError] Problems connecting to ENSEMBL FTP server.
  File "/home/skgtiru/programs/ENV/lib/python3.5/site-packages/iCount-2.0.0.dev0-py3.5.egg/iCount/cli.py", line 438, in main
    result_object = func(**args)

  File "/home/skgtiru/programs/ENV/lib/python3.5/site-packages/iCount-2.0.0.dev0-py3.5.egg/iCount/genomes/ensembl.py", line 141, in annotation
    if species not in iCount.genomes.ensembl.species():

  File "/home/skgtiru/programs/ENV/lib/python3.5/site-packages/iCount-2.0.0.dev0-py3.5.egg/iCount/genomes/ensembl.py", line 105, in species
    ftp = get_ftp_instance()

  File "/home/skgtiru/programs/ENV/lib/python3.5/site-packages/iCount-2.0.0.dev0-py3.5.egg/iCount/genomes/ensembl.py", line 54, in get_ftp_instance
    raise ConnectionError('Problems connecting to ENSEMBL FTP server.')

@JureZmrzlikar
Copy link
Contributor

  • Log to HPC machine
  • start interactive python session by typing python (or python3)
  • import ftplib
  • ftp = ftplib.FTP('ftp.ensembl.org')
  • ftp.login()

Last or second last command should fail. Please paste the error message here.

@Faitero
Copy link
Collaborator Author

Faitero commented Feb 7, 2017

$ python3
Python 3.5.1 (default, Apr 18 2016, 19:33:49) 
[GCC 4.7.2 20121015 (Red Hat 4.7.2-5)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import ftplib
>>> ftp = ftplib.FTP('ftp.ensembl.org')
>>> ftp.login()
'230 Anonymous access granted, restrictions apply'

@JureZmrzlikar
Copy link
Contributor

Strange, this is a succes, not an error... Can you try again with the original command?

@Faitero
Copy link
Collaborator Author

Faitero commented Feb 7, 2017

It works on a interactive session... I'll try again with SGE scheduler job. Let you know

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