Skip to content

Commit e218007

Browse files
author
Rob Patro
committed
Merge branch 'develop' into main
2 parents 102ea18 + 76df0e1 commit e218007

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

bin/pyroe

+8-9
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,16 @@ if __name__ == "__main__":
1212
import argparse
1313
import sys
1414
from argparse import RawTextHelpFormatter
15+
from pyroe import __version__
1516

1617
# Create the parser
1718
parser = argparse.ArgumentParser(
1819
description="The pyroe package provides useful functions to support alevin-fry ecosystem.",
1920
prog="pyroe",
2021
)
22+
parser.add_argument(
23+
"-v", "--version", action="version", version=f"pyroe {__version__}"
24+
)
2125
subparsers = parser.add_subparsers(
2226
title="subcommands",
2327
dest="command",
@@ -140,22 +144,17 @@ if __name__ == "__main__":
140144
help="A flag indicates whether help messaged should not be printed.",
141145
)
142146

143-
144147
parser_id_to_name = subparsers.add_parser(
145148
"id-to-name", help="Generate a gene id to gene name mapping file from a GTF."
146149
)
150+
parser_id_to_name.add_argument("gtf_file", help="The GTF input file.")
147151
parser_id_to_name.add_argument(
148-
"gtf_file",
149-
help="The GTF input file."
150-
)
151-
parser_id_to_name.add_argument(
152-
"output",
153-
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."
154153
)
155154
parser_id_to_name.add_argument(
156155
"--format",
157156
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.",
158-
default=None
157+
default=None,
159158
)
160159

161160
out_formats = output_formats()
@@ -185,7 +184,7 @@ if __name__ == "__main__":
185184
"--geneid-to-name",
186185
type=str,
187186
required=False,
188-
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.",
189188
)
190189

191190
logging.basicConfig(level=logging.INFO)

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = pyroe
3-
version = 0.6.1
3+
version = 0.6.2
44
author = Dongze He, Rob Patro
55
66
description = utilities of alevin-fry

src/pyroe/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "0.6.1"
1+
__version__ = "0.6.2"
22

33
from pyroe.load_fry import load_fry
44
from pyroe.make_splici_txome import make_splici_txome

0 commit comments

Comments
 (0)