Skip to content

Commit

Permalink
fixed flake8 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
nekrut authored and natefoo committed Feb 19, 2018
1 parent 39f2454 commit 91bb57b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/galaxy/datatypes/sequence.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,18 +311,21 @@ def split(cls, input_datasets, subdir_generator_function, split_params):
return None
raise NotImplementedError("Can't split generic alignment files")


class FastaGz(Sequence, Binary):
"""Class representing a generic compressed FASTQ sequence"""
edam_format = "format_1929"
file_ext = "fasta.gz"
compressed = True

def sniff(self, filename):
"""Determines whether the file is in gzip-compressed FASTA format"""
if not SNIFF_COMPRESSED_FASTAS:
return False
if not is_gzip(filename):
return False
return Sequence.sniff(self, filename)


class Fasta(Sequence):
"""Class representing a FASTA sequence"""
Expand Down

0 comments on commit 91bb57b

Please sign in to comment.