Mercurial > repos > da-intersect > test_ap11
comparison tar.py @ 10:27fd6bbf6b2f
Uploaded
author | da-intersect |
---|---|
date | Thu, 11 Apr 2013 01:44:03 -0400 |
parents | |
children | 3f8a5e98cf36 |
comparison
equal
deleted
inserted
replaced
9:609151fd424c | 10:27fd6bbf6b2f |
---|---|
1 from galaxy.datatypes.metadata import MetadataElement | |
2 from galaxy.datatypes.binary import Binary | |
3 from galaxy.datatypes import metadata | |
4 from galaxy.datatypes.sniff import * | |
5 from galaxy import eggs | |
6 import pkg_resources | |
7 pkg_resources.require( "bx-python" ) | |
8 from urllib import urlencode, quote_plus | |
9 import zipfile, gzip | |
10 import os, subprocess, tempfile, tarfile | |
11 import struct | |
12 | |
13 class Tar( Binary ): | |
14 """Class describing a BAM binary file""" | |
15 file_ext = "tar" | |
16 def sniff( self, filename ): | |
17 try: | |
18 if tarfile.is_tarfile(filename): | |
19 return True | |
20 except: | |
21 return False | |
22 |