Skip to content

Commit 7b25c3d

Browse files
committed
try file
1 parent 09aa66e commit 7b25c3d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pipelines/wdl/glimpse/low_pass_imputation/input_qc/LowPassImputationQC.wdl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,11 @@ task ConvertCramManifestToCramArrays {
164164
touch qc_messages.txt
165165
166166
# convert the cram manifest into arrays of crams, cram indices, and sample ids
167-
header=$(head -n 1 ~{cram_manifest})
167+
head -n 1 ~{cram_manifest} > header.txt
168168
169-
sample_id_col=$(echo "${header}" | tr '\t' '\n' | grep -n "^sample_id$" | cut -d: -f1)
170-
cram_path_col=$(echo "${header}" | tr '\t' '\n' | grep -n "^cram_path$" | cut -d: -f1)
171-
cram_index_col=$(echo "${header}" | tr '\t' '\n' | grep -n "^cram_index_path$" | cut -d: -f1)
169+
sample_id_col=$(cat header.txt | tr '\t' '\n' | grep -n "^sample_id$" | cut -d: -f1)
170+
cram_path_col=$(cat header.txt | tr '\t' '\n' | grep -n "^cram_path$" | cut -d: -f1)
171+
cram_index_col=$(cat header.txt | tr '\t' '\n' | grep -n "^cram_index_path$" | cut -d: -f1)
172172
173173
if [ -z "${sample_id_col}" ] || [ -z "${cram_path_col}" ] || [ -z "${cram_index_col}" ]; then
174174
echo "Unable to determine column positions for sample_id, cram_path, or cram_index_path in the CRAM manifest." >> qc_messages.txt

0 commit comments

Comments
 (0)