Skip to content

Commit

Permalink
Changed validation of challenge names
Browse files Browse the repository at this point in the history
  • Loading branch information
ESapenaVentura committed Jul 25, 2023
1 parent 6cb8102 commit 51ee08d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lrgasp_validation/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,13 +168,13 @@ def validate_library_to_metadata(experiment_json):
def challenges_are_valid(challenges, experiment_json):
for challenge in challenges:
split_challenge = challenge.split("_")
if experiment_json['library_preps'] not in split_challenge[1]:
if experiment_json['library_preps'] not in split_challenge[2]:
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.')
if experiment_json['platforms'] not in split_challenge[2]:
if experiment_json['platforms'] not in split_challenge[3]:
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.')
length = experiment_json['data_category'].split("_")
length = f"{length[0][0]}{length[1][0]}".upper()
if length not in split_challenge[3]:
if length not in split_challenge[4]:
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.')


Expand Down

0 comments on commit 51ee08d

Please sign in to comment.