mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-25 10:24:38 +08:00
Explicit failure for merging XML files
This commit is contained in:
@@ -42,6 +42,13 @@ class GenericXml( data.Text ):
|
||||
#TODO - Is there a more robust way to do this?
|
||||
return line.startswith('<?xml ')
|
||||
|
||||
def merge(split_files, output_file):
|
||||
"""Merging multiple XML files is non-trivial and must be done in subclasses."""
|
||||
if len(split_files) > 1:
|
||||
raise NotImplementedError("Merging multiple XML files is non-trivial and must be implemented for each XML type")
|
||||
#For one file only, use base class method (move/copy)
|
||||
data.Text.merge(split_files, output_file)
|
||||
merge = staticmethod(merge)
|
||||
|
||||
class BlastXml( GenericXml ):
|
||||
"""NCBI Blast XML Output data"""
|
||||
|
||||
Reference in New Issue
Block a user