From 9773b3604b7f2b339e9165a8417f42e6202c826e Mon Sep 17 00:00:00 2001 From: Lucille Delisle Date: Fri, 15 Dec 2023 12:27:18 +0100 Subject: [PATCH] more customization + use tools instead of toolnames --- parts/22-query.sh | 96 ++++++++++++++++++++++++++--------------------- 1 file changed, 53 insertions(+), 43 deletions(-) diff --git a/parts/22-query.sh b/parts/22-query.sh index 51d0d50..444d024 100644 --- a/parts/22-query.sh +++ b/parts/22-query.sh @@ -721,7 +721,7 @@ query_job-state-stats() { ## : Shows all jobs states for the last 30 days in a t Example: $ gxadmin query job-state-stats - date | new | running | queued | upload | ok | error | paused | stopped | deleted + date | new | running | queued | upload | ok | error | paused | stopped | deleted ------------+-------+---------+--------+--------+-------+-------+--------+---------+--------- 2022-04-26 | 921 | 564 | 799 | 0 | 581 | 21 | 1 | 0 | 2 2022-04-25 | 1412 | 1230 | 1642 | 0 | 1132 | 122 | 14 | 0 | 15 @@ -770,7 +770,7 @@ query_monthly-job-runtimes() { ##? [--year=] [--month=] [--sub_dest=] [--month=] [--sub_dest= [--group=]: Lists count of t EOF handle_help "$@" <<-EOFhelp Lists tools use count by users in group. - Requires (2022-03) and + Requires (2022-03) and Example: $ gxadmin query tool-use-by-group 2022-02 NameOfGroup - tool_id | username | count + tool_id | username | count ----------------------------------------------------+----------------------------------+------- CONVERTER_gz_to_uncompressed | user_1 | 1 Convert characters1 | user_2 | 1 @@ -2046,7 +2046,7 @@ query_disk-usage-library() { ##? [--library_name=] [--by_folder] [--human] A --by_folder flag is also available for displaying disk usage for each folder. a$ gxadmin local query-disk-usage-library --library_name 'My Library' --by_folder - folder_name | folder size + folder_name | folder size -------------------------+------------- Contamination Filtering | 10798630750 Metagenomes | 12026310232 @@ -4448,7 +4448,7 @@ query_queue-details-drm() { ##? [--all] [--seconds] [--since-update]: Detailed o WITH job_data AS ( - SELECT + SELECT job.state as jobstate, job.id as jobid, job.job_runner_external_id as extid, @@ -4471,7 +4471,7 @@ query_queue-details-drm() { ##? [--all] [--seconds] [--since-update]: Detailed o state desc, $time_column_name desc ) - SELECT + SELECT jobstate, jobid, extid, @@ -4500,7 +4500,7 @@ query_jobs() { ##? [--tool=] [--destination=] [--limit=50] [--states=] [--endyear=] [--formula EOF } -query_tools-usage-per-month() { ##? [--startmonth=-] [--endmonth=-] [--toolnames=,,...]: toolnames is required. startmonth is 1 year ago and end month is current month by default +query_tools-usage-per-month() { ##? [--startmonth=-] [--endmonth=-] [--tools=] [--short_tool_id] [--super_short_tool_id] [--no_version]: By default, startmonth is 1 year ago and end month is current month. tool1, tool2 etc. should correspond to the tool_id with the same format as requested: toolshed.g2.bx.psu.edu/repos/devteam/bowtie2/bowtie2/2.5.0+galaxy0,Cut1 for default, devteam/bowtie2/bowtie2/2.5.0+galaxy0,Cut1 for --short_tool_id, bowtie2/2.5.0+galaxy0,Cut1 for --super_short_tool_id etc... meta <<-EOF AUTHORS: lldelisle ADDED: 22 @@ -4913,27 +4913,22 @@ query_tools-usage-per-month() { ##? [--startmonth=-] [--endmonth=-] [--endmonth=-] [--endmonth=