genomepy.providers.base.download_head

genomepy.providers.base.download_head(annot_url, annot_file, n: int = 5)

Download the first n lines of a (gzipped) file. Comment lines are downloaded but do not count towards the line limit.

Parameters
  • annot_url (str) – url to the file

  • annot_file (str) – output filename

  • n (int, optional) – number of lines to download