Skip to content

Commit

Permalink
SN Submission updates (#357)
Browse files Browse the repository at this point in the history
* Update samplesource columns and submission search

* samplesource facets

* fix test

* add tissue facet

* add submitted_id to columns

* Update category enums

* reset poetry.lock

* reset poetry.lock

* Update cell sample pattern
  • Loading branch information
sarahgonicholson authored Feb 27, 2025
1 parent e428d18 commit 4426fbe
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 5 deletions.
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/encoded/commands/write_submission_spreadsheets.py
Original file line number Diff line number Diff line change
Expand Up @@ -1371,10 +1371,11 @@ def get_comment_search(property_: Property, indent: str) -> List[str]:
If property is file_format, include query for specific File type
"""
search_text = "Use URL to search for the submitted_id or identifer of relevant items"
if property_.search:
if property_.name == "file_format":
return [f"Search:{indent}{property_.search}&valid_item_types={property_.item}"]
return [f"Search:{indent}{property_.search}"]
return [f"{search_text}:{indent}{property_.search}&valid_item_types={property_.item}"]
return [f"{search_text}:{indent}{property_.search}"]
return []


Expand Down
4 changes: 3 additions & 1 deletion src/encoded/schemas/assay.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@
"Hi-C",
"Dip-C",
"Repeat Element Targeted Sequencing",
"ATAC-seq"
"ATAC-seq",
"NT-seq",
"Strand-seq"
]
},
"cell_isolation_method": {
Expand Down
3 changes: 3 additions & 0 deletions src/encoded/schemas/cell_culture.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@
}
},
"columns": {
"submitted_id": {
"title": "Submitted ID"
},
"submission_centers.display_title": {
"title": "Submitted By"
},
Expand Down
8 changes: 8 additions & 0 deletions src/encoded/schemas/cell_culture_mixture.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,5 +103,13 @@
"submitted_id": {
"pattern": "^[A-Z0-9]{3,}_CELL-CULTURE-MIXTURE_[A-Z0-9-_.]{4,}$"
}
},
"columns": {
"submitted_id": {
"title": "Submitted ID"
},
"submission_centers.display_title": {
"title": "Submitted By"
}
}
}
13 changes: 13 additions & 0 deletions src/encoded/schemas/sample_source.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,18 @@
"type": "integer",
"minimum": 1
}
},
"facets": {
"submission_centers.display_title": {
"title": "Submitted By"
}
},
"columns": {
"submitted_id": {
"title": "Submitted ID"
},
"submission_centers.display_title": {
"title": "Submitted By"
}
}
}
6 changes: 6 additions & 0 deletions src/encoded/schemas/tissue.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,12 @@
"facets": {
"submission_centers.display_title": {
"title": "Submitted By"
},
"donor.display_title": {
"title": "Donor"
},
"status": {
"title": "Status"
}
},
"columns": {
Expand Down
2 changes: 1 addition & 1 deletion src/encoded/tests/test_write_submission_spreadsheets.py
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ def test_get_ordered_properties(
"Type: string\n"
"Link: Yes\n"
"Required: No\n"
"Search: test.url.com\n"
"Use URL to search for the submitted_id or identifer of relevant items: test.url.com\n"
"Nested: Yes"
),
),
Expand Down

0 comments on commit 4426fbe

Please sign in to comment.