Mercurial > repos > gga > apollo_list_organism
diff create_features_from_gff3.py @ 13:06254eb0cb13 draft
"planemo upload for repository https://github.com/galaxy-genome-annotation/galaxy-tools/tree/master/tools/apollo commit 7bf18c69becc57152efdadedf7ebd0bcfa382a15"
author | gga |
---|---|
date | Mon, 29 Jun 2020 09:16:00 -0400 |
parents | bc2b80fc7e30 |
children |
line wrap: on
line diff
--- a/create_features_from_gff3.py Fri Apr 24 09:06:12 2020 -0400 +++ b/create_features_from_gff3.py Mon Jun 29 09:16:00 2020 -0400 @@ -1,5 +1,6 @@ #!/usr/bin/env python import argparse +import json import logging from apollo import accessible_organisms @@ -16,6 +17,8 @@ parser = argparse.ArgumentParser(description='Sample script to add an attribute to a feature via web services') parser.add_argument('email', help='User Email') parser.add_argument('--source', help='URL where the input dataset can be found.') + parser.add_argument('--use_name', action='store_true', help='Use the given name instead of generating one.') + parser.add_argument('--disable_cds_recalculation', action='store_true', help='Disable CDS recalculation and instead use the one provided.') OrgOrGuess(parser) parser.add_argument('gff3', type=argparse.FileType('r'), help='GFF3 file') @@ -42,4 +45,5 @@ if not orgs: raise Exception("You do not have write permission on this organism") - wa.annotations.load_gff3(org_cn, args.gff3, args.source) + load_result = wa.annotations.load_gff3(org_cn, args.gff3, args.source, use_name=args.use_name, disable_cds_recalculation=args.disable_cds_recalculation) + print(json.dumps(load_result, indent=2))