Coverage for src/python/ensembl/io/genomio/manifest/generate.py: 38%
13 statements
« prev ^ index » next coverage.py v7.6.12, created at 2025-02-21 15:37 +0000
« prev ^ index » next coverage.py v7.6.12, created at 2025-02-21 15:37 +0000
1# See the NOTICE file distributed with this work for additional information
2# regarding copyright ownership.
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15"""Creates a manifest file in a folder depending on the file names ends."""
17import ensembl.io.genomio
18from ensembl.io.genomio.manifest.manifest import Manifest
19from ensembl.utils.argparse import ArgumentParser
20from ensembl.utils.logging import init_logging_with_args
23def main() -> None:
24 """Main entrypoint."""
25 parser = ArgumentParser(
26 description="Compare the genomic data between the files present in a manifest file."
27 )
28 parser.add_argument_dst_path(
29 "--manifest_dir", required=True, help="Folder where to create a manifest file"
30 )
31 parser.add_argument("--version", action="version", version=ensembl.io.genomio.__version__)
32 parser.add_log_arguments()
33 args = parser.parse_args()
34 init_logging_with_args(args)
36 manifest = Manifest(args.manifest_dir)
37 manifest.create()
40if __name__ == "__main__":
41 main()