Mercurial > repos > gga > apollo_delete_features
diff create_features_from_gff3.py @ 13:21a8cad7dfa5 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:12:19 -0400 |
parents | df0e4eb2dfa5 |
children |
line wrap: on
line diff
--- a/create_features_from_gff3.py Fri Apr 24 09:02:02 2020 -0400 +++ b/create_features_from_gff3.py Mon Jun 29 09:12:19 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))