Skip to content

Commit

Permalink
Fix PEP8 for biotools PR
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed May 18, 2016
1 parent 0e3f910 commit 5911f50
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/galaxy/datatypes/interval.py
Original file line number Diff line number Diff line change
Expand Up @@ -1446,7 +1446,7 @@ class ENCODEPeak( Interval ):
This format is used to provide called peaks of signal enrichment based on
pooled, normalized (interpreted) data. It is a BED6+4 format.
'''
edam_format = "format_3612"
edam_format = "format_3612"
file_ext = "encodepeak"
column_names = [ 'Chrom', 'Start', 'End', 'Name', 'Score', 'Strand', 'SignalValue', 'pValue', 'qValue', 'Peak' ]
data_sources = { "data": "tabix", "index": "bigwig" }
Expand Down
2 changes: 2 additions & 0 deletions lib/galaxy/datatypes/qualityscore.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class QualityScore ( data.Text ):
edam_data = "data_2048"
edam_format = "format_3606"


class QualityScoreSOLiD ( QualityScore ):
"""
until we know more about quality score formats
Expand Down Expand Up @@ -122,6 +123,7 @@ class QualityScoreSolexa ( QualityScore ):
file_ext = "qualsolexa"
edam_format = "format_3608"


class QualityScoreIllumina ( QualityScore ):
"""
until we know more about quality score formats
Expand Down
3 changes: 1 addition & 2 deletions lib/galaxy/tools/parameters/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -2038,8 +2038,7 @@ def to_dict( self, trans, view='collection', value_mapper=None, other_values={}
all_edam_data = self._datatypes_registery( trans, self.tool ).edam_data
edam_formats = map(lambda ext: all_edam_formats.get(ext, None),
extensions)
edam_data = map(lambda ext: all_edam_data.get(ext, None),
extensions)
edam_data = map(lambda ext: all_edam_data.get(ext, None), extensions)

d['extensions'] = extensions
d['edam'] = {'edam_formats': edam_formats, 'edam_data': edam_data}
Expand Down
3 changes: 2 additions & 1 deletion lib/galaxy/webapps/galaxy/api/biotools.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import logging
log = logging.getLogger( __name__ )


def json_formater(fonc):
@functools.wraps(fonc)
def innerfunc(cl, trans, id, **kwd):
Expand Down Expand Up @@ -97,7 +98,7 @@ def format_description(description):
else:
return description[0].upper() + description[1:size] + '.'
except IndexError:
raise description
raise description


def get_source_registry(tool_id):
Expand Down
1 change: 0 additions & 1 deletion lib/galaxy/webapps/galaxy/api/datatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ def edam_formats( self, trans, **kwds ):
def edam_data( self, trans, **kwds ):
return self._datatypes_registry.edam_data


@property
def _datatypes_registry( self ):
return self.app.datatypes_registry
3 changes: 1 addition & 2 deletions lib/galaxy/webapps/galaxy/api/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def to_dict(x):
"description": tool.description,
"tool_id": tool.id,
"inputs": input_param,
"outputs":output_param,
"outputs": output_param,
"tool_version": tool.version,
"section": tool.get_panel_section(),
"dependency_shell_commands": tool.build_dependency_shell_commands(),
Expand All @@ -124,7 +124,6 @@ def to_dict(x):
"guid": tool.guid,
}


@expose_api_anonymous
def build( self, trans, id, **kwd ):
"""
Expand Down

0 comments on commit 5911f50

Please sign in to comment.