From b47307323d5c273e8c6c2fb585a2e85da2ac3982 Mon Sep 17 00:00:00 2001 From: "Richard C. Burhans" Date: Tue, 10 Sep 2024 15:48:32 -0400 Subject: [PATCH 1/2] adding a new test, small updates --- tools/ncbi_egapx/macros.xml | 2 +- tools/ncbi_egapx/ncbi_egapx.xml | 55 ++++++++++++++++++++------------- 2 files changed, 34 insertions(+), 23 deletions(-) diff --git a/tools/ncbi_egapx/macros.xml b/tools/ncbi_egapx/macros.xml index e65c0d2..1878963 100644 --- a/tools/ncbi_egapx/macros.xml +++ b/tools/ncbi_egapx/macros.xml @@ -5,7 +5,7 @@ 0.2-alpha - 1 + 2 22.05 diff --git a/tools/ncbi_egapx/ncbi_egapx.xml b/tools/ncbi_egapx/ncbi_egapx.xml index 00c03d7..df6fb6d 100644 --- a/tools/ncbi_egapx/ncbi_egapx.xml +++ b/tools/ncbi_egapx/ncbi_egapx.xml @@ -9,44 +9,44 @@ #if str($cond_input_style.input_style) == "history": #set yamlconfig = $yamlin #else: - #set yamlconfig = 'egapx.yaml' - rm -rf 'egapx.yaml' && - touch 'egapx.yaml' && - echo '# yaml generated by ncbi_egapx.xml' >> egapx.yaml && - echo 'taxid: $taxid' >> egapx.yaml && + #set yamlconfig = "egapx.yaml" + rm -rf '$yamlconfig' && + touch '$yamlconfig' && + echo '# yaml generated by ncbi_egapx.xml' >> '$yamlconfig' && + echo 'taxid: $taxid' >> '$yamlconfig' && #if str($reference_genome.genome_type_select) == "indexed": - echo 'genome: $reference_genome.genome.fields.path' >> 'egapx.yaml' && + echo 'genome: $reference_genome.genome.fields.path' >> '$yamlconfig' && #elif str($reference_genome.genome_type_select) == "history" - echo 'genome: $reference_genome.genome' >> 'egapx.yaml' && + echo 'genome: $reference_genome.genome' >> '$yamlconfig' && #else: - echo 'genome: $reference_genome.uri' >> 'egapx.yaml' && + echo 'genome: $reference_genome.uri' >> '$yamlconfig' && #end if - echo 'reads:' >> 'egapx.yaml' && + echo 'reads:' >> '$yamlconfig' && #if str($condrnaseq.rna_type_select) == "history": #for $r in $rnaseq: - echo ' - $r' >> 'egapx.yaml' && + echo ' - $r' >> '$yamlconfig' && #end for #else: #set rs = $rnaseq.split() #set rsplit = [x.strip() for x in $rs] #for $r in $rsplit: - echo ' - $r' >> 'egapx.yaml' && + echo ' - $r' >> '$yamlconfig' && #end for #end if #if len($xtra.strip()) > 0: - #set lxtra = $xtra.split('\n') + #set lxtra = $xtra.split("\n") #for row in $lxtra: - echo '$row' >> 'egapx.yaml' && + echo '$row' >> '$yamlconfig' && #end for #end if - echo '' >> 'egapx.yaml' && + echo '' >> '$yamlconfig' && echo "Calculated contents of egapx yaml" && - cat 'egapx.yaml' && + cat '$yamlconfig' && #end if source /galaxy/env.bash && echo \${PATH} && ln -s /galaxy/egapx/egapx_config && - python3 /galaxy/egapx/ui/egapx.py '$yamlconfig' -e galaxy -o 'egapx_out' + python3 /galaxy/egapx/ui/egapx.py '$yamlconfig' -e galaxy -o 'egapx_out' ]]> @@ -61,14 +61,14 @@ - - @@ -76,10 +76,10 @@ - + - + @@ -88,7 +88,7 @@ - @@ -98,7 +98,7 @@ - @@ -115,9 +115,20 @@ + + + + + + + + + + + Date: Tue, 10 Sep 2024 16:58:42 -0400 Subject: [PATCH 2/2] updated to support all_fasta data table --- tools/ncbi_egapx/ncbi_egapx.xml | 2 +- .../ncbi_egapx/tool-data/all_fasta.loc.sample | 18 ++++++++++++++++++ .../ncbi_egapx/tool_data_table_conf.xml.sample | 7 +++++++ 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 tools/ncbi_egapx/tool-data/all_fasta.loc.sample create mode 100644 tools/ncbi_egapx/tool_data_table_conf.xml.sample diff --git a/tools/ncbi_egapx/ncbi_egapx.xml b/tools/ncbi_egapx/ncbi_egapx.xml index df6fb6d..3a93675 100644 --- a/tools/ncbi_egapx/ncbi_egapx.xml +++ b/tools/ncbi_egapx/ncbi_egapx.xml @@ -76,7 +76,7 @@ - + diff --git a/tools/ncbi_egapx/tool-data/all_fasta.loc.sample b/tools/ncbi_egapx/tool-data/all_fasta.loc.sample new file mode 100644 index 0000000..1a5a28d --- /dev/null +++ b/tools/ncbi_egapx/tool-data/all_fasta.loc.sample @@ -0,0 +1,18 @@ +#This file lists the locations and dbkeys of all the fasta files +#under the "genome" directory (a directory that contains a directory +#for each build). The script extract_fasta.py will generate the file +#all_fasta.loc. This file has the format (white space characters are +#TAB characters): +# +# +# +#So, all_fasta.loc could look something like this: +# +#apiMel3 apiMel3 Honeybee (Apis mellifera): apiMel3 /path/to/genome/apiMel3/apiMel3.fa +#hg19canon hg19 Human (Homo sapiens): hg19 Canonical /path/to/genome/hg19/hg19canon.fa +#hg19full hg19 Human (Homo sapiens): hg19 Full /path/to/genome/hg19/hg19full.fa +# +#Your all_fasta.loc file should contain an entry for each individual +#fasta file. So there will be multiple fasta files for each build, +#such as with hg19 above. +# diff --git a/tools/ncbi_egapx/tool_data_table_conf.xml.sample b/tools/ncbi_egapx/tool_data_table_conf.xml.sample new file mode 100644 index 0000000..d5c59b9 --- /dev/null +++ b/tools/ncbi_egapx/tool_data_table_conf.xml.sample @@ -0,0 +1,7 @@ + + + + value, dbkey, name, path + +
+