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

fix: handle multiple JSON arrays #38

Merged
merged 1 commit into from
Sep 9, 2024
Merged
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 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