-
Notifications
You must be signed in to change notification settings - Fork 0
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
Sort by category #57
base: main
Are you sure you want to change the base?
Sort by category #57
Conversation
@@ -855,6 +855,10 @@ def __init__(self, subparser): | |||
"--no-y-labels", action="store_true", | |||
help="disable Y axis labels" | |||
) | |||
subparser.add_argument( | |||
"--sort-by-category", action="store_true", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"--sort-by-category", action="store_true", | |
"--sort-rows-by-category", action="store_true", |
You could imagine we might want to sort cols by category too ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(so having this be --sort-rows...
leaves that option open - not that we need to implement it now)
|
||
# optional sorting samples by category | ||
if args.sort_by_category: | ||
query_d = manysearch_rows_to_index(rows, column_name='query_name') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code looks good! can you move into a separate function?
Added --sort-by-category to clustermap1. Instead of clustering the rows (samples) we can sort them by a category (treatment, or something else).
@ctb ready for review