Skip to content

Commit 51ee08d

Browse files
Changed validation of challenge names
1 parent 6cb8102 commit 51ee08d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lrgasp_validation/validation.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,13 +168,13 @@ def validate_library_to_metadata(experiment_json):
168168
def challenges_are_valid(challenges, experiment_json):
169169
for challenge in challenges:
170170
split_challenge = challenge.split("_")
171-
if experiment_json['library_preps'] not in split_challenge[1]:
171+
if experiment_json['library_preps'] not in split_challenge[2]:
172172
ERRORS.append(f'Library preparation in challenge {challenge} and metadata provided in experiment.json is not consistent; please ensure you selected the proper library preparation.')
173-
if experiment_json['platforms'] not in split_challenge[2]:
173+
if experiment_json['platforms'] not in split_challenge[3]:
174174
ERRORS.append(f'Sequencing platform in challenge {challenge} and metadata provided in experiment.json is not consistent; please ensure you selected the proper sequencing platform.')
175175
length = experiment_json['data_category'].split("_")
176176
length = f"{length[0][0]}{length[1][0]}".upper()
177-
if length not in split_challenge[3]:
177+
if length not in split_challenge[4]:
178178
ERRORS.append(f'Read length in challenge {challenge} and metadata provided in experiment.json is not consistent; please ensure you selected the proper read length.')
179179

180180

0 commit comments

Comments
 (0)