Skip to content

Commit

Permalink
fix: handle multiple JSON arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
adthrasher committed Sep 9, 2024
1 parent 9dd3d85 commit ca532f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dx_app/resources/stjude/bin/bulk_describe.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def bulk_describe_with_id(file_links: List[str], proj_id: str) -> List:
file_links: list of file ids (strings)
proj_id: project id where described items is found
Returns:
list of dictionary containing file infomation
list of dictionary containing file information
"""

payload = {
Expand Down
3 changes: 2 additions & 1 deletion dx_app/src/t-SNE.sh
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ main() {
# Get metadata in parallel for reference data
echo "Getting metadata for all samples"
json=$(echo $ids | xargs python3 /stjude/bin/bulk_describe.py -p $DX_PROJECT_CONTEXT_ID --ids )
echo $json > metadata.json
# Pass through jq because bulk_describe can produce multiple json arrays.
echo $json | jq --slurp "flatten" > metadata.json

# Prepare filters
excluded_types='germline|cell line'
Expand Down

0 comments on commit ca532f1

Please sign in to comment.