Skip to content

Instantly share code, notes, and snippets.

View apfejes's full-sized avatar

Anthony Fejes apfejes

  • HTuO Biosciences
  • Vancouver
View GitHub Profile
@apfejes
apfejes / gist:95405620abb347e1abc87d5708dbc003
Created January 12, 2018 19:55
A script for NCBI SRA downloads.
import argparse
default_prefix = "ftp.sra.ebi.ac.uk/vol1/fastq/"
ascp_prefix = "ftp.sra.ebi.ac.uk:/vol1/fastq/"
default_protocol = "ftp://"
default_suffix = "*.fastq.gz"
default_ascp_line = "ascp -QT -l 300m -i ~/.ssh/asperaweb_id_dsa.openssh anonftp@ftp.ncbi.nlm.nih.gov:{} {}"
def prepare_url(srr_name, prefix):