Skip to content

Commit 76df0e1

Browse files
author
Rob Patro
committed
format: black code format
1 parent 50aebca commit 76df0e1

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

bin/pyroe

+7-10
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ if __name__ == "__main__":
1919
description="The pyroe package provides useful functions to support alevin-fry ecosystem.",
2020
prog="pyroe",
2121
)
22-
parser.add_argument("-v", "--version", action="version", version=f"pyroe {__version__}")
22+
parser.add_argument(
23+
"-v", "--version", action="version", version=f"pyroe {__version__}"
24+
)
2325
subparsers = parser.add_subparsers(
2426
title="subcommands",
2527
dest="command",
@@ -142,22 +144,17 @@ if __name__ == "__main__":
142144
help="A flag indicates whether help messaged should not be printed.",
143145
)
144146

145-
146147
parser_id_to_name = subparsers.add_parser(
147148
"id-to-name", help="Generate a gene id to gene name mapping file from a GTF."
148149
)
150+
parser_id_to_name.add_argument("gtf_file", help="The GTF input file.")
149151
parser_id_to_name.add_argument(
150-
"gtf_file",
151-
help="The GTF input file."
152-
)
153-
parser_id_to_name.add_argument(
154-
"output",
155-
help="The path to where the output tsv file will be written."
152+
"output", help="The path to where the output tsv file will be written."
156153
)
157154
parser_id_to_name.add_argument(
158155
"--format",
159156
help="The input format of the file (must be either GTF or GFF3). This will be inferred from the filename, but if that fails it can be provided explicitly.",
160-
default=None
157+
default=None,
161158
)
162159

163160
out_formats = output_formats()
@@ -187,7 +184,7 @@ if __name__ == "__main__":
187184
"--geneid-to-name",
188185
type=str,
189186
required=False,
190-
help="A 2 column tab-separated list of gene ID to gene name mappings. Providing this file will project gene IDs to gene names in the output."
187+
help="A 2 column tab-separated list of gene ID to gene name mappings. Providing this file will project gene IDs to gene names in the output.",
191188
)
192189

193190
logging.basicConfig(level=logging.INFO)

0 commit comments

Comments
 (0)