Installing and running ascp
is a PITA.
Here's the private key you need (at least for NCBI/ENA downloads).
ascp
is now available in a Docker container. This makes things easier.
Do this:
# We need the not-actually-secret private key that comes packaged with Aspera Connect but is inexplicably not used as the default
# when no key is specified. Here's one I prepared earlier.
mkdir -p ~/.aspera/connect/etc/
curl https://gist.githubusercontent.com/pansapiens/67822d6d642252e73190e74bbc666924/raw/aa401311e7b8d7dd1060bda2a5662c63614cd148/asperaweb_id_dsa.openssh >~/.aspera/connect/etc/asperaweb_id_dsa.openssh
# We grab this official container image: https://hub.docker.com/r/ibmcom/aspera-cli/
singularity pull docker://ibmcom/aspera-cli
# Test with:
singularity exec aspera-cli_latest.sif \
ascp -T -l640M \
-i ~/.aspera/connect/etc/asperaweb_id_dsa.openssh \
[email protected]:1GB .
# Or real data from NCBI/GEO/SRA
singularity exec aspera-cli_latest.sif \
ascp -Tr -k1 -l100M \
-i ~/.aspera/connect/etc/asperaweb_id_dsa.openssh \
[email protected]:/geo/samples/GSM2795nnn/GSM2795535/suppl/GSM2795535_Rao-2017-HIC001_30.hic .
# Or data from ENA
singularity exec aspera-cli_latest.sif \
ascp -QT -k1 -l100M -P33001 \
-i ~/.aspera/connect/etc/asperaweb_id_dsa.openssh \
[email protected]:/vol1/fastq/SRR205/009/SRR2052339/SRR2052339_2.fastq.gz .
Brilliant! thanks