Skip to content

Commit

Permalink
Merge pull request #13 from cni/wildcard
Browse files Browse the repository at this point in the history
Expand wildcard usage to capture "non-standard" pfile naming schemes
  • Loading branch information
lmperry authored Oct 18, 2020
2 parents 3b6e6b2 + 8c235f8 commit a32d888
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pfile-mr-classifier",
"label": "CNI: GE P-File Metadata Import and Classification",
"label": "Metadata Import and Classification for GE P-Files",
"description": "Extracts GE P-File header and generates JSON metadata (.metadata.json) which is saved in Flywheel on the P-File's info object. This gear also attempts to determine the P-File's classification (measurement, intent, etc.).",
"maintainer": "Michael Perry <[email protected]>",
"author": "Michael Perry <[email protected]>",
Expand All @@ -9,10 +9,10 @@
"cite": "pfile-tools: GE P-File Utilities (https://github.com/njvack/pfile-tools)",
"license": "BSD-2-Clause",
"flywheel": "0",
"version": "2.3.1",
"version": "2.3.2",
"custom": {
"gear-builder": {
"image": "stanfordcni/pfile-mr-classifier:2.3.1",
"image": "stanfordcni/pfile-mr-classifier:2.3.2",
"category": "converter"
},
"flywheel": {
Expand Down
2 changes: 1 addition & 1 deletion run
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ if [[ -f $input_file ]]; then
header_file=/tmp/pfile_header
if echo "$input_file" | grep -q ".7.zip"; then
echo -e "${CONTAINER} Found pfile zip archive - unzipping, extracting, and generating truncated header..."
unzip -p "$input_file" "*/P*.7.gz" | head -c 1000000 | gunzip > $header_file 2>/dev/null
unzip -p "$input_file" "*/*.7.gz" | head -c 1000000 | gunzip > $header_file 2>/dev/null
elif echo "$input_file" | grep -q ".7.gz"; then
echo -e "${CONTAINER} Found gzipped pfile - extracting and generating truncated header..."
cat $input_file | head -c 1000000 | gunzip > $header_file 2>/dev/null
Expand Down

0 comments on commit a32d888

Please sign in to comment.