Skip to content

Commit

Permalink
Upload bucket auditor linting and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
EddieLF committed Sep 12, 2023
1 parent fb08d62 commit 7c43736
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions metamist/audit/audit_upload_bucket.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,10 @@ async def audit_upload_bucket(
default_analysis_status=default_analysis_status,
)

# Get all the participants in the dataset and their
participant_data = auditor.get_participant_data_for_dataset()
sample_internal_external_id_map = auditor.map_internal_to_external_sample_ids(
participant_data
)
(
sg_sample_id_map,
assay_sg_id_map,
Expand All @@ -216,10 +218,6 @@ async def audit_upload_bucket(
assay_sg_id_map, sg_cram_paths
)

# Find sequencing groups without completed crams
sample_internal_external_id_map = auditor.map_internal_to_external_sample_ids(
participant_data
)
unaligned_sgs = [
(
sg_id,
Expand All @@ -229,8 +227,6 @@ async def audit_upload_bucket(
for sg_id in sg_completion.get('incomplete')
]

# Samples with completed crams can have their sequences deleted - these are the obvious ones

(
reads_to_delete,
reads_to_ingest,
Expand All @@ -247,6 +243,7 @@ async def audit_upload_bucket(
reads_to_ingest, sg_cram_paths
)

# Write the reads to delete, reads to ingest, and unaligned SGs reports
auditor.write_upload_bucket_audit_reports(
bucket,
sequencing_types=sequencing_types,
Expand Down

0 comments on commit 7c43736

Please sign in to comment.