msreport 0.0.32__py3-none-any.whl → 0.0.33__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- msreport/__init__.py +16 -7
- msreport/analyze.py +414 -39
- msreport/plot/distribution.py +3 -3
- msreport/plot/multivariate.py +0 -1
- msreport/plot/style_sheets/_all_relevant_styles.md +594 -0
- msreport/qtable.py +3 -2
- msreport/reader.py +9 -1
- msreport/rinterface/limma.py +68 -3
- msreport/rinterface/rscripts/limma.R +79 -18
- {msreport-0.0.32.dist-info → msreport-0.0.33.dist-info}/METADATA +153 -154
- {msreport-0.0.32.dist-info → msreport-0.0.33.dist-info}/RECORD +13 -13
- {msreport-0.0.32.dist-info → msreport-0.0.33.dist-info}/WHEEL +1 -2
- msreport-0.0.32.dist-info/top_level.txt +0 -1
- {msreport-0.0.32.dist-info → msreport-0.0.33.dist-info}/licenses/LICENSE.txt +0 -0
|
@@ -0,0 +1,594 @@
|
|
|
1
|
+
#### MATPLOTLIBRC FORMAT
|
|
2
|
+
|
|
3
|
+
## Matplotlib configuration are currently divided into following parts:
|
|
4
|
+
## - BACKENDS
|
|
5
|
+
## - LINES
|
|
6
|
+
## - PATCHES
|
|
7
|
+
## - HATCHES
|
|
8
|
+
## - BOXPLOT
|
|
9
|
+
## - FONT
|
|
10
|
+
## - TEXT
|
|
11
|
+
## - LaTeX
|
|
12
|
+
## - AXES
|
|
13
|
+
## - DATES
|
|
14
|
+
## - TICKS
|
|
15
|
+
## - GRIDS
|
|
16
|
+
## - LEGEND
|
|
17
|
+
## - FIGURE
|
|
18
|
+
## - IMAGES
|
|
19
|
+
## - CONTOUR PLOTS
|
|
20
|
+
## - ERRORBAR PLOTS
|
|
21
|
+
## - HISTOGRAM PLOTS
|
|
22
|
+
## - SCATTER PLOTS
|
|
23
|
+
## - AGG RENDERING
|
|
24
|
+
## - PATHS
|
|
25
|
+
## - SAVING FIGURES
|
|
26
|
+
## - INTERACTIVE KEYMAPS
|
|
27
|
+
## - ANIMATION
|
|
28
|
+
|
|
29
|
+
## ***************************************************************************
|
|
30
|
+
## * LINES *
|
|
31
|
+
## ***************************************************************************
|
|
32
|
+
## See https://matplotlib.org/stable/api/artist_api.html#module-matplotlib.lines
|
|
33
|
+
## for more information on line properties.
|
|
34
|
+
#lines.linewidth: 1.5 # line width in points
|
|
35
|
+
#lines.linestyle: - # solid line
|
|
36
|
+
#lines.color: C0 # has no affect on plot(); see axes.prop_cycle
|
|
37
|
+
#lines.marker: None # the default marker
|
|
38
|
+
#lines.markerfacecolor: auto # the default marker face color
|
|
39
|
+
#lines.markeredgecolor: auto # the default marker edge color
|
|
40
|
+
#lines.markeredgewidth: 1.0 # the line width around the marker symbol
|
|
41
|
+
#lines.markersize: 6 # marker size, in points
|
|
42
|
+
#lines.dash_joinstyle: round # {miter, round, bevel}
|
|
43
|
+
#lines.dash_capstyle: butt # {butt, round, projecting}
|
|
44
|
+
#lines.solid_joinstyle: round # {miter, round, bevel}
|
|
45
|
+
#lines.solid_capstyle: projecting # {butt, round, projecting}
|
|
46
|
+
#lines.antialiased: True # render lines in antialiased (no jaggies)
|
|
47
|
+
|
|
48
|
+
## The three standard dash patterns. These are scaled by the linewidth.
|
|
49
|
+
#lines.dashed_pattern: 3.7, 1.6
|
|
50
|
+
#lines.dashdot_pattern: 6.4, 1.6, 1, 1.6
|
|
51
|
+
#lines.dotted_pattern: 1, 1.65
|
|
52
|
+
#lines.scale_dashes: True
|
|
53
|
+
|
|
54
|
+
#markers.fillstyle: full # {full, left, right, bottom, top, none}
|
|
55
|
+
|
|
56
|
+
#pcolor.shading: auto
|
|
57
|
+
#pcolormesh.snap: True # Whether to snap the mesh to pixel boundaries. This is
|
|
58
|
+
# provided solely to allow old test images to remain
|
|
59
|
+
# unchanged. Set to False to obtain the previous behavior.
|
|
60
|
+
|
|
61
|
+
## ***************************************************************************
|
|
62
|
+
## * PATCHES *
|
|
63
|
+
## ***************************************************************************
|
|
64
|
+
## Patches are graphical objects that fill 2D space, like polygons or circles.
|
|
65
|
+
## See https://matplotlib.org/stable/api/artist_api.html#module-matplotlib.patches
|
|
66
|
+
## for more information on patch properties.
|
|
67
|
+
#patch.linewidth: 1.0 # edge width in points.
|
|
68
|
+
#patch.facecolor: C0
|
|
69
|
+
#patch.edgecolor: black # By default, Patches and Collections do not draw edges.
|
|
70
|
+
# This value is only used if facecolor is "none"
|
|
71
|
+
# (an Artist without facecolor and edgecolor would be
|
|
72
|
+
# invisible) or if patch.force_edgecolor is True.
|
|
73
|
+
#patch.force_edgecolor: False # By default, Patches and Collections do not draw edges.
|
|
74
|
+
# Set this to True to draw edges with patch.edgedcolor
|
|
75
|
+
# as the default edgecolor.
|
|
76
|
+
# This is mainly relevant for styles.
|
|
77
|
+
#patch.antialiased: True # render patches in antialiased (no jaggies)
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
## ***************************************************************************
|
|
81
|
+
## * HATCHES *
|
|
82
|
+
## ***************************************************************************
|
|
83
|
+
#hatch.color: black
|
|
84
|
+
#hatch.linewidth: 1.0
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
## ***************************************************************************
|
|
88
|
+
## * BOXPLOT *
|
|
89
|
+
## ***************************************************************************
|
|
90
|
+
#boxplot.notch: False
|
|
91
|
+
#boxplot.vertical: True
|
|
92
|
+
#boxplot.whiskers: 1.5
|
|
93
|
+
#boxplot.bootstrap: None
|
|
94
|
+
#boxplot.patchartist: False
|
|
95
|
+
#boxplot.showmeans: False
|
|
96
|
+
#boxplot.showcaps: True
|
|
97
|
+
#boxplot.showbox: True
|
|
98
|
+
#boxplot.showfliers: True
|
|
99
|
+
#boxplot.meanline: False
|
|
100
|
+
|
|
101
|
+
#boxplot.flierprops.color: black
|
|
102
|
+
#boxplot.flierprops.marker: o
|
|
103
|
+
#boxplot.flierprops.markerfacecolor: none
|
|
104
|
+
#boxplot.flierprops.markeredgecolor: black
|
|
105
|
+
#boxplot.flierprops.markeredgewidth: 1.0
|
|
106
|
+
#boxplot.flierprops.markersize: 6
|
|
107
|
+
#boxplot.flierprops.linestyle: none
|
|
108
|
+
#boxplot.flierprops.linewidth: 1.0
|
|
109
|
+
|
|
110
|
+
#boxplot.boxprops.color: black
|
|
111
|
+
#boxplot.boxprops.linewidth: 1.0
|
|
112
|
+
#boxplot.boxprops.linestyle: -
|
|
113
|
+
|
|
114
|
+
#boxplot.whiskerprops.color: black
|
|
115
|
+
#boxplot.whiskerprops.linewidth: 1.0
|
|
116
|
+
#boxplot.whiskerprops.linestyle: -
|
|
117
|
+
|
|
118
|
+
#boxplot.capprops.color: black
|
|
119
|
+
#boxplot.capprops.linewidth: 1.0
|
|
120
|
+
#boxplot.capprops.linestyle: -
|
|
121
|
+
|
|
122
|
+
#boxplot.medianprops.color: C1
|
|
123
|
+
#boxplot.medianprops.linewidth: 1.0
|
|
124
|
+
#boxplot.medianprops.linestyle: -
|
|
125
|
+
|
|
126
|
+
#boxplot.meanprops.color: C2
|
|
127
|
+
#boxplot.meanprops.marker: ^
|
|
128
|
+
#boxplot.meanprops.markerfacecolor: C2
|
|
129
|
+
#boxplot.meanprops.markeredgecolor: C2
|
|
130
|
+
#boxplot.meanprops.markersize: 6
|
|
131
|
+
#boxplot.meanprops.linestyle: --
|
|
132
|
+
#boxplot.meanprops.linewidth: 1.0
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
## ***************************************************************************
|
|
136
|
+
## * FONT *
|
|
137
|
+
## ***************************************************************************
|
|
138
|
+
## The font properties used by `text.Text`.
|
|
139
|
+
## See https://matplotlib.org/stable/api/font_manager_api.html for more information
|
|
140
|
+
## on font properties. The 6 font properties used for font matching are
|
|
141
|
+
## given below with their default values.
|
|
142
|
+
##
|
|
143
|
+
## The font.family property can take either a single or multiple entries of any
|
|
144
|
+
## combination of concrete font names (not supported when rendering text with
|
|
145
|
+
## usetex) or the following five generic values:
|
|
146
|
+
## - 'serif' (e.g., Times),
|
|
147
|
+
## - 'sans-serif' (e.g., Helvetica),
|
|
148
|
+
## - 'cursive' (e.g., Zapf-Chancery),
|
|
149
|
+
## - 'fantasy' (e.g., Western), and
|
|
150
|
+
## - 'monospace' (e.g., Courier).
|
|
151
|
+
## Each of these values has a corresponding default list of font names
|
|
152
|
+
## (font.serif, etc.); the first available font in the list is used. Note that
|
|
153
|
+
## for font.serif, font.sans-serif, and font.monospace, the first element of
|
|
154
|
+
## the list (a DejaVu font) will always be used because DejaVu is shipped with
|
|
155
|
+
## Matplotlib and is thus guaranteed to be available; the other entries are
|
|
156
|
+
## left as examples of other possible values.
|
|
157
|
+
##
|
|
158
|
+
## The font.style property has three values: normal (or roman), italic
|
|
159
|
+
## or oblique. The oblique style will be used for italic, if it is not
|
|
160
|
+
## present.
|
|
161
|
+
##
|
|
162
|
+
## The font.variant property has two values: normal or small-caps. For
|
|
163
|
+
## TrueType fonts, which are scalable fonts, small-caps is equivalent
|
|
164
|
+
## to using a font size of 'smaller', or about 83 % of the current font
|
|
165
|
+
## size.
|
|
166
|
+
##
|
|
167
|
+
## The font.weight property has effectively 13 values: normal, bold,
|
|
168
|
+
## bolder, lighter, 100, 200, 300, ..., 900. Normal is the same as
|
|
169
|
+
## 400, and bold is 700. bolder and lighter are relative values with
|
|
170
|
+
## respect to the current weight.
|
|
171
|
+
##
|
|
172
|
+
## The font.stretch property has 11 values: ultra-condensed,
|
|
173
|
+
## extra-condensed, condensed, semi-condensed, normal, semi-expanded,
|
|
174
|
+
## expanded, extra-expanded, ultra-expanded, wider, and narrower. This
|
|
175
|
+
## property is not currently implemented.
|
|
176
|
+
##
|
|
177
|
+
## The font.size property is the default font size for text, given in points.
|
|
178
|
+
## 10 pt is the standard value.
|
|
179
|
+
##
|
|
180
|
+
## Note that font.size controls default text sizes. To configure
|
|
181
|
+
## special text sizes tick labels, axes, labels, title, etc., see the rc
|
|
182
|
+
## settings for axes and ticks. Special text sizes can be defined
|
|
183
|
+
## relative to font.size, using the following values: xx-small, x-small,
|
|
184
|
+
## small, medium, large, x-large, xx-large, larger, or smaller
|
|
185
|
+
## - 'xx-small' : 0.579,
|
|
186
|
+
## - 'x-small' : 0.694,
|
|
187
|
+
## - 'small' : 0.833,
|
|
188
|
+
## - 'medium' : 1.0,
|
|
189
|
+
## - 'large' : 1.200,
|
|
190
|
+
## - 'x-large' : 1.440,
|
|
191
|
+
## - 'xx-large' : 1.728,
|
|
192
|
+
## - 'larger' : 1.2,
|
|
193
|
+
## - 'smaller' : 0.833,
|
|
194
|
+
|
|
195
|
+
#font.family: sans-serif
|
|
196
|
+
#font.style: normal
|
|
197
|
+
#font.variant: normal
|
|
198
|
+
#font.weight: normal
|
|
199
|
+
#font.stretch: normal
|
|
200
|
+
#font.size: 10.0
|
|
201
|
+
|
|
202
|
+
#font.serif: DejaVu Serif, Bitstream Vera Serif, Computer Modern Roman, New Century Schoolbook, Century Schoolbook L, Utopia, ITC Bookman, Bookman, Nimbus Roman No9 L, Times New Roman, Times, Palatino, Charter, serif
|
|
203
|
+
#font.sans-serif: DejaVu Sans, Bitstream Vera Sans, Computer Modern Sans Serif, Lucida Grande, Verdana, Geneva, Lucid, Arial, Helvetica, Avant Garde, sans-serif
|
|
204
|
+
#font.cursive: Apple Chancery, Textile, Zapf Chancery, Sand, Script MT, Felipa, Comic Neue, Comic Sans MS, cursive
|
|
205
|
+
#font.fantasy: Chicago, Charcoal, Impact, Western, xkcd script, fantasy
|
|
206
|
+
#font.monospace: DejaVu Sans Mono, Bitstream Vera Sans Mono, Computer Modern Typewriter, Andale Mono, Nimbus Mono L, Courier New, Courier, Fixed, Terminal, monospace
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
## ***************************************************************************
|
|
210
|
+
## * TEXT *
|
|
211
|
+
## ***************************************************************************
|
|
212
|
+
## The text properties used by `text.Text`.
|
|
213
|
+
## See https://matplotlib.org/stable/api/artist_api.html#module-matplotlib.text
|
|
214
|
+
## for more information on text properties
|
|
215
|
+
#text.color: black
|
|
216
|
+
|
|
217
|
+
## FreeType hinting flag ("foo" corresponds to FT_LOAD_FOO); may be one of the
|
|
218
|
+
## following (Proprietary Matplotlib-specific synonyms are given in parentheses,
|
|
219
|
+
## but their use is discouraged):
|
|
220
|
+
## - default: Use the font's native hinter if possible, else FreeType's auto-hinter.
|
|
221
|
+
## ("either" is a synonym).
|
|
222
|
+
## - no_autohint: Use the font's native hinter if possible, else don't hint.
|
|
223
|
+
## ("native" is a synonym.)
|
|
224
|
+
## - force_autohint: Use FreeType's auto-hinter. ("auto" is a synonym.)
|
|
225
|
+
## - no_hinting: Disable hinting. ("none" is a synonym.)
|
|
226
|
+
#text.hinting: force_autohint
|
|
227
|
+
|
|
228
|
+
#text.hinting_factor: 8 # Specifies the amount of softness for hinting in the
|
|
229
|
+
# horizontal direction. A value of 1 will hint to full
|
|
230
|
+
# pixels. A value of 2 will hint to half pixels etc.
|
|
231
|
+
#text.kerning_factor: 0 # Specifies the scaling factor for kerning values. This
|
|
232
|
+
# is provided solely to allow old test images to remain
|
|
233
|
+
# unchanged. Set to 6 to obtain previous behavior.
|
|
234
|
+
# Values other than 0 or 6 have no defined meaning.
|
|
235
|
+
#text.antialiased: True # If True (default), the text will be antialiased.
|
|
236
|
+
# This only affects raster outputs.
|
|
237
|
+
#text.parse_math: True # Use mathtext if there is an even number of unescaped
|
|
238
|
+
# dollar signs.
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
## ***************************************************************************
|
|
242
|
+
## * AXES *
|
|
243
|
+
## ***************************************************************************
|
|
244
|
+
## Following are default face and edge colors, default tick sizes,
|
|
245
|
+
## default font sizes for tick labels, and so on. See
|
|
246
|
+
## https://matplotlib.org/stable/api/axes_api.html#module-matplotlib.axes
|
|
247
|
+
#axes.facecolor: white # axes background color
|
|
248
|
+
#axes.edgecolor: black # axes edge color
|
|
249
|
+
#axes.linewidth: 0.8 # edge line width
|
|
250
|
+
#axes.grid: False # display grid or not
|
|
251
|
+
#axes.grid.axis: both # which axis the grid should apply to
|
|
252
|
+
#axes.grid.which: major # grid lines at {major, minor, both} ticks
|
|
253
|
+
#axes.titlelocation: center # alignment of the title: {left, right, center}
|
|
254
|
+
#axes.titlesize: large # font size of the axes title
|
|
255
|
+
#axes.titleweight: normal # font weight of title
|
|
256
|
+
#axes.titlecolor: auto # color of the axes title, auto falls back to
|
|
257
|
+
# text.color as default value
|
|
258
|
+
#axes.titley: None # position title (axes relative units). None implies auto
|
|
259
|
+
#axes.titlepad: 6.0 # pad between axes and title in points
|
|
260
|
+
#axes.labelsize: medium # font size of the x and y labels
|
|
261
|
+
#axes.labelpad: 4.0 # space between label and axis
|
|
262
|
+
#axes.labelweight: normal # weight of the x and y labels
|
|
263
|
+
#axes.labelcolor: black
|
|
264
|
+
#axes.axisbelow: line # draw axis gridlines and ticks:
|
|
265
|
+
# - below patches (True)
|
|
266
|
+
# - above patches but below lines ('line')
|
|
267
|
+
# - above all (False)
|
|
268
|
+
|
|
269
|
+
#axes.formatter.limits: -5, 6 # use scientific notation if log10
|
|
270
|
+
# of the axis range is smaller than the
|
|
271
|
+
# first or larger than the second
|
|
272
|
+
#axes.formatter.use_locale: False # When True, format tick labels
|
|
273
|
+
# according to the user's locale.
|
|
274
|
+
# For example, use ',' as a decimal
|
|
275
|
+
# separator in the fr_FR locale.
|
|
276
|
+
#axes.formatter.use_mathtext: False # When True, use mathtext for scientific
|
|
277
|
+
# notation.
|
|
278
|
+
#axes.formatter.min_exponent: 0 # minimum exponent to format in scientific notation
|
|
279
|
+
#axes.formatter.useoffset: True # If True, the tick label formatter
|
|
280
|
+
# will default to labeling ticks relative
|
|
281
|
+
# to an offset when the data range is
|
|
282
|
+
# small compared to the minimum absolute
|
|
283
|
+
# value of the data.
|
|
284
|
+
#axes.formatter.offset_threshold: 4 # When useoffset is True, the offset
|
|
285
|
+
# will be used when it can remove
|
|
286
|
+
# at least this number of significant
|
|
287
|
+
# digits from tick labels.
|
|
288
|
+
|
|
289
|
+
#axes.spines.left: True # display axis spines
|
|
290
|
+
#axes.spines.bottom: True
|
|
291
|
+
#axes.spines.top: True
|
|
292
|
+
#axes.spines.right: True
|
|
293
|
+
|
|
294
|
+
#axes.unicode_minus: True # use Unicode for the minus symbol rather than hyphen. See
|
|
295
|
+
# https://en.wikipedia.org/wiki/Plus_and_minus_signs#Character_codes
|
|
296
|
+
#axes.prop_cycle: cycler('color', ['1f77b4', 'ff7f0e', '2ca02c', 'd62728', '9467bd', '8c564b', 'e377c2', '7f7f7f', 'bcbd22', '17becf'])
|
|
297
|
+
# color cycle for plot lines as list of string color specs:
|
|
298
|
+
# single letter, long name, or web-style hex
|
|
299
|
+
# As opposed to all other parameters in this file, the color
|
|
300
|
+
# values must be enclosed in quotes for this parameter,
|
|
301
|
+
# e.g. '1f77b4', instead of 1f77b4.
|
|
302
|
+
# See also https://matplotlib.org/stable/users/explain/artists/color_cycle.html
|
|
303
|
+
# for more details on prop_cycle usage.
|
|
304
|
+
#axes.xmargin: .05 # x margin. See `axes.Axes.margins`
|
|
305
|
+
#axes.ymargin: .05 # y margin. See `axes.Axes.margins`
|
|
306
|
+
#axes.zmargin: .05 # z margin. See `axes.Axes.margins`
|
|
307
|
+
#axes.autolimit_mode: data # If "data", use axes.xmargin and axes.ymargin as is.
|
|
308
|
+
# If "round_numbers", after application of margins, axis
|
|
309
|
+
# limits are further expanded to the nearest "round" number.
|
|
310
|
+
#polaraxes.grid: True # display grid on polar axes
|
|
311
|
+
#axes3d.grid: True # display grid on 3D axes
|
|
312
|
+
#axes3d.automargin: False # automatically add margin when manually setting 3D axis limits
|
|
313
|
+
|
|
314
|
+
#axes3d.xaxis.panecolor: (0.95, 0.95, 0.95, 0.5) # background pane on 3D axes
|
|
315
|
+
#axes3d.yaxis.panecolor: (0.90, 0.90, 0.90, 0.5) # background pane on 3D axes
|
|
316
|
+
#axes3d.zaxis.panecolor: (0.925, 0.925, 0.925, 0.5) # background pane on 3D axes
|
|
317
|
+
|
|
318
|
+
#axes3d.mouserotationstyle: arcball # {azel, trackball, sphere, arcball}
|
|
319
|
+
# See also https://matplotlib.org/stable/api/toolkits/mplot3d/view_angles.html#rotation-with-mouse
|
|
320
|
+
#axes3d.trackballsize: 0.667 # trackball diameter, in units of the Axes bbox
|
|
321
|
+
#axes3d.trackballborder: 0.2 # trackball border width, in units of the Axes bbox (only for 'sphere' and 'arcball' style)
|
|
322
|
+
|
|
323
|
+
## ***************************************************************************
|
|
324
|
+
## * AXIS *
|
|
325
|
+
## ***************************************************************************
|
|
326
|
+
#xaxis.labellocation: center # alignment of the xaxis label: {left, right, center}
|
|
327
|
+
#yaxis.labellocation: center # alignment of the yaxis label: {bottom, top, center}
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
## ***************************************************************************
|
|
331
|
+
## * DATES *
|
|
332
|
+
## ***************************************************************************
|
|
333
|
+
## These control the default format strings used in AutoDateFormatter.
|
|
334
|
+
## Any valid format datetime format string can be used (see the python
|
|
335
|
+
## `datetime` for details). For example, by using:
|
|
336
|
+
## - '%x' will use the locale date representation
|
|
337
|
+
## - '%X' will use the locale time representation
|
|
338
|
+
## - '%c' will use the full locale datetime representation
|
|
339
|
+
## These values map to the scales:
|
|
340
|
+
## {'year': 365, 'month': 30, 'day': 1, 'hour': 1/24, 'minute': 1 / (24 * 60)}
|
|
341
|
+
|
|
342
|
+
#date.autoformatter.year: %Y
|
|
343
|
+
#date.autoformatter.month: %Y-%m
|
|
344
|
+
#date.autoformatter.day: %Y-%m-%d
|
|
345
|
+
#date.autoformatter.hour: %m-%d %H
|
|
346
|
+
#date.autoformatter.minute: %d %H:%M
|
|
347
|
+
#date.autoformatter.second: %H:%M:%S
|
|
348
|
+
#date.autoformatter.microsecond: %M:%S.%f
|
|
349
|
+
## The reference date for Matplotlib's internal date representation
|
|
350
|
+
## See https://matplotlib.org/stable/gallery/ticks/date_precision_and_epochs.html
|
|
351
|
+
#date.epoch: 1970-01-01T00:00:00
|
|
352
|
+
## 'auto', 'concise':
|
|
353
|
+
#date.converter: auto
|
|
354
|
+
## For auto converter whether to use interval_multiples:
|
|
355
|
+
#date.interval_multiples: True
|
|
356
|
+
|
|
357
|
+
## ***************************************************************************
|
|
358
|
+
## * TICKS *
|
|
359
|
+
## ***************************************************************************
|
|
360
|
+
## See https://matplotlib.org/stable/api/axis_api.html#matplotlib.axis.Tick
|
|
361
|
+
#xtick.top: False # draw ticks on the top side
|
|
362
|
+
#xtick.bottom: True # draw ticks on the bottom side
|
|
363
|
+
#xtick.labeltop: False # draw label on the top
|
|
364
|
+
#xtick.labelbottom: True # draw label on the bottom
|
|
365
|
+
#xtick.major.size: 3.5 # major tick size in points
|
|
366
|
+
#xtick.minor.size: 2 # minor tick size in points
|
|
367
|
+
#xtick.major.width: 0.8 # major tick width in points
|
|
368
|
+
#xtick.minor.width: 0.6 # minor tick width in points
|
|
369
|
+
#xtick.major.pad: 3.5 # distance to major tick label in points
|
|
370
|
+
#xtick.minor.pad: 3.4 # distance to the minor tick label in points
|
|
371
|
+
#xtick.color: black # color of the ticks
|
|
372
|
+
#xtick.labelcolor: inherit # color of the tick labels or inherit from xtick.color
|
|
373
|
+
#xtick.labelsize: medium # font size of the tick labels
|
|
374
|
+
#xtick.direction: out # direction: {in, out, inout}
|
|
375
|
+
#xtick.minor.visible: False # visibility of minor ticks on x-axis
|
|
376
|
+
#xtick.major.top: True # draw x axis top major ticks
|
|
377
|
+
#xtick.major.bottom: True # draw x axis bottom major ticks
|
|
378
|
+
#xtick.minor.top: True # draw x axis top minor ticks
|
|
379
|
+
#xtick.minor.bottom: True # draw x axis bottom minor ticks
|
|
380
|
+
#xtick.minor.ndivs: auto # number of minor ticks between the major ticks on x-axis
|
|
381
|
+
#xtick.alignment: center # alignment of xticks
|
|
382
|
+
|
|
383
|
+
#ytick.left: True # draw ticks on the left side
|
|
384
|
+
#ytick.right: False # draw ticks on the right side
|
|
385
|
+
#ytick.labelleft: True # draw tick labels on the left side
|
|
386
|
+
#ytick.labelright: False # draw tick labels on the right side
|
|
387
|
+
#ytick.major.size: 3.5 # major tick size in points
|
|
388
|
+
#ytick.minor.size: 2 # minor tick size in points
|
|
389
|
+
#ytick.major.width: 0.8 # major tick width in points
|
|
390
|
+
#ytick.minor.width: 0.6 # minor tick width in points
|
|
391
|
+
#ytick.major.pad: 3.5 # distance to major tick label in points
|
|
392
|
+
#ytick.minor.pad: 3.4 # distance to the minor tick label in points
|
|
393
|
+
#ytick.color: black # color of the ticks
|
|
394
|
+
#ytick.labelcolor: inherit # color of the tick labels or inherit from ytick.color
|
|
395
|
+
#ytick.labelsize: medium # font size of the tick labels
|
|
396
|
+
#ytick.direction: out # direction: {in, out, inout}
|
|
397
|
+
#ytick.minor.visible: False # visibility of minor ticks on y-axis
|
|
398
|
+
#ytick.major.left: True # draw y axis left major ticks
|
|
399
|
+
#ytick.major.right: True # draw y axis right major ticks
|
|
400
|
+
#ytick.minor.left: True # draw y axis left minor ticks
|
|
401
|
+
#ytick.minor.right: True # draw y axis right minor ticks
|
|
402
|
+
#ytick.minor.ndivs: auto # number of minor ticks between the major ticks on y-axis
|
|
403
|
+
#ytick.alignment: center_baseline # alignment of yticks
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
## ***************************************************************************
|
|
407
|
+
## * GRIDS *
|
|
408
|
+
## ***************************************************************************
|
|
409
|
+
#grid.color: "#b0b0b0" # grid color
|
|
410
|
+
#grid.linestyle: - # solid
|
|
411
|
+
#grid.linewidth: 0.8 # in points
|
|
412
|
+
#grid.alpha: 1.0 # transparency, between 0.0 and 1.0
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
## ***************************************************************************
|
|
416
|
+
## * LEGEND *
|
|
417
|
+
## ***************************************************************************
|
|
418
|
+
#legend.loc: best
|
|
419
|
+
#legend.frameon: True # if True, draw the legend on a background patch
|
|
420
|
+
#legend.framealpha: 0.8 # legend patch transparency
|
|
421
|
+
#legend.facecolor: inherit # inherit from axes.facecolor; or color spec
|
|
422
|
+
#legend.edgecolor: 0.8 # background patch boundary color
|
|
423
|
+
#legend.fancybox: True # if True, use a rounded box for the
|
|
424
|
+
# legend background, else a rectangle
|
|
425
|
+
#legend.shadow: False # if True, give background a shadow effect
|
|
426
|
+
#legend.numpoints: 1 # the number of marker points in the legend line
|
|
427
|
+
#legend.scatterpoints: 1 # number of scatter points
|
|
428
|
+
#legend.markerscale: 1.0 # the relative size of legend markers vs. original
|
|
429
|
+
#legend.fontsize: medium
|
|
430
|
+
#legend.labelcolor: None
|
|
431
|
+
#legend.title_fontsize: None # None sets to the same as the default axes.
|
|
432
|
+
|
|
433
|
+
## Dimensions as fraction of font size:
|
|
434
|
+
#legend.borderpad: 0.4 # border whitespace
|
|
435
|
+
#legend.labelspacing: 0.5 # the vertical space between the legend entries
|
|
436
|
+
#legend.handlelength: 2.0 # the length of the legend lines
|
|
437
|
+
#legend.handleheight: 0.7 # the height of the legend handle
|
|
438
|
+
#legend.handletextpad: 0.8 # the space between the legend line and legend text
|
|
439
|
+
#legend.borderaxespad: 0.5 # the border between the axes and legend edge
|
|
440
|
+
#legend.columnspacing: 2.0 # column separation
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
## ***************************************************************************
|
|
444
|
+
## * FIGURE *
|
|
445
|
+
## ***************************************************************************
|
|
446
|
+
## See https://matplotlib.org/stable/api/figure_api.html#matplotlib.figure.Figure
|
|
447
|
+
#figure.titlesize: large # size of the figure title (``Figure.suptitle()``)
|
|
448
|
+
#figure.titleweight: normal # weight of the figure title
|
|
449
|
+
#figure.labelsize: large # size of the figure label (``Figure.sup[x|y]label()``)
|
|
450
|
+
#figure.labelweight: normal # weight of the figure label
|
|
451
|
+
#figure.figsize: 6.4, 4.8 # figure size in inches
|
|
452
|
+
#figure.dpi: 100 # figure dots per inch
|
|
453
|
+
#figure.facecolor: white # figure face color
|
|
454
|
+
#figure.edgecolor: white # figure edge color
|
|
455
|
+
#figure.frameon: True # enable figure frame
|
|
456
|
+
#figure.max_open_warning: 20 # The maximum number of figures to open through
|
|
457
|
+
# the pyplot interface before emitting a warning.
|
|
458
|
+
# If less than one this feature is disabled.
|
|
459
|
+
#figure.raise_window : True # Raise the GUI window to front when show() is called.
|
|
460
|
+
|
|
461
|
+
## The figure subplot parameters. All dimensions are a fraction of the figure width and height.
|
|
462
|
+
#figure.subplot.left: 0.125 # the left side of the subplots of the figure
|
|
463
|
+
#figure.subplot.right: 0.9 # the right side of the subplots of the figure
|
|
464
|
+
#figure.subplot.bottom: 0.11 # the bottom of the subplots of the figure
|
|
465
|
+
#figure.subplot.top: 0.88 # the top of the subplots of the figure
|
|
466
|
+
#figure.subplot.wspace: 0.2 # the amount of width reserved for space between subplots,
|
|
467
|
+
# expressed as a fraction of the average axis width
|
|
468
|
+
#figure.subplot.hspace: 0.2 # the amount of height reserved for space between subplots,
|
|
469
|
+
# expressed as a fraction of the average axis height
|
|
470
|
+
|
|
471
|
+
## Figure layout
|
|
472
|
+
#figure.autolayout: False # When True, automatically adjust subplot
|
|
473
|
+
# parameters to make the plot fit the figure
|
|
474
|
+
# using `tight_layout`
|
|
475
|
+
#figure.constrained_layout.use: False # When True, automatically make plot
|
|
476
|
+
# elements fit on the figure. (Not
|
|
477
|
+
# compatible with `autolayout`, above).
|
|
478
|
+
## Padding (in inches) around axes; defaults to 3/72 inches, i.e. 3 points.
|
|
479
|
+
#figure.constrained_layout.h_pad: 0.04167
|
|
480
|
+
#figure.constrained_layout.w_pad: 0.04167
|
|
481
|
+
## Spacing between subplots, relative to the subplot sizes. Much smaller than for
|
|
482
|
+
## tight_layout (figure.subplot.hspace, figure.subplot.wspace) as constrained_layout
|
|
483
|
+
## already takes surrounding texts (titles, labels, # ticklabels) into account.
|
|
484
|
+
#figure.constrained_layout.hspace: 0.02
|
|
485
|
+
#figure.constrained_layout.wspace: 0.02
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
## ***************************************************************************
|
|
489
|
+
## * IMAGES *
|
|
490
|
+
## ***************************************************************************
|
|
491
|
+
#image.aspect: equal # {equal, auto} or a number
|
|
492
|
+
#image.interpolation: auto # see help(imshow) for options
|
|
493
|
+
#image.interpolation_stage: auto # see help(imshow) for options
|
|
494
|
+
#image.cmap: viridis # A colormap name (plasma, magma, etc.)
|
|
495
|
+
#image.lut: 256 # the size of the colormap lookup table
|
|
496
|
+
#image.origin: upper # {lower, upper}
|
|
497
|
+
#image.resample: True
|
|
498
|
+
#image.composite_image: True # When True, all the images on a set of axes are
|
|
499
|
+
# combined into a single composite image before
|
|
500
|
+
# saving a figure as a vector graphics file,
|
|
501
|
+
# such as a PDF.
|
|
502
|
+
|
|
503
|
+
|
|
504
|
+
## ***************************************************************************
|
|
505
|
+
## * CONTOUR PLOTS *
|
|
506
|
+
## ***************************************************************************
|
|
507
|
+
#contour.negative_linestyle: dashed # string or on-off ink sequence
|
|
508
|
+
#contour.corner_mask: True # {True, False}
|
|
509
|
+
#contour.linewidth: None # {float, None} Size of the contour line
|
|
510
|
+
# widths. If set to None, it falls back to
|
|
511
|
+
# `line.linewidth`.
|
|
512
|
+
#contour.algorithm: mpl2014 # {mpl2005, mpl2014, serial, threaded}
|
|
513
|
+
|
|
514
|
+
|
|
515
|
+
## ***************************************************************************
|
|
516
|
+
## * ERRORBAR PLOTS *
|
|
517
|
+
## ***************************************************************************
|
|
518
|
+
#errorbar.capsize: 0 # length of end cap on error bars in pixels
|
|
519
|
+
|
|
520
|
+
|
|
521
|
+
## ***************************************************************************
|
|
522
|
+
## * HISTOGRAM PLOTS *
|
|
523
|
+
## ***************************************************************************
|
|
524
|
+
#hist.bins: 10 # The default number of histogram bins or 'auto'.
|
|
525
|
+
|
|
526
|
+
|
|
527
|
+
## ***************************************************************************
|
|
528
|
+
## * SCATTER PLOTS *
|
|
529
|
+
## ***************************************************************************
|
|
530
|
+
#scatter.marker: o # The default marker type for scatter plots.
|
|
531
|
+
#scatter.edgecolors: face # The default edge colors for scatter plots.
|
|
532
|
+
|
|
533
|
+
|
|
534
|
+
## ***************************************************************************
|
|
535
|
+
## * AGG RENDERING *
|
|
536
|
+
## ***************************************************************************
|
|
537
|
+
## Warning: experimental, 2008/10/10
|
|
538
|
+
#agg.path.chunksize: 0 # 0 to disable; values in the range
|
|
539
|
+
# 10000 to 100000 can improve speed slightly
|
|
540
|
+
# and prevent an Agg rendering failure
|
|
541
|
+
# when plotting very large data sets,
|
|
542
|
+
# especially if they are very gappy.
|
|
543
|
+
# It may cause minor artifacts, though.
|
|
544
|
+
# A value of 20000 is probably a good
|
|
545
|
+
# starting point.
|
|
546
|
+
|
|
547
|
+
|
|
548
|
+
## ***************************************************************************
|
|
549
|
+
## * PATHS *
|
|
550
|
+
## ***************************************************************************
|
|
551
|
+
#path.simplify: True # When True, simplify paths by removing "invisible"
|
|
552
|
+
# points to reduce file size and increase rendering
|
|
553
|
+
# speed
|
|
554
|
+
#path.simplify_threshold: 0.111111111111 # The threshold of similarity below
|
|
555
|
+
# which vertices will be removed in
|
|
556
|
+
# the simplification process.
|
|
557
|
+
#path.snap: True # When True, rectilinear axis-aligned paths will be snapped
|
|
558
|
+
# to the nearest pixel when certain criteria are met.
|
|
559
|
+
# When False, paths will never be snapped.
|
|
560
|
+
#path.sketch: None # May be None, or a tuple of the form:
|
|
561
|
+
# path.sketch: (scale, length, randomness)
|
|
562
|
+
# - *scale* is the amplitude of the wiggle
|
|
563
|
+
# perpendicular to the line (in pixels).
|
|
564
|
+
# - *length* is the length of the wiggle along the
|
|
565
|
+
# line (in pixels).
|
|
566
|
+
# - *randomness* is the factor by which the length is
|
|
567
|
+
# randomly scaled.
|
|
568
|
+
#path.effects:
|
|
569
|
+
|
|
570
|
+
|
|
571
|
+
## ***************************************************************************
|
|
572
|
+
## * SAVING FIGURES *
|
|
573
|
+
## ***************************************************************************
|
|
574
|
+
## The default savefig parameters can be different from the display parameters
|
|
575
|
+
## e.g., you may want a higher resolution, or to make the figure
|
|
576
|
+
## background white
|
|
577
|
+
#savefig.dpi: figure # figure dots per inch or 'figure'
|
|
578
|
+
#savefig.facecolor: auto # figure face color when saving
|
|
579
|
+
#savefig.edgecolor: auto # figure edge color when saving
|
|
580
|
+
#savefig.format: png # {png, ps, pdf, svg}
|
|
581
|
+
#savefig.bbox: standard # {tight, standard}
|
|
582
|
+
# 'tight' is incompatible with generating frames
|
|
583
|
+
# for animation
|
|
584
|
+
#savefig.pad_inches: 0.1 # padding to be used, when bbox is set to 'tight'
|
|
585
|
+
#savefig.directory: ~ # default directory in savefig dialog, gets updated after
|
|
586
|
+
# interactive saves, unless set to the empty string (i.e.
|
|
587
|
+
# the current directory); use '.' to start at the current
|
|
588
|
+
# directory but update after interactive saves
|
|
589
|
+
#savefig.transparent: False # whether figures are saved with a transparent
|
|
590
|
+
# background by default
|
|
591
|
+
#savefig.orientation: portrait # orientation of saved figure, for PostScript output only
|
|
592
|
+
|
|
593
|
+
### PDF backend params
|
|
594
|
+
#pdf.fonttype: 3 # Output Type 3 (Type3) or Type 42 (TrueType)
|
msreport/qtable.py
CHANGED
|
@@ -271,8 +271,9 @@ class Qtable:
|
|
|
271
271
|
A copy of tbhe qtable.data dataframe that only contains expression columns
|
|
272
272
|
and additionally specified columns.
|
|
273
273
|
"""
|
|
274
|
-
|
|
275
|
-
|
|
274
|
+
expression_tag = "Expression"
|
|
275
|
+
samples = self.get_samples()
|
|
276
|
+
columns = helper.find_sample_columns(self.data, expression_tag, samples)
|
|
276
277
|
if features is not None:
|
|
277
278
|
columns.extend(features)
|
|
278
279
|
|
msreport/reader.py
CHANGED
|
@@ -1451,7 +1451,10 @@ class SpectronautReader(ResultReader):
|
|
|
1451
1451
|
self._contaminant_tag: str = contaminant_tag
|
|
1452
1452
|
|
|
1453
1453
|
def import_design(
|
|
1454
|
-
self,
|
|
1454
|
+
self,
|
|
1455
|
+
filename: Optional[str] = None,
|
|
1456
|
+
filetag: Optional[str] = None,
|
|
1457
|
+
sort: bool = False,
|
|
1455
1458
|
) -> pd.DataFrame:
|
|
1456
1459
|
"""Reads a ConditionSetup file and returns an experimental design table.
|
|
1457
1460
|
|
|
@@ -1474,6 +1477,8 @@ class SpectronautReader(ResultReader):
|
|
|
1474
1477
|
filename: Optional, allows specifying a specific file that will be imported.
|
|
1475
1478
|
filetag: Optional, can be used to select a file that contains the filetag as
|
|
1476
1479
|
a substring, instead of specifying a filename.
|
|
1480
|
+
sort: If True, the design table is sorted by Experiment and Replicate;
|
|
1481
|
+
default False.
|
|
1477
1482
|
|
|
1478
1483
|
Returns:
|
|
1479
1484
|
A dataframe containing the processed design table.
|
|
@@ -1509,6 +1514,9 @@ class SpectronautReader(ResultReader):
|
|
|
1509
1514
|
"Run label": df["Run Label"].astype(str),
|
|
1510
1515
|
}
|
|
1511
1516
|
)
|
|
1517
|
+
if sort:
|
|
1518
|
+
df = df.sort_values(by=["Experiment", "Replicate"]).reset_index(drop=True)
|
|
1519
|
+
|
|
1512
1520
|
return df
|
|
1513
1521
|
|
|
1514
1522
|
def import_proteins(
|