-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Changed parallelization within tensorize.sh so it runs in parallel within docker rather than parallel docker - about a 10x speed up. Added hdf5-tools to the docker for testing the hd5 files. Added validate_tensors.sh that can test that a generated hd5 file is complete. * Made parallel use the NUM_JOBS flag to see how many run in parallel. * Fixed defaults for min and max sample id when not provided. * Fixed permissions on validate_tensors.sh so it is executable * Removed redundant line in tensorize.sh and update documentation about scaling instance types and debugging tensorization.
- Loading branch information
Showing
6 changed files
with
123 additions
and
40 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
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,15 @@ | ||
# use this script to validate the tensors created by the tensorize.sh script | ||
# expects two positional arguments: directory containing the tensors and the number of threads to use | ||
# example: ./validate_tensors.sh /mnt/disks/tensors/ 20 | tee completed_tensors.txt | ||
# the output will be in the following form: | ||
# OK - /mnt/disks/tensors/ukb1234.hd5 | ||
# BAD - /mnt/disks/tensors/ukb5678.hd5 | ||
|
||
|
||
INPUT_TENSORS_DIR=$1 | ||
NUMBER_OF_THREADS=$2 | ||
|
||
|
||
find ${INPUT_TENSORS_DIR}/*.hd5 | \ | ||
xargs -P ${NUMBER_OF_THREADS} -I {} \ | ||
bash -c "h5dump -n {} | (grep -q 'HDF5 \"{}\"' && echo 'OK - {}' || echo 'BAD - {}')" |