genomepy.files.extract_zip

genomepy.files.extract_zip(fname: str, outfile: Optional[str] = None, concat: bool = False) Optional[str]

Unzips the file if zipped.

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