Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@tomck
tomck / keybase.md
Created November 14, 2017 15:22
Keybase Proof

Keybase proof

I hereby claim:

  • I am tomck on github.
  • I am tomkoch (https://keybase.io/tomkoch) on keybase.
  • I have a public key whose fingerprint is B847 E095 F593 6926 88D2 9095 1921 4098 5B4A 2FE5

To claim this, I am signing this object:

@tomck
tomck / aspget.sh
Created June 9, 2016 16:13
Aspera Connect (ASCP) EBI.ac.uk ascession downloader
#!/bin/bash
# When downloading files from EBI, the FTP location is translatable to the Aspera location,
# and while taking an input of Ascession numbers (one per line) this can download them over Aspera Connect.
# For example, a URL for a fastq file may look like this:
# ftp://ftp.sra.ebi.ac.uk/vol1/fastq/ERR107/004/ERR1072624/ERR1072624.fastq.gz
# Moving the first 6 characters of the ascession, the last digit following two zeroes, and the ascession number again
# allows this format to work. If the files you're trying to download are located in vol2 ... voln, change accordingly.
# era-fasp@fasp.sra.ebi.ac.uk:/vol1/fastq/$start/00$lastnum/$file/$file.fastq.gz