factory
ensembl.io.genomio.schemas.json.factory
¶
Generates one JSON file per metadata type inside manifest
, including the manifest itself.
main()
¶
Main script entry-point.
Source code in src/python/ensembl/io/genomio/schemas/json/factory.py
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 |
|
schema_factory(manifest_dir, metadata_types, output_dir)
¶
Generates one JSON file per metadata type inside manifest
, including "manifest.json" itself.
Each JSON file will have the file name of the metadata type, e.g. "seq_region.json".
Parameters:
Name | Type | Description | Default |
---|---|---|---|
manifest_dir
|
PathLike
|
Path to the folder with the manifest JSON file to check. |
required |
metadata_types
|
List[str]
|
Metadata types to extract from |
required |
output_dir
|
PathLike
|
Path to the folder where to generate the JSON files. |
required |
Source code in src/python/ensembl/io/genomio/schemas/json/factory.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
|