openvariant.find_files package#

Submodules#

openvariant.find_files.find_files module#

openvariant.find_files.findfiles(base_path: str, annotation_path: Optional[str] = None, skip_files: bool = False) Generator[str, openvariant.annotation.annotation.Annotation, None][source]

Get each file and its proper annotation object.

Parameters
  • base_path (srt) – Base path of input folder/file.

  • annotation_path (str or None) – Path of annotation file.

  • skip_files (bool) – Skip unreadable files and directories.

Yields
  • str – Input file’s name.

  • Annotation – The proper schema of each input file.