From 1089c8b31f69a3f54a6a32a9cbc3abffeaa6c45a Mon Sep 17 00:00:00 2001 From: Ruiyan Hou <56068158+houruiyan@users.noreply.github.com> Date: Wed, 6 Sep 2023 16:35:38 +0800 Subject: [PATCH] Update computing_tips.md add tips to download fastq file --- computing_tips.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/computing_tips.md b/computing_tips.md index 475dbe6..537dfe9 100644 --- a/computing_tips.md +++ b/computing_tips.md @@ -17,8 +17,22 @@ * Change the configuration setting * Add jupyter kernel with `ipykernel` -## SRA/fastq at EBI database -* Ruiyan add more links +## How to download raw fastq file +* Method 1 : `prefetch $SRA_ID` & `fastq-sump --gzip` +* Method 2 : Search the SRA_ID in EBI database & download by using `axel` +* Method 3 : Search the SRA_ID in EBI database & download by using `ascp` + Example code: +```bash +#!/bin/bash + +for i in {51..52} +do +echo $i +ascp -QT -l 300m -P33001 -i /home/houruiyan/.conda/envs/Py3/etc/asperaweb_id_dsa.openssh era-fasp@fasp.sra.ebi.ac.uk:/vol1/fastq/SRR116/0${i}/SRR116539${i}/SRR116539${i}_1.fastq.gz . +ascp -QT -l 300m -P33001 -i /home/houruiyan/.conda/envs/Py3/etc/asperaweb_id_dsa.openssh era-fasp@fasp.sra.ebi.ac.uk:/vol1/fastq/SRR116/0${i}/SRR116539${i}/SRR116539${i}_2.fastq.gz . +done +``` + ## Misc * Python module auto reload [links ?]