Skip to content
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
4 changes: 2 additions & 2 deletions dx_app/resources/stjude/bin/generate_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ def label_samples (row):
combined = combined.drop(columns=["samples", "classes", "diagnosisNames"])

# Fill group in a way to avoid duplicates
combined['group'] = combined['group'].fillna('unknown ' + combined['attr_diagnosis_group'])
combined['group'] = combined['group'].fillna('Other ' + combined['attr_diagnosis_group'])
# Fill unknown label values with sj_diseases
combined['label'] = combined['label'].fillna(combined['sj_diseases'])
combined['label'] = combined['label'].fillna(combined['sj_long_disease_name'])
# Fill unknown colors with black
combined['color'] = combined['color'].replace('Classification_tSNE_color (Manuscript)', 'black')
# Fill remaining missing metadata values with 'unknown'
Expand Down
Loading