-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/molgenis/molgenis-py-cons…
…ensus into fix/history
- Loading branch information
Showing
7 changed files
with
84 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Script to download the Alissa data from Molgenis | ||
# Raw data of lumc and radboudmumc is in Molgenis, but different headers | ||
# use the files send by e-mail | ||
|
||
# File extension options for the commander are .xlsx and .zip | ||
# In the zip-file a .tsv is created => therefore download a zip-file, | ||
# unzip it and rename the .tsv to a .txt | ||
|
||
downloader=/Users/dieuwke.roelofs-prins/molgenis/tools/emx-downloader/downloader.jar | ||
output_folder=export_jun-2020/raw_lab_files | ||
labs="amc erasmus nki umcg umcu vumc" | ||
url=https://molgenis122.gcc.rug.nl/ | ||
account=admin | ||
if [ "$1" = "" ]; then | ||
echo "Start the script with the password for $url" | ||
exit | ||
fi | ||
|
||
pwd=$1 | ||
|
||
for lab in $labs; | ||
do | ||
output_file="$output_folder/vkgl_raw_$lab.zip" | ||
entity="vkgl_raw_$lab" | ||
java -jar $downloader -f $output_file -u $url -a $account -p $pwd -D -s 10000 $entity | ||
unzip -d $output_folder $output_file | ||
mv ${output_file/zip/tsv} ${output_file/zip/txt} | ||
rm $output_file | ||
done |
8 changes: 4 additions & 4 deletions
8
mcmd_scripts/vkgl_cleanup_raw_labs → ...ripts/vkgl_cleanup_labs_enriched_raw_data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
delete --data vkgl_raw_amc_v2 -f | ||
delete --data vkgl_raw_radboud_v2 -f | ||
delete --data vkgl_raw_lumc_v2 -f | ||
delete --data vkgl_raw_erasmus_v2 -f | ||
delete --data vkgl_raw_radboud_v2 -f | ||
delete --data vkgl_raw_lumc_v2 -f | ||
delete --data vkgl_raw_nki_v2 -f | ||
delete --data vkgl_raw_radboud_v2 -f | ||
delete --data vkgl_raw_umcg_v2 -f | ||
delete --data vkgl_raw_vumc_v2 -f | ||
delete --data vkgl_raw_umcu_v2 -f | ||
delete --data vkgl_raw_vumc_v2 -f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
delete --data vkgl_raw_amc -f | ||
delete --data vkgl_raw_erasmus -f | ||
delete --data vkgl_raw_lumc -f | ||
delete --data vkgl_raw_nki -f | ||
delete --data vkgl_raw_radboud -f | ||
delete --data vkgl_raw_umcg -f | ||
delete --data vkgl_raw_umcu -f | ||
delete --data vkgl_raw_vumc -f |
2 changes: 1 addition & 1 deletion
2
mcmd_scripts/vkgl_upload_raw_labs → ...cripts/vkgl_upload_labs_enriched_raw_data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import vkgl_raw_amc_v2.tsv | ||
import vkgl_raw_erasmus_v2.tsv | ||
import vkgl_raw_radboud_v2.tsv | ||
import vkgl_raw_lumc_v2.tsv | ||
import vkgl_raw_nki_v2.tsv | ||
import vkgl_raw_radboud_v2.tsv | ||
import vkgl_raw_umcg_v2.tsv | ||
import vkgl_raw_umcu_v2.tsv | ||
import vkgl_raw_vumc_v2.tsv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters