Skip to content

Commit dddee00

Browse files
committed
Add a --file-type option to addMetadataFile to add MultiQC reports & al.
1 parent ac7e588 commit dddee00

File tree

10 files changed

+84
-40
lines changed

10 files changed

+84
-40
lines changed

gemma-cli/src/main/config/bash_completion.d/gemma-cli

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,19 @@ function __gemma_cli_complete() {
3535
fi
3636
fi
3737
if [[ " $words " =~ ' ubic.gemma.apps.ExpressionExperimentMetadataFileAdderCli ' ]]; then
38-
if ! [[ "$current_option" =~ (--changelog-entry|--experiment|-ce|-e) ]]; then
39-
mapfile -t -O "${#COMPREPLY[@]}" COMPREPLY < <(compgen -W "--changelog-entry --experiment --force --help -ce -e -force -h" -- "$2")
38+
if ! [[ "$current_option" =~ (--changelog-entry|--experiment|--file-type|-ce|-e|-fileType) ]]; then
39+
mapfile -t -O "${#COMPREPLY[@]}" COMPREPLY < <(compgen -W "--changelog-entry --experiment --file-type --force --help -ce -e -fileType -force -h" -- "$2")
40+
fi
41+
if [[ "$current_option" =~ (--file-type|-fileType) ]]; then
42+
mapfile -t -O "${#COMPREPLY[@]}" COMPREPLY < <(compgen -f -- "$2")
4043
fi
4144
fi
4245
if [[ " $words " =~ ' addMetadataFile ' ]]; then
43-
if ! [[ "$current_option" =~ (--changelog-entry|--experiment|-ce|-e) ]]; then
44-
mapfile -t -O "${#COMPREPLY[@]}" COMPREPLY < <(compgen -W "--changelog-entry --experiment --force --help -ce -e -force -h" -- "$2")
46+
if ! [[ "$current_option" =~ (--changelog-entry|--experiment|--file-type|-ce|-e|-fileType) ]]; then
47+
mapfile -t -O "${#COMPREPLY[@]}" COMPREPLY < <(compgen -W "--changelog-entry --experiment --file-type --force --help -ce -e -fileType -force -h" -- "$2")
48+
fi
49+
if [[ "$current_option" =~ (--file-type|-fileType) ]]; then
50+
mapfile -t -O "${#COMPREPLY[@]}" COMPREPLY < <(compgen -f -- "$2")
4551
fi
4652
fi
4753
if [[ " $words " =~ ' ubic.gemma.apps.LoadSimpleExpressionDataCli ' ]]; then

gemma-cli/src/main/config/bash_completion.d/gemma-cli-sc

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,19 @@ function __gemma_cli_sc_complete() {
3535
fi
3636
fi
3737
if [[ " $words " =~ ' ubic.gemma.apps.ExpressionExperimentMetadataFileAdderCli ' ]]; then
38-
if ! [[ "$current_option" =~ (--changelog-entry|--experiment|-ce|-e) ]]; then
39-
mapfile -t -O "${#COMPREPLY[@]}" COMPREPLY < <(compgen -W "--changelog-entry --experiment --force --help -ce -e -force -h" -- "$2")
38+
if ! [[ "$current_option" =~ (--changelog-entry|--experiment|--file-type|-ce|-e|-fileType) ]]; then
39+
mapfile -t -O "${#COMPREPLY[@]}" COMPREPLY < <(compgen -W "--changelog-entry --experiment --file-type --force --help -ce -e -fileType -force -h" -- "$2")
40+
fi
41+
if [[ "$current_option" =~ (--file-type|-fileType) ]]; then
42+
mapfile -t -O "${#COMPREPLY[@]}" COMPREPLY < <(compgen -f -- "$2")
4043
fi
4144
fi
4245
if [[ " $words " =~ ' addMetadataFile ' ]]; then
43-
if ! [[ "$current_option" =~ (--changelog-entry|--experiment|-ce|-e) ]]; then
44-
mapfile -t -O "${#COMPREPLY[@]}" COMPREPLY < <(compgen -W "--changelog-entry --experiment --force --help -ce -e -force -h" -- "$2")
46+
if ! [[ "$current_option" =~ (--changelog-entry|--experiment|--file-type|-ce|-e|-fileType) ]]; then
47+
mapfile -t -O "${#COMPREPLY[@]}" COMPREPLY < <(compgen -W "--changelog-entry --experiment --file-type --force --help -ce -e -fileType -force -h" -- "$2")
48+
fi
49+
if [[ "$current_option" =~ (--file-type|-fileType) ]]; then
50+
mapfile -t -O "${#COMPREPLY[@]}" COMPREPLY < <(compgen -f -- "$2")
4551
fi
4652
fi
4753
if [[ " $words " =~ ' ubic.gemma.apps.LoadSimpleExpressionDataCli ' ]]; then

gemma-cli/src/main/config/bash_completion.d/gemma-cli-staging

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,19 @@ function __gemma_cli_staging_complete() {
3535
fi
3636
fi
3737
if [[ " $words " =~ ' ubic.gemma.apps.ExpressionExperimentMetadataFileAdderCli ' ]]; then
38-
if ! [[ "$current_option" =~ (--changelog-entry|--experiment|-ce|-e) ]]; then
39-
mapfile -t -O "${#COMPREPLY[@]}" COMPREPLY < <(compgen -W "--changelog-entry --experiment --force --help -ce -e -force -h" -- "$2")
38+
if ! [[ "$current_option" =~ (--changelog-entry|--experiment|--file-type|-ce|-e|-fileType) ]]; then
39+
mapfile -t -O "${#COMPREPLY[@]}" COMPREPLY < <(compgen -W "--changelog-entry --experiment --file-type --force --help -ce -e -fileType -force -h" -- "$2")
40+
fi
41+
if [[ "$current_option" =~ (--file-type|-fileType) ]]; then
42+
mapfile -t -O "${#COMPREPLY[@]}" COMPREPLY < <(compgen -f -- "$2")
4043
fi
4144
fi
4245
if [[ " $words " =~ ' addMetadataFile ' ]]; then
43-
if ! [[ "$current_option" =~ (--changelog-entry|--experiment|-ce|-e) ]]; then
44-
mapfile -t -O "${#COMPREPLY[@]}" COMPREPLY < <(compgen -W "--changelog-entry --experiment --force --help -ce -e -force -h" -- "$2")
46+
if ! [[ "$current_option" =~ (--changelog-entry|--experiment|--file-type|-ce|-e|-fileType) ]]; then
47+
mapfile -t -O "${#COMPREPLY[@]}" COMPREPLY < <(compgen -W "--changelog-entry --experiment --file-type --force --help -ce -e -fileType -force -h" -- "$2")
48+
fi
49+
if [[ "$current_option" =~ (--file-type|-fileType) ]]; then
50+
mapfile -t -O "${#COMPREPLY[@]}" COMPREPLY < <(compgen -f -- "$2")
4551
fi
4652
fi
4753
if [[ " $words " =~ ' ubic.gemma.apps.LoadSimpleExpressionDataCli ' ]]; then

gemma-cli/src/main/config/fish/completions/gemma-cli-sc.fish

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,13 @@ complete -c gemma-cli-sc -n '__fish_seen_subcommand_from addGEOData' -o batchRep
5757
complete -c gemma-cli-sc -n "not __fish_seen_subcommand_from $gemma_all_subcommands" -f -a ubic.gemma.apps.ExpressionExperimentMetadataFileAdderCli --description 'Add a metadata file to the given experiment and record an entry in the changelog file.'
5858
complete -c gemma-cli-sc -n '__fish_seen_subcommand_from ubic.gemma.apps.ExpressionExperimentMetadataFileAdderCli' -s h -l help -f --description 'Print this message'
5959
complete -c gemma-cli-sc -n '__fish_seen_subcommand_from ubic.gemma.apps.ExpressionExperimentMetadataFileAdderCli' -s e -l experiment -r -a '(gemma-cli-sc complete dataset 2>/dev/null)' -f --description 'Dataset identifier. Most tools recognize comma-delimited values given on the command line, and if this option is omitted (and none other provided), the tool will be applied to all expression experiments.'
60+
complete -c gemma-cli-sc -n '__fish_seen_subcommand_from ubic.gemma.apps.ExpressionExperimentMetadataFileAdderCli' -o fileType -l file-type -r -a '(echo -e "BASE_METADATA\t\nALIGNMENT_METADATA\t\nMUTLQC_REPORT\t\nADDITIONAL_PIPELINE_CONFIGURATIONS\t" 2>/dev/null)' -F --description 'Type of metadata file to be added. Possible values are: BASE_METADATA, ALIGNMENT_METADATA, MUTLQC_REPORT, ADDITIONAL_PIPELINE_CONFIGURATIONS.'
6061
complete -c gemma-cli-sc -n '__fish_seen_subcommand_from ubic.gemma.apps.ExpressionExperimentMetadataFileAdderCli' -o ce -l changelog-entry -r -f --description 'Changelog entry to be add. If not supplied, a text editor will be prompted.'
6162
complete -c gemma-cli-sc -n '__fish_seen_subcommand_from ubic.gemma.apps.ExpressionExperimentMetadataFileAdderCli' -o force -l force -f --description 'Ignore other reasons for skipping entities (e.g., troubled experiments) and overwrite existing data (see documentation for this tool to see exact behavior if not clear)'
6263
complete -c gemma-cli-sc -n "not __fish_seen_subcommand_from $gemma_all_subcommands" -f -a addMetadataFile --description 'Add a metadata file to the given experiment and record an entry in the changelog file.'
6364
complete -c gemma-cli-sc -n '__fish_seen_subcommand_from addMetadataFile' -s h -l help -f --description 'Print this message'
6465
complete -c gemma-cli-sc -n '__fish_seen_subcommand_from addMetadataFile' -s e -l experiment -r -a '(gemma-cli-sc complete dataset 2>/dev/null)' -f --description 'Dataset identifier. Most tools recognize comma-delimited values given on the command line, and if this option is omitted (and none other provided), the tool will be applied to all expression experiments.'
66+
complete -c gemma-cli-sc -n '__fish_seen_subcommand_from addMetadataFile' -o fileType -l file-type -r -a '(echo -e "BASE_METADATA\t\nALIGNMENT_METADATA\t\nMUTLQC_REPORT\t\nADDITIONAL_PIPELINE_CONFIGURATIONS\t" 2>/dev/null)' -F --description 'Type of metadata file to be added. Possible values are: BASE_METADATA, ALIGNMENT_METADATA, MUTLQC_REPORT, ADDITIONAL_PIPELINE_CONFIGURATIONS.'
6567
complete -c gemma-cli-sc -n '__fish_seen_subcommand_from addMetadataFile' -o ce -l changelog-entry -r -f --description 'Changelog entry to be add. If not supplied, a text editor will be prompted.'
6668
complete -c gemma-cli-sc -n '__fish_seen_subcommand_from addMetadataFile' -o force -l force -f --description 'Ignore other reasons for skipping entities (e.g., troubled experiments) and overwrite existing data (see documentation for this tool to see exact behavior if not clear)'
6769
complete -c gemma-cli-sc -n "not __fish_seen_subcommand_from $gemma_all_subcommands" -f -a ubic.gemma.apps.LoadSimpleExpressionDataCli --description 'Load an experiment from a tab-delimited file instead of GEO'

gemma-cli/src/main/config/fish/completions/gemma-cli-staging.fish

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,13 @@ complete -c gemma-cli-staging -n '__fish_seen_subcommand_from addGEOData' -o bat
5757
complete -c gemma-cli-staging -n "not __fish_seen_subcommand_from $gemma_all_subcommands" -f -a ubic.gemma.apps.ExpressionExperimentMetadataFileAdderCli --description 'Add a metadata file to the given experiment and record an entry in the changelog file.'
5858
complete -c gemma-cli-staging -n '__fish_seen_subcommand_from ubic.gemma.apps.ExpressionExperimentMetadataFileAdderCli' -s h -l help -f --description 'Print this message'
5959
complete -c gemma-cli-staging -n '__fish_seen_subcommand_from ubic.gemma.apps.ExpressionExperimentMetadataFileAdderCli' -s e -l experiment -r -a '(gemma-cli-staging complete dataset 2>/dev/null)' -f --description 'Dataset identifier. Most tools recognize comma-delimited values given on the command line, and if this option is omitted (and none other provided), the tool will be applied to all expression experiments.'
60+
complete -c gemma-cli-staging -n '__fish_seen_subcommand_from ubic.gemma.apps.ExpressionExperimentMetadataFileAdderCli' -o fileType -l file-type -r -a '(echo -e "BASE_METADATA\t\nALIGNMENT_METADATA\t\nMUTLQC_REPORT\t\nADDITIONAL_PIPELINE_CONFIGURATIONS\t" 2>/dev/null)' -F --description 'Type of metadata file to be added. Possible values are: BASE_METADATA, ALIGNMENT_METADATA, MUTLQC_REPORT, ADDITIONAL_PIPELINE_CONFIGURATIONS.'
6061
complete -c gemma-cli-staging -n '__fish_seen_subcommand_from ubic.gemma.apps.ExpressionExperimentMetadataFileAdderCli' -o ce -l changelog-entry -r -f --description 'Changelog entry to be add. If not supplied, a text editor will be prompted.'
6162
complete -c gemma-cli-staging -n '__fish_seen_subcommand_from ubic.gemma.apps.ExpressionExperimentMetadataFileAdderCli' -o force -l force -f --description 'Ignore other reasons for skipping entities (e.g., troubled experiments) and overwrite existing data (see documentation for this tool to see exact behavior if not clear)'
6263
complete -c gemma-cli-staging -n "not __fish_seen_subcommand_from $gemma_all_subcommands" -f -a addMetadataFile --description 'Add a metadata file to the given experiment and record an entry in the changelog file.'
6364
complete -c gemma-cli-staging -n '__fish_seen_subcommand_from addMetadataFile' -s h -l help -f --description 'Print this message'
6465
complete -c gemma-cli-staging -n '__fish_seen_subcommand_from addMetadataFile' -s e -l experiment -r -a '(gemma-cli-staging complete dataset 2>/dev/null)' -f --description 'Dataset identifier. Most tools recognize comma-delimited values given on the command line, and if this option is omitted (and none other provided), the tool will be applied to all expression experiments.'
66+
complete -c gemma-cli-staging -n '__fish_seen_subcommand_from addMetadataFile' -o fileType -l file-type -r -a '(echo -e "BASE_METADATA\t\nALIGNMENT_METADATA\t\nMUTLQC_REPORT\t\nADDITIONAL_PIPELINE_CONFIGURATIONS\t" 2>/dev/null)' -F --description 'Type of metadata file to be added. Possible values are: BASE_METADATA, ALIGNMENT_METADATA, MUTLQC_REPORT, ADDITIONAL_PIPELINE_CONFIGURATIONS.'
6567
complete -c gemma-cli-staging -n '__fish_seen_subcommand_from addMetadataFile' -o ce -l changelog-entry -r -f --description 'Changelog entry to be add. If not supplied, a text editor will be prompted.'
6668
complete -c gemma-cli-staging -n '__fish_seen_subcommand_from addMetadataFile' -o force -l force -f --description 'Ignore other reasons for skipping entities (e.g., troubled experiments) and overwrite existing data (see documentation for this tool to see exact behavior if not clear)'
6769
complete -c gemma-cli-staging -n "not __fish_seen_subcommand_from $gemma_all_subcommands" -f -a ubic.gemma.apps.LoadSimpleExpressionDataCli --description 'Load an experiment from a tab-delimited file instead of GEO'

gemma-cli/src/main/config/fish/completions/gemma-cli.fish

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,13 @@ complete -c gemma-cli -n '__fish_seen_subcommand_from addGEOData' -o batchReport
5757
complete -c gemma-cli -n "not __fish_seen_subcommand_from $gemma_all_subcommands" -f -a ubic.gemma.apps.ExpressionExperimentMetadataFileAdderCli --description 'Add a metadata file to the given experiment and record an entry in the changelog file.'
5858
complete -c gemma-cli -n '__fish_seen_subcommand_from ubic.gemma.apps.ExpressionExperimentMetadataFileAdderCli' -s h -l help -f --description 'Print this message'
5959
complete -c gemma-cli -n '__fish_seen_subcommand_from ubic.gemma.apps.ExpressionExperimentMetadataFileAdderCli' -s e -l experiment -r -a '(gemma-cli complete dataset 2>/dev/null)' -f --description 'Dataset identifier. Most tools recognize comma-delimited values given on the command line, and if this option is omitted (and none other provided), the tool will be applied to all expression experiments.'
60+
complete -c gemma-cli -n '__fish_seen_subcommand_from ubic.gemma.apps.ExpressionExperimentMetadataFileAdderCli' -o fileType -l file-type -r -a '(echo -e "BASE_METADATA\t\nALIGNMENT_METADATA\t\nMUTLQC_REPORT\t\nADDITIONAL_PIPELINE_CONFIGURATIONS\t" 2>/dev/null)' -F --description 'Type of metadata file to be added. Possible values are: BASE_METADATA, ALIGNMENT_METADATA, MUTLQC_REPORT, ADDITIONAL_PIPELINE_CONFIGURATIONS.'
6061
complete -c gemma-cli -n '__fish_seen_subcommand_from ubic.gemma.apps.ExpressionExperimentMetadataFileAdderCli' -o ce -l changelog-entry -r -f --description 'Changelog entry to be add. If not supplied, a text editor will be prompted.'
6162
complete -c gemma-cli -n '__fish_seen_subcommand_from ubic.gemma.apps.ExpressionExperimentMetadataFileAdderCli' -o force -l force -f --description 'Ignore other reasons for skipping entities (e.g., troubled experiments) and overwrite existing data (see documentation for this tool to see exact behavior if not clear)'
6263
complete -c gemma-cli -n "not __fish_seen_subcommand_from $gemma_all_subcommands" -f -a addMetadataFile --description 'Add a metadata file to the given experiment and record an entry in the changelog file.'
6364
complete -c gemma-cli -n '__fish_seen_subcommand_from addMetadataFile' -s h -l help -f --description 'Print this message'
6465
complete -c gemma-cli -n '__fish_seen_subcommand_from addMetadataFile' -s e -l experiment -r -a '(gemma-cli complete dataset 2>/dev/null)' -f --description 'Dataset identifier. Most tools recognize comma-delimited values given on the command line, and if this option is omitted (and none other provided), the tool will be applied to all expression experiments.'
66+
complete -c gemma-cli -n '__fish_seen_subcommand_from addMetadataFile' -o fileType -l file-type -r -a '(echo -e "BASE_METADATA\t\nALIGNMENT_METADATA\t\nMUTLQC_REPORT\t\nADDITIONAL_PIPELINE_CONFIGURATIONS\t" 2>/dev/null)' -F --description 'Type of metadata file to be added. Possible values are: BASE_METADATA, ALIGNMENT_METADATA, MUTLQC_REPORT, ADDITIONAL_PIPELINE_CONFIGURATIONS.'
6567
complete -c gemma-cli -n '__fish_seen_subcommand_from addMetadataFile' -o ce -l changelog-entry -r -f --description 'Changelog entry to be add. If not supplied, a text editor will be prompted.'
6668
complete -c gemma-cli -n '__fish_seen_subcommand_from addMetadataFile' -o force -l force -f --description 'Ignore other reasons for skipping entities (e.g., troubled experiments) and overwrite existing data (see documentation for this tool to see exact behavior if not clear)'
6769
complete -c gemma-cli -n "not __fish_seen_subcommand_from $gemma_all_subcommands" -f -a ubic.gemma.apps.LoadSimpleExpressionDataCli --description 'Load an experiment from a tab-delimited file instead of GEO'

0 commit comments

Comments
 (0)