Skip to content

Commit

Permalink
correction
Browse files Browse the repository at this point in the history
  • Loading branch information
MattWellie committed Sep 15, 2023
1 parent cb3888a commit 9b1f0d3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions scripts/new_test_subset.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ def main(
sample_id=new_s_id,
meta=new_meta,
type=sg_assay['type'],
external_ids=sg_assay['externalIds'],
# external_ids=sg_assay['externalIds'], ## issue raised
),
)

Expand Down Expand Up @@ -770,7 +770,6 @@ def get_assays_for_sgs(project: str, sg_ids: set[str]) -> dict[str, dict]:
sequencingGroups(id: {in_: $samples}) {
id
assays {
externalIds
id
meta
type
Expand All @@ -781,9 +780,7 @@ def get_assays_for_sgs(project: str, sg_ids: set[str]) -> dict[str, dict]:
""",
variables={'samples': list(sg_ids), 'project': project},
)
return {
sg['id']: sg['assays'][0] for sg in assays['project']['sequencingGroups'][0]
}
return {sg['id']: sg['assays'][0] for sg in assays['project']['sequencingGroups']}


def process_existing_test_samples(
Expand Down

0 comments on commit 9b1f0d3

Please sign in to comment.