We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16cb129 commit 4564468Copy full SHA for 4564468
pipelines/wdl/glimpse/low_pass_imputation/input_qc/Glimpse2LowPassImputationQC.wdl
@@ -250,10 +250,13 @@ task ValidateCramsAndIndicesAndSampleIds {
250
blob = storage.Blob.from_uri(cram, client=client)
251
252
# Reload to get metadata
253
- # blob.reload()
+ blob.reload()
254
255
# Get file size
256
- file_size_bytes = blob.size
+ if blob.size is None:
257
+ qc_messages.append(f"Could not retrieve file size for {cram}. Please check that the file exists and that the path is correct.")
258
+ continue
259
+ file_size_bytes = int(blob.size)
260
file_size_gb = file_size_bytes // (1024 ** 3)
261
print(f" - File size for {cram}: {file_size_gb} GB")
262
0 commit comments