Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
vladsavelyev committed Sep 1, 2022
1 parent e8a7e66 commit 8cf7880
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/hgdp_1kg/ingest_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
)

pops_tsv_path = 'samples-pops.tsv'
meta_by_collaborator_id = dict()
meta_by_illumina_id = dict()
meta_by_collaborator_id = {}
meta_by_illumina_id = {}
with to_path(pops_tsv_path).open() as fh:
tsv_file = csv.DictReader(fh, delimiter='\t')
for entry in tsv_file:
Expand All @@ -36,7 +36,7 @@
if illumina_id != 'NA':
meta_by_illumina_id[illumina_id] = entry

meta_by_cpg_id = dict()
meta_by_cpg_id = {}
for s in metamist_samples:
ext_id = s['external_id']
meta = meta_by_illumina_id.get(ext_id) or meta_by_collaborator_id.get(ext_id)
Expand All @@ -59,7 +59,7 @@
pid_map = papi.get_participant_id_map_by_external_ids(
project=project, request_body=[s['external_id'] for s in metamist_samples]
)
except:
except BaseException:
if input('Participant entries do not exist. Create? (y/n): ').lower() == 'y':
# Create new
body = ParticipantUpsertBody(
Expand Down

0 comments on commit 8cf7880

Please sign in to comment.