mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-24 02:04:04 +08:00
Test a non-fastqsanger file and ensure it doesn't pass the sniff test.
This commit is contained in:
@@ -608,6 +608,11 @@ class BaseFastq ( Sequence ):
|
||||
>>> fname = get_test_fname( '2.fastqsanger' )
|
||||
>>> FastqSanger().sniff( fname )
|
||||
True
|
||||
>>> fname = get_test_fname( '2.fastq' )
|
||||
>>> Fastq().sniff( fname )
|
||||
True
|
||||
>>> FastqSanger().sniff( fname )
|
||||
False
|
||||
"""
|
||||
compressed = is_gzip(filename) or is_bz2(filename)
|
||||
if compressed and not isinstance(self, Binary):
|
||||
|
||||
Reference in New Issue
Block a user