forked from galaxyproject/galaxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
197 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -188,3 +188,8 @@ involucro | |
.DS_Store | ||
*.rej | ||
*~ | ||
|
||
# Syncthing | ||
.stignore | ||
.stfolder | ||
.stversions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
...igrations/alembic/versions_gxy/8a19186a6ee7_add_columns_to_interactivetool_entry_point.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
"""add label, requires_path_in_url and requires_path_in_header_named columns to interactivetool_entry_point | ||
Check failure on line 1 in lib/galaxy/model/migrations/alembic/versions_gxy/8a19186a6ee7_add_columns_to_interactivetool_entry_point.py GitHub Actions / Test (3.7)
|
||
Revision ID: 8a19186a6ee7 | ||
Revises: 92fb564c7095 | ||
Create Date: 2023-10-15 22:09:32.888292 | ||
""" | ||
from sqlalchemy import Column, Text, Boolean | ||
|
||
from galaxy.model.migrations.util import ( | ||
add_column, | ||
drop_column, | ||
) | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "8a19186a6ee7" | ||
down_revision = "92fb564c7095" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
# database object names used in this revision | ||
table_name = "interactivetool_entry_point" | ||
label_column_name = "label" | ||
requires_path_in_url_colname = "requires_path_in_url" | ||
requires_path_in_header_named_colname = "requires_path_in_header_named" | ||
|
||
|
||
def upgrade(): | ||
add_column(table_name, Column(label_column_name, Text())) | ||
add_column(table_name, Column(requires_path_in_url_colname, Boolean(), default=False)) | ||
add_column(table_name, Column(requires_path_in_header_named_colname, Text())) | ||
|
||
|
||
def downgrade(): | ||
drop_column(table_name, requires_path_in_header_named_colname) | ||
drop_column(table_name, requires_path_in_url_colname) | ||
drop_column(table_name, label_column_name) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 34 additions & 32 deletions
66
lib/tool_shed/test/test_data/repos/emboss_5_0470/0/emboss_format_corrector.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,55 @@ | ||
#EMBOSS format corrector | ||
# EMBOSS format corrector | ||
|
||
import operator | ||
#from galaxy import datatypes | ||
|
||
#Properly set file formats after job run | ||
def exec_after_process( app, inp_data, out_data, param_dict,tool, stdout, stderr): | ||
#Properly set file formats before job run | ||
#def exec_before_job(trans, inp_data, out_data, param_dict,tool): | ||
#why isn't items an ordered list? | ||
# from galaxy import datatypes | ||
|
||
|
||
# Properly set file formats after job run | ||
def exec_after_process(app, inp_data, out_data, param_dict, tool, stdout, stderr): | ||
# Properly set file formats before job run | ||
# def exec_before_job(trans, inp_data, out_data, param_dict,tool): | ||
# why isn't items an ordered list? | ||
items = out_data.items() | ||
#lets sort it ourselves.... | ||
# lets sort it ourselves.... | ||
items = sorted(items, key=operator.itemgetter(0)) | ||
#items is now sorted... | ||
#normal filetype correction | ||
data_count=1 | ||
# items is now sorted... | ||
|
||
# normal filetype correction | ||
data_count = 1 | ||
for name, data in items: | ||
outputType = param_dict.get( 'out_format'+str(data_count), None ) | ||
#print "data_count",data_count, "name", name, "outputType", outputType | ||
if outputType !=None: | ||
if outputType == 'ncbi': | ||
outputType = param_dict.get("out_format" + str(data_count), None) | ||
# print "data_count",data_count, "name", name, "outputType", outputType | ||
if outputType != None: | ||
if outputType == "ncbi": | ||
outputType = "fasta" | ||
elif outputType == 'excel': | ||
elif outputType == "excel": | ||
outputType = "tabular" | ||
elif outputType == 'text': | ||
elif outputType == "text": | ||
outputType = "txt" | ||
data = app.datatypes_registry.change_datatype(data, outputType) | ||
app.model.context.add( data ) | ||
app.model.context.add(data) | ||
app.model.context.flush() | ||
data_count+=1 | ||
#html filetype correction | ||
data_count=1 | ||
data_count += 1 | ||
|
||
# html filetype correction | ||
data_count = 1 | ||
for name, data in items: | ||
wants_plot = param_dict.get( 'html_out'+str(data_count), None ) | ||
wants_plot = param_dict.get("html_out" + str(data_count), None) | ||
ext = "html" | ||
if wants_plot == "yes": | ||
data = app.datatypes_registry.change_datatype(data, ext) | ||
app.model.context.add( data ) | ||
app.model.context.add(data) | ||
app.model.context.flush() | ||
data_count+=1 | ||
#png file correction | ||
data_count=1 | ||
data_count += 1 | ||
|
||
# png file correction | ||
data_count = 1 | ||
for name, data in items: | ||
wants_plot = param_dict.get( 'plot'+str(data_count), None ) | ||
wants_plot = param_dict.get("plot" + str(data_count), None) | ||
ext = "png" | ||
if wants_plot == "yes": | ||
data = app.datatypes_registry.change_datatype(data, ext) | ||
app.model.context.add( data ) | ||
app.model.context.add(data) | ||
app.model.context.flush() | ||
data_count+=1 | ||
data_count += 1 |
Oops, something went wrong.