Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
diphtOscan
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Biodiversity and Epidemiology of Bacterial Pathogens
diphtOscan
Commits
1147a370
Commit
1147a370
authored
1 year ago
by
mrethore
Browse files
Options
Downloads
Patches
Plain Diff
Adding options to make HTTPS protocol works
parent
4e1861f1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!10
Absolute paths
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
data/resistance/update_database_resistance.sh
+2
-4
2 additions, 4 deletions
data/resistance/update_database_resistance.sh
module/updating_database.py
+1
-2
1 addition, 2 deletions
module/updating_database.py
with
3 additions
and
6 deletions
data/resistance/update_database_resistance.sh
+
2
−
4
View file @
1147a370
...
...
@@ -3,8 +3,8 @@
PATH_DB
=
$(
dirname
"
$0
"
)
DATE
=
$(
date
"+%Y-%m-%d"
)
## Update Antimicrobial_resistance/AMRFinderPlus
wget
--quiet
--recursive
--no-host-directories
--cut-dirs
=
6 https://ftp.ncbi.nlm.nih.gov/pathogen/Antimicrobial_resistance/AMRFinderPlus/database/latest/
-P
$PATH_DB
/
$DATE
wget
--quiet
--recursive
--no-parent
--no-host-directories
--cut-dirs
=
6
-e
robots
=
off https://ftp.ncbi.nlm.nih.gov/pathogen/Antimicrobial_resistance/AMRFinderPlus/database/latest/
-P
$PATH_DB
/
$DATE
version_DB
=
$(
cat
$PATH_DB
/
$DATE
/version.txt
)
echo
"Looking up databases at https://ftp.ncbi.nlm.nih.gov/pathogen/Antimicrobial_resistance/AMRFinderPlus/database/"
echo
"Downloading AMRFinder database version
$version_DB
"
...
...
@@ -38,6 +38,4 @@ echo -e "Corynebacterium_diphtheriae\tCorynebacterium_diphtheriae\t0" >> $PATH_D
PATH_DB
=
"
$PATH_DB
/
$DATE
"
VERSION
=
"
$DATE
"
echo
"Database directory: '
$PATH_DB
'"
echo
"Database version:
$DATE
.1"
echo
"Database version:
$DATE
.1"
\ No newline at end of file
This diff is collapsed.
Click to expand it.
module/updating_database.py
+
1
−
2
View file @
1147a370
...
...
@@ -18,5 +18,4 @@ def update_database(arguments, mlst_database:tuple, tox_database:tuple):
print
(
"
... done
\n
"
)
os
.
system
(
'
bash
'
+
arguments
.
path
+
'
/data/resistance/update_database_resistance.sh
'
)
print
(
"
... done
\n\n\n
"
)
\ No newline at end of file
print
(
"
... done
\n\n\n
"
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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