Skip to content

Commit

Permalink
Test using gunzip
Browse files Browse the repository at this point in the history
  • Loading branch information
leexgh committed Aug 22, 2024
1 parent e9fb702 commit bcb5f46
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ jobs:
steps:
- name: 'Checkout git repo'
uses: actions/checkout@v1
- name: Install xz-utils
run: sudo apt-get update && sudo apt-get install -y xz-utils
- name: Extract branch or tag name
# The GITHUB_REF variable is like "refs/head/branch_name" or
# "refs/tag/tag_name". If the tag is prefixed with v, this is a new
Expand All @@ -38,8 +36,6 @@ jobs:
steps:
- name: 'Checkout git repo'
uses: actions/checkout@v1
- name: Install xz-utils
run: sudo apt-get update && sudo apt-get install -y xz-utils
- name: Extract branch or tag name
# The GITHUB_REF variable is like "refs/head/branch_name"
# The format of image tag is e.g. v0.12_grch38_ensembl95
Expand Down
6 changes: 1 addition & 5 deletions scripts/import_mongo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,11 @@ curl https://genome-nexus-static-data.s3.amazonaws.com/mutationassessor4_for_gen
echo "Download completed."

echo "Extracting Mutation assessor data"
apt install -y xz-utils
echo xz-utils version
exho $(xz --version)
xz -k ${DIR}/../data/common_input/mutationassessor4_for_genome_nexus.tsv.xz
gunzip ${DIR}/../data/common_input/mutationassessor4_for_genome_nexus.tsv.gz

echo "Transforming Mutation assessor data"
sed -i '' 's/uniprotId\tSV\thgvspShort\tF_score\tF_impact\tMSA\tMAV/uniprotId\tsv\thgvspShort\tf_score\tf_impact\tmsa\tmav/' ${DIR}/../data/common_input/mutationassessor4_for_genome_nexus.tsv
awk -F'\t' 'BEGIN{OFS="\t"} NR==1{print "_id",$0; next} {print $1","$3,$0}' ${DIR}/../data/common_input/mutationassessor4_for_genome_nexus.tsv > processed_mutaiton_assessor_tsv_file.tsv
rm ${DIR}/../data/common_input/mutationassessor4_for_genome_nexus.tsv.xz
rm ${DIR}/../data/common_input/mutationassessor4_for_genome_nexus.tsv

echo "Importing Mutation assessor data"
Expand Down

0 comments on commit bcb5f46

Please sign in to comment.