diff mature_mir_gff_translation.py @ 10:de227b7307cf draft

planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/mircounts commit af0f70b8156c078cc0d832c54ebb678af10c42a0
author artbio
date Sun, 29 Apr 2018 18:57:13 -0400
parents 2a08a6eb471c
children b045c30fb768
line wrap: on
line diff
--- a/mature_mir_gff_translation.py	Wed Apr 25 12:48:27 2018 -0400
+++ b/mature_mir_gff_translation.py	Sun Apr 29 18:57:13 2018 -0400
@@ -5,10 +5,14 @@
 def Parser():
     the_parser = argparse.ArgumentParser()
     the_parser.add_argument(
-        '--input', action="store", type=str, help="input miRBase GFF3 file")
+        '--gff_path', action="store", type=str,
+        help="path to miRBase GFF3 file")
     the_parser.add_argument(
         '--output', action="store", type=str,
         help="output GFF3 file with converted mature mir coordinates")
+    the_parser.add_argument(
+        '--basename', action="store", type=str,
+        help="basename of the parsed gff file returned")
     args = the_parser.parse_args()
     return args
 
@@ -95,10 +99,10 @@
         output.write('\n')
 
 
-def main(infile, outfile):
-    convert_and_print_gff(infile, outfile)
+def main(gff_path, outfile):
+    convert_and_print_gff(gff_path, outfile)
 
 
 if __name__ == "__main__":
     args = Parser()
-    main(args.input, args.output)
+    main(args.gff_path, args.output)