Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EVA-2514 - Add check for ENA projects and Biosamples accession #173

Merged
merged 2 commits into from
Sep 29, 2023

Conversation

tcezard
Copy link
Member

@tcezard tcezard commented Sep 27, 2023

No description provided.

@@ -153,6 +154,10 @@ def download_file(url, dest):
urllib.request.urlcleanup()


def check_project_format(project_accession):
return re.match(r'^PRJ(EB|NA)', project_accession)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be good to reuse this in other places (I think just here actually)

if not check_existing_project_in_ena(str(project_acc)):
self.error_list.append(
f'In Project, row {project_row.get("row_num")}, {column_name}: {project_acc} does not exist or is private')
column_name = 'Project Alias'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is indented one level too deep...
image

@tcezard tcezard merged commit 3560a04 into EBIvariation:master Sep 29, 2023
4 checks passed
@tcezard tcezard deleted the EVA2514_validate_accessions branch November 24, 2023 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants