File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
pipelines/wdl/glimpse/low_pass_imputation/input_qc Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments