genomepy.files.extract_archive
- genomepy.files.extract_archive(fname: str, outfile: Optional[str] = None, concat: bool = False) Optional[str]
Extract files from an archive.
Archive may be a gzipped or bgzipped file (.gz), a zipped file (.zip) or a tarball (.tar.gz). Optionally, if multiple files are present they may be concatenated into one file.
- Parameters
fname (str) – path to file
outfile (str, optional) – Name of the output file.
concat (bool, optional) – If zip or tar.gz contains multiple files, concatenate them.
- Returns
- fname, str
up to date filename
- Return type
tuple