Skip to content

Commit f94706c

Browse files
Merge pull request #256 from MontgomeryLab/issue-252
v1.2 patch: additional updates
2 parents 03e236a + 9684357 commit f94706c

3 files changed

Lines changed: 44 additions & 35 deletions

File tree

setup.py

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,22 @@ def get_macos_sdk_path():
9090
return sdk_path
9191

9292

93+
if os.getenv('tiny_count_only') == '1':
94+
print("Only tiny-count will be installed because the environment variable \n"
95+
'"tiny_count_only" is set to 1', file=sys.stderr)
96+
97+
console_scripts = ['tiny-count = tiny.rna.counter.counter:main']
98+
scripts = []
99+
else:
100+
console_scripts = [
101+
'tiny = tiny.entry:main',
102+
'tiny-config = tiny.rna.configuration:Configuration.main',
103+
'tiny-collapse = tiny.rna.collapser:main',
104+
'tiny-count = tiny.rna.counter.counter:main',
105+
'tiny-plot = tiny.rna.plotter:main'
106+
]
107+
scripts = ['tiny/rna/tiny-deseq.r']
108+
93109
setuptools.setup(
94110
name=NAME,
95111
version=VERSION,
@@ -100,21 +116,13 @@ def get_macos_sdk_path():
100116
include_package_data=True,
101117
packages=['tiny'],
102118
zip_safe=False,
103-
entry_points={
104-
'console_scripts': [
105-
'tiny = tiny.entry:main',
106-
'tiny-config = tiny.rna.configuration:Configuration.main',
107-
'tiny-collapse = tiny.rna.collapser:main',
108-
'tiny-count = tiny.rna.counter.counter:main',
109-
'tiny-plot = tiny.rna.plotter:main'
110-
]
111-
},
119+
entry_points={'console_scripts': console_scripts},
112120
ext_modules=cythonize(
113121
get_cython_extension_defs(),
114122
compiler_directives={'language_level': '3'},
115123
gdb_debug=False
116124
),
117-
scripts=['tiny/rna/tiny-deseq.r'],
125+
scripts=scripts,
118126
classifiers=[
119127
'Programming Language :: Python :: 3',
120128
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',

tiny/rna/resume.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@ def _add_timestamps(self, steps):
117117
# Override
118118
def get_outfile_path(self, infile: str = None) -> str:
119119
if infile is None: infile = self.inf
120-
return "resume_" + os.path.basename(infile)
120+
root, ext = os.path.splitext(os.path.basename(infile))
121+
return '_'.join(["resume", root, self.dt]) + ext
121122

122123
def write_workflow(self, workflow_outfile: str) -> None:
123124
with open(workflow_outfile, "w") as wf:

tiny/templates/tinyrna-light.mplstyle

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,49 +5,49 @@
55
#### Figure basics ####
66
savefig.dpi: 300
77
figure.autolayout: true
8-
figure.facecolor: white
9-
figure.edgecolor: 0.50
8+
figure.facecolor: None
9+
figure.edgecolor: None
1010

1111
#### Scatter Styles ####
12-
scatter.marker: o
12+
scatter.marker: .
1313

1414
#### Tick styles ####
1515
xtick.color: 333333
1616
xtick.direction: out
1717
ytick.color: 333333
1818
ytick.direction: out
1919

20-
xtick.major.size: 3.0
21-
ytick.major.size: 3.0
20+
xtick.major.size: 5.0
21+
ytick.major.size: 5.0
2222
xtick.minor.size: 1.5
2323
ytick.minor.size: 1.5
24-
xtick.major.width: 0.8
25-
ytick.major.width: 0.8
26-
xtick.minor.width: 0.6
27-
ytick.minor.width: 0.6
24+
xtick.major.width: 0.4
25+
ytick.major.width: 0.4
26+
xtick.minor.width: 0.4
27+
ytick.minor.width: 0.4
2828

2929
xtick.major.pad: 3.5
3030
ytick.major.pad: 3.5
3131

32-
xtick.labelsize: 16
33-
ytick.labelsize: 16
32+
xtick.labelsize: 20
33+
ytick.labelsize: 20
3434

3535
#### Axes basics ####
36-
axes.labelsize: 16
37-
axes.titlesize: 16
36+
axes.labelsize: 20
37+
axes.titlesize: 20
3838
axes.facecolor: white
3939
axes.edgecolor: 333333
40-
axes.linewidth: 1
40+
axes.linewidth: 0.4
4141
axes.grid: True
42-
axes.labelcolor: 333333
42+
axes.labelcolor: 000000
4343
axes.labelpad: 4.0
4444
axes.axisbelow: True
4545
axes.autolimit_mode: round_numbers
4646
axes.xmargin: 0.04
4747
axes.ymargin: 0.04
4848

4949
#### Legend ####
50-
legend.fontsize: 16
50+
legend.fontsize: 20
5151
legend.framealpha: 0.8
5252
legend.edgecolor: 0.8
5353
legend.markerscale: 3.0
@@ -71,29 +71,29 @@ font.size: 10
7171
mathtext.default: regular
7272

7373
#### Line style ####
74-
lines.linewidth: 1.0
75-
lines.markersize: 3.25
74+
lines.linewidth: 0.4
75+
lines.markersize: 7.5
7676
lines.markeredgewidth: 0
7777

7878
#### Color cycle Default ####
7979
#### Default colors used when color isn't specified in code
80-
axes.prop_cycle: cycler('color', ['F1605D', '51B9CF', 'FDC010', 'A5D38E', 'ED2891', '09535B', 'F0732A', '971BF0', '17D1C9', '82C046', 'A32225', 'E9D9A3'])
80+
axes.prop_cycle: cycler('color', ['F1605D', '2980B9', 'FDC010', 'A5D38E', 'ED2891', '09535B', 'A32225', '971BF0', '17D1C9', '82C046', 'F0732A', 'E9D9A3'])
8181
# F1605D : light red
82-
# 51B9CF : light blue
82+
# 2980B9 : blue
8383
# FDC010 : gold-yellow
8484
# A5D38E : light green
8585
# ED2891 : hot pink
8686
# 09535B : dark blue
87-
# F0732A : orange
87+
# A32225 : deep red
8888
# 971BF0 : purple
8989
# 17D1C9 : turquoise
9090
# 82C046 : green
91-
# A32225 : deep red
91+
# F0732A : orange
9292
# E9D9A3 : tan
9393

9494
#### Grid style ####
9595
grid.color: 333333
96-
grid.linestyle: --
97-
grid.linewidth: 0.8
96+
grid.linestyle: :
97+
grid.linewidth: 0.4
9898
grid.alpha: 0.2
9999

0 commit comments

Comments
 (0)