def example_data():
if not os.path.isfile("cwl-example-data/chr22_cwl_test.cram"):
from six.moves.urllib.request import urlopen
import tarfile
print("Downloading and extracting cwl-example-data")
tgz = urlopen("https://cwl-example-data.cog.sanger.ac.uk/chr22_cwl_test.tgz")
tar = tarfile.open(fileobj=tgz, mode="r|gz")
tar.extractall(path="cwl-example-data")
tar.close()
tgz.close()
评论列表
文章目录