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

Fixes from prod #231

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion eva_submission/eload_ingestion.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def get_db_name(self, assembly_accession):
"""
# query EVAPRO for db name based on taxonomy id and accession
with self.metadata_connection_handle as conn:
db_name = resolve_variant_warehouse_db_name(conn, assembly_accession, self.taxonomy)
db_name = resolve_variant_warehouse_db_name(conn, assembly_accession, self.taxonomy, ncbi_api_key=cfg.get('eutils_api_key'))
if not db_name:
raise ValueError(f'Database name for taxid:{self.taxonomy} and assembly {assembly_accession} '
f'could not be retrieved or constructed')
Expand Down
1 change: 1 addition & 0 deletions eva_submission/etc/eva_project_conf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ Sample:
Title: string
cultivar: string
Description: string
Subject: string

Files:
required:
Expand Down
2 changes: 1 addition & 1 deletion eva_submission/etc/eva_project_validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ Sample:
cell_line: { type: 'string', nullable: True}
serotype: { type: 'string', nullable: True}
serovar: { type: 'string', nullable: True}
Novel attribute(s): { type: 'string', nullable: True, regex: '[\w.\-]+:[\w.\-]+(,\s*[\w.\-]+:[\w.\-]+)*'}
Novel attribute(s): { type: 'string', nullable: True, regex: '[\w.\-_ ]+:[\w.\-_ ]+(,\s*[\w.\-_ ]+:[\w.\-_ ]+)*'}

Files:
type: 'list'
Expand Down
2 changes: 2 additions & 0 deletions eva_submission/nextflow/accession_and_load.nf
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@ process accession_vcf {
clusterOptions "-o $params.logs_dir/${log_filename}.log \
-e $params.logs_dir/${log_filename}.err"

maxForks 1

input:
tuple val(vcf_filename), val(vcf_file), val(assembly_accession), val(aggregation), val(fasta), val(report)

Expand Down
Loading