Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
wgetENAHTS
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GIPhy
wgetENAHTS
Commits
3183ede3
Commit
3183ede3
authored
1 year ago
by
Alexis CRISCUOLO
Browse files
Options
Downloads
Patches
Plain Diff
4.2
parent
95474069
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
wgetENAHTS.sh
+14
-8
14 additions, 8 deletions
wgetENAHTS.sh
with
14 additions
and
8 deletions
wgetENAHTS.sh
+
14
−
8
View file @
3183ede3
...
...
@@ -4,7 +4,7 @@
# #
# wgetENAHTS: downloading HTS files from ENA #
# #
COPYRIGHT
=
"Copyright (C) 2021-202
2
Institut Pasteur"
#
COPYRIGHT
=
"Copyright (C) 2021-202
3
Institut Pasteur"
#
# #
# This program is free software: you can redistribute it and/or modify it under the terms of the GNU #
# General Public License as published by the Free Software Foundation, either version 3 of the License, or #
...
...
@@ -17,12 +17,13 @@
# You should have received a copy of the GNU General Public License along with this program. If not, see #
# <http://www.gnu.org/licenses/>. #
# #
# Contact: #
# Contact:
#
# Alexis Criscuolo alexis.criscuolo@pasteur.fr #
# Genome Informatics & Phylogenetics (GIPhy) giphy.pasteur.fr #
# Centre de Ressources Biologiques de l'Institut Pasteur (CRBIP) research.pasteur.fr/en/b/VTq #
# Julien Guglielmini julien.guglielmini@pasteur.fr #
# Genome Informatics & Phylogenetics (GIPhy) giphy.pasteur.fr #
# Bioinformatics and Biostatistics Hub research.pasteur.fr/team/bioinformatics-and-biostatistics-hub #
# Dpt. Biologie Computationnelle research.pasteur.fr/department/computational-biology #
# Bioinformatics and Biostatistics Hub research.pasteur.fr/team/bioinformatics-and-biostatistics-hub #
# Dpt. Biologie Computationnelle research.pasteur.fr/department/computational-biology #
# Institut Pasteur, Paris, FRANCE research.pasteur.fr #
# #
##############################################################################################################
...
...
@@ -33,7 +34,10 @@
# = VERSIONS = #
# ============ #
# #
VERSION
=
4.1.220307acjg
#
VERSION
=
4.2.231202acjg
#
# + fixed bug to the modified file report format #
# #
# VERSION=4.1.220307acjg #
# + fixed bugs with option -p #
# #
# VERSION=4.0.211129acjg #
...
...
@@ -344,11 +348,13 @@ do
sleep
0.1 &>/dev/null
;
let
DL++
;
echo
-n
"."
;
while
true
;
do
$WGET_READ
"
$FILE_REPORT$ACCN
"
2>&1
&&
break
;
done
|
sed
-n
'$p'
|
cut
-f2-4
|
tr
'\t'
'\n'
>
$OUTDIR
/
$ACCN
.weh
;
# file report cols: 1 2 3 4 5 6 7 8 9 10 11 12
# f fastq_ftp fastq_bytes fastq_md5 bam_ftp bam_bytes bam_md5 submitted_ftp submitted_bytes submitted_md5 sra_ftp sra_bytes sra_md5 run_accession
while
true
;
do
$WGET_READ
"
$FILE_REPORT$ACCN
"
2>&1
&&
break
;
done
|
sed
-n
'$p'
|
cut
-f1-3
|
tr
'\t'
'\n'
>
$OUTDIR
/
$ACCN
.weh
;
echo
-n
"."
;
if
[
!
-s
$OUTDIR
/
$ACCN
.weh
]
then
while
true
;
do
$WGET_READ
"
$FILE_REPORT$ACCN
"
2>&1
&&
break
;
done
|
sed
-n
'$p'
|
cut
-f
2-4
|
tr
'\t'
'\n'
>
$OUTDIR
/
$ACCN
.weh
;
while
true
;
do
$WGET_READ
"
$FILE_REPORT$ACCN
"
2>&1
&&
break
;
done
|
sed
-n
'$p'
|
cut
-f
1-3
|
tr
'\t'
'\n'
>
$OUTDIR
/
$ACCN
.weh
;
echo
-n
"."
;
fi
if
[
!
-s
$OUTDIR
/
$ACCN
.weh
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment