genomepy.files.extract_gzip

genomepy.files.extract_gzip(fname: str, outfile: Optional[str] = None) Optional[str]

Gunzips the file if gzipped.

Also works on bgzipped files.

Parameters
  • fname (str) – path to file

  • outfile (str, optional) – Name of the output file.

Returns

fname, str

up to date filename, or None if failed

Return type

tuple