Skip to content

Commit

Permalink
update ena deposition pod with config changes
Browse files Browse the repository at this point in the history
  • Loading branch information
anna-parker committed Oct 7, 2024
1 parent c827b39 commit d0be4ca
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions ena-submission/scripts/create_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ def construct_project_set_object(
Construct project set object, using:
- entry in project_table
- group_info of corresponding group_id
- config information, such as ingest metadata for that organism
- config information, such as enaDeposition metadata for that organism
If test=True add a timestamp to the alias suffix to allow for multiple
submissions of the same project for testing.
(ENA blocks multiple submissions with the same alias)
"""
metadata_dict = config.organisms[entry["organism"]]["ingest"]
metadata_dict = config.organisms[entry["organism"]]["enaDeposition"]
if test:
alias = XmlAttribute(
f"{entry["group_id"]}:{entry["organism"]}:{config.unique_project_suffix}:{datetime.now(tz=pytz.utc)}"
Expand Down
4 changes: 2 additions & 2 deletions ena-submission/scripts/create_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,15 +132,15 @@ def construct_sample_set_object(
Construct sample set object, using:
- entry in sample_table
- sample_data_in_submission_table: corresponding entry in submission_table
- config information, such as ingest metadata for that organism
- config information, such as enaDeposition metadata for that organism
If test=True add a timestamp to the alias suffix to allow for multiple
submissions of the same project for testing.
(ENA blocks multiple submissions with the same alias)
"""
sample_metadata = sample_data_in_submission_table["metadata"]
center_name = sample_data_in_submission_table["center_name"]
organism = sample_data_in_submission_table["organism"]
organism_metadata = config.organisms[organism]["ingest"]
organism_metadata = config.organisms[organism]["enaDeposition"]
if test:
alias = XmlAttribute(
f"{entry["accession"]}:{organism}:{config.unique_project_suffix}:{datetime.now(tz=pytz.utc)}"
Expand Down
2 changes: 1 addition & 1 deletion ena-submission/scripts/test_ena_submission.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def mock_config():
"scientific_name": "Test scientific name",
"molecule_type": "genomic RNA",
}
config.organisms = {"Test organism": {"ingest": metadata_dict}}
config.organisms = {"Test organism": {"enaDeposition": metadata_dict}}
config.metadata_mapping = defaults["metadata_mapping"]
config.metadata_mapping_mandatory_field_defaults = defaults[
"metadata_mapping_mandatory_field_defaults"
Expand Down

0 comments on commit d0be4ca

Please sign in to comment.