Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Registry.get_datatype_by_extension() to return None if ext is unknown #4224

Merged
merged 3 commits into from
Jun 26, 2017

Conversation

nsoranzo
Copy link
Member

@nsoranzo nsoranzo commented Jun 26, 2017

Without this fix, the Cheetah expression:

$dataset.is_of_type('unknown_ext')

in a tool command would be equivalent to:

$dataset.is_of_type('txt')

meaning that if the dataset datatype is a subclass of Text, the expression would evaluate to True without any warning.

xref. galaxyproject/tools-iuc#1373

Also:

  • add missing xml datatype to test/functional/tools/sample_datatypes_conf.xml which is needed by 3 test tools.
  • fix import order and Python3 compatibility for lib/galaxy/datatypes/registry.py xref. Python 3 support. #1715
  • small fixes.

The first commit should be backported to fix galaxyproject/tools-iuc#1373 on pre-17.01 releases.

nsoranzo added 3 commits June 26, 2017 00:43
…nown

Without this fix, the Cheetah expression:

$dataset.is_of_type('unknown_ext')

in a tool command would be equivalent to:

$dataset.is_of_type('txt')

meaning that if the dataset datatype is a subclass of Text, the expression
would evaluate to True without any warning.

xref. galaxyproject/tools-iuc#1373

Also add missing `xml` datatype to
`test/functional/tools/sample_datatypes_conf.xml` which is needed by 3 test
tools.
@jmchilton
Copy link
Member

Awesome - thanks a bunch @nsoranzo!

@jmchilton jmchilton merged commit 3ec2c78 into galaxyproject:dev Jun 26, 2017
@nsoranzo nsoranzo deleted the fix_get_datatype_by_extension branch June 26, 2017 09:48
@nsoranzo nsoranzo mentioned this pull request Jun 26, 2017
jmchilton added a commit that referenced this pull request Jul 5, 2017
peterjc added a commit to peterjc/galaxy_blast that referenced this pull request Oct 19, 2018
See galaxyproject/tools-iuc#1373
which was fixed and back-ported to Galaxy 16.07,
galaxyproject/galaxy#4224
galaxyproject/galaxy#4230

This would still break with other non-compressed FASTA
subclasses, but this is intended as a stop-gap until
the last few elderly Galaxy servers in use are updated.
peterjc added a commit to peterjc/galaxy_blast that referenced this pull request Oct 19, 2018
See galaxyproject/tools-iuc#1373
which was fixed and back-ported to Galaxy 16.07,
galaxyproject/galaxy#4224
galaxyproject/galaxy#4230

This would still break with other non-compressed FASTA
subclasses, but this is intended as a stop-gap until
the last few elderly Galaxy servers in use are updated.
peterjc added a commit to peterjc/galaxy_blast that referenced this pull request Oct 22, 2018
See galaxyproject/tools-iuc#1373
which was fixed and back-ported to Galaxy 16.07,
galaxyproject/galaxy#4224
galaxyproject/galaxy#4230

This would still break with other non-compressed FASTA
subclasses, but this is intended as a stop-gap until
the last few elderly Galaxy servers in use are updated.
peterjc added a commit to peterjc/galaxy_blast that referenced this pull request Oct 22, 2018
See galaxyproject/tools-iuc#1373
which was fixed and back-ported to Galaxy 16.07,
galaxyproject/galaxy#4224
galaxyproject/galaxy#4230

This would still break with other non-compressed FASTA
subclasses, but this is intended as a stop-gap until
the last few elderly Galaxy servers in use are updated.
peterjc added a commit to peterjc/galaxy_blast that referenced this pull request Oct 23, 2018
See galaxyproject/tools-iuc#1373
which was fixed and back-ported to Galaxy 16.07,
galaxyproject/galaxy#4224
galaxyproject/galaxy#4230

This would still break with other non-compressed FASTA
subclasses, but this is intended as a stop-gap until
the last few elderly Galaxy servers in use are updated.
peterjc added a commit to peterjc/galaxy_blast that referenced this pull request Oct 23, 2018
See galaxyproject/tools-iuc#1373
which was fixed and back-ported to Galaxy 16.07,
galaxyproject/galaxy#4224
galaxyproject/galaxy#4230

This would still break with other non-compressed FASTA
subclasses, but this is intended as a stop-gap until
the last few elderly Galaxy servers in use are updated.
@nsoranzo nsoranzo added the area/python3 Specific to Python 3 label Jul 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

hisat2 treats fastq input files as fastq.gz files, resulting in zero mapping rate
2 participants