Skip to content

Commit

Permalink
tar results so hidden files are uploaded
Browse files Browse the repository at this point in the history
  • Loading branch information
bfclarke committed Feb 21, 2024
1 parent 039bd74 commit 3fb1568
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions dnanexus/deeprvat_compute_burdens/src/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ main() {
echo "dx download DeepRVAT/data/protein_coding_genes.parquet"
cp $BASE/data/protein_coding_genes.parquet .

echo "Executing command: $command using config $config"
echo "dx download $config"
echo "Computing burdens"
mkdir -p Calcium/deeprvat/burdens_chunk_$chunk
python deeprvat/deeprvat/deeprvat/associate.py compute-burdens \
--n-chunks $n_chunks --chunk $chunk \
Expand All @@ -51,8 +50,10 @@ main() {
Calcium/deeprvat/burdens_chunk_$chunk

echo "Uploading outputs"
echo "rm config.yaml"
rm -rf deeprvat config.yaml genotypes.h5 variants_90pct10dp_qc.parquet variants.parquet phenotypes.parquet annotations.parquet protein_coding_genes.parquet
echo "tar cf Calcium/deeprvat/burdens_chunk_$chunk.tar Calcium/deeprvat/burdens_chunk_$chunk"
tar cf Calcium/deeprvat/burdens_chunk_$chunk.tar Calcium/deeprvat/burdens_chunk_$chunk
echo "Removing files that should not be uploaded"
rm -rf Calcium/deeprvat/burdens_chunk_$chunk deeprvat config.yaml genotypes.h5 variants_90pct10dp_qc.parquet variants.parquet phenotypes.parquet annotations.parquet protein_coding_genes.parquet
echo "dx-upload-all-outputs"
dx-upload-all-outputs

Expand Down

0 comments on commit 3fb1568

Please sign in to comment.