forked from CRG-Beato/utils_beatolab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfetch_fastqs_from_run.sh
executable file
·39 lines (29 loc) · 1.28 KB
/
fetch_fastqs_from_run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
#==================================================================================================
# Created on: 2016-02-08
# Usage: ./fetch_fastqs_from_run.sh
# Author: Javier Quilez (GitHub: jaquol)
# Goal: copy FASTQ files from the 4DGenome workstation to the CRG cluster
#==================================================================================================
#==================================================================================================
# CONFIGURATION VARIABLES AND PATHS
#==================================================================================================
# variables
run_id=180116_NS500645_0125_AHCFHWBGX5_RUN120_4DG8
release_date=2018-01-16
scp=`which scp`
project=4DGenome
data_type='hic'
# paths
[email protected]:/home/four-d/Desktop/$run_id/Data/Intensities/BaseCalls
if [[ $project == "4DGenome" ]]; then
ODIR=/users/project/4DGenome/sequencing/$release_date
else
ODIR=/users/mbeato/projects/data/$data_type/raw/$release_date
fi
mkdir -p $ODIR
#==================================================================================================
# COMMANDS
#==================================================================================================
$scp -v $IDIR/*fastq.gz $ODIR
rm -f $ODIR/Undetermined*