Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Carmen Bravo committed Aug 11, 2022
1 parent 9dabece commit 6236cef
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion docs/source/Cortex_pycisTopic.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1211,7 +1211,7 @@
"source": [
"from pycisTopic.qc import *\n",
"plot_sample_metrics(profile_data_dict,\n",
" insert_size_distriubtion_xlim=[0,600],\n",
" insert_size_distribution_xlim=[0,600],\n",
" ncol=5,\n",
" plot=True,\n",
" save= outDir + 'quality_control/sample_metrics.pdf',\n",
Expand Down
2 changes: 1 addition & 1 deletion docs/source/Single_sample_workflow-RTD.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,7 @@
"source": [
"from pycisTopic.qc import *\n",
"plot_sample_metrics(profile_data_dict,\n",
" insert_size_distriubtion_xlim=[0,600],\n",
" insert_size_distribution_xlim=[0,600],\n",
" ncol=5,\n",
" plot=True,\n",
" save= outDir + 'quality_control/sample_metrics.pdf')"
Expand Down
2 changes: 1 addition & 1 deletion notebooks/Cortex_pycisTopic.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1211,7 +1211,7 @@
"source": [
"from pycisTopic.qc import *\n",
"plot_sample_metrics(profile_data_dict,\n",
" insert_size_distriubtion_xlim=[0,600],\n",
" insert_size_distribution_xlim=[0,600],\n",
" ncol=5,\n",
" plot=True,\n",
" save= outDir + 'quality_control/sample_metrics.pdf',\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/Single_sample_workflow-RTD.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,7 @@
"source": [
"from pycisTopic.qc import *\n",
"plot_sample_metrics(profile_data_dict,\n",
" insert_size_distriubtion_xlim=[0,600],\n",
" insert_size_distribution_xlim=[0,600],\n",
" ncol=5,\n",
" plot=True,\n",
" save= outDir + 'quality_control/sample_metrics.pdf')"
Expand Down
14 changes: 7 additions & 7 deletions pycisTopic/qc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1360,7 +1360,7 @@ def plot_sample_metrics(
cmap: Optional[str] = None,
ncol: Optional[int] = 1,
figsize: Optional[Tuple[int, int]] = None,
insert_size_distriubtion_xlim: Optional[List[int]] = None,
insert_size_distribution_xlim: Optional[List[int]] = None,
legend_outside: Optional[bool] = False,
duplicate_rate_as_hexbin: Optional[bool] = False,
plot: Optional[bool] = True,
Expand All @@ -1384,7 +1384,7 @@ def plot_sample_metrics(
Number of columns for grid plot. If 1 each plot will be drawn independently, while the number of rows is automatically adjusted. Default: 1.
figsize: tuple, optional
Figure size. If drawing each plot independently it corresponds to the size of each plot, if using grid plotting it will correspond to the total size of the figure.
insert_size_distriubtion_xlim: list, optional
insert_size_distribution_xlim: list, optional
A list with two numbers that indicate the x axis limits. Default: None
plot: bool, optional
Whether the plots should be returned to the console. Default: True
Expand All @@ -1398,7 +1398,7 @@ def plot_sample_metrics(
remove_duplicates=remove_duplicates,
color=color,
cmap=cmap,
insert_size_distriubtion_xlim=insert_size_distriubtion_xlim,
insert_size_distribution_xlim=insert_size_distribution_xlim,
legend_outside=legend_outside,
duplicate_rate_as_hexbin=duplicate_rate_as_hexbin,
)
Expand Down Expand Up @@ -1440,7 +1440,7 @@ def plot_sample_metrics_generator(
remove_duplicates: Optional[bool] = True,
color: Optional[List[List[Union[str]]]] = None,
cmap: Optional[str] = None,
insert_size_distriubtion_xlim: Optional[List[int]] = None,
insert_size_distribution_xlim: Optional[List[int]] = None,
legend_outside: Optional[bool] = False,
duplicate_rate_as_hexbin: Optional[bool] = False,
):
Expand All @@ -1458,7 +1458,7 @@ def plot_sample_metrics_generator(
List containing the colors to each for sample. When using barcode_rank_plot, at least two colors must be provided per sample. Default: None.
cmap: list, optional
Color map to color the plot by density for the duplicate rate plot.
insert_size_distriubtion_xlim: list, optional
insert_size_distribution_xlim: list, optional
A list with two numbers that indicate the x axis limits. Default: None
duplicate_rate_as_hexbin: bool, optional
A boolean indicating if the duplicate rate should be plotted as an hexagonal binning plot. The quality of the plot will be reduced, but is a faster alternative
Expand Down Expand Up @@ -1560,9 +1560,9 @@ def plot_sample_metrics_generator(
plt.plot(plot_data["Width"], plot_data["Ratio_frag"], color=selected_color)
plt.xlabel("Fragment size", fontsize=10)
plt.ylabel("Fragments ratio", fontsize=10)
if insert_size_distriubtion_xlim is not None:
if insert_size_distribution_xlim is not None:
plt.xlim(
insert_size_distriubtion_xlim[0], insert_size_distriubtion_xlim[1]
insert_size_distribution_xlim[0], insert_size_distribution_xlim[1]
)
if (len(label_list) > 1) | (label_list[0] != ""):
if legend_outside:
Expand Down

0 comments on commit 6236cef

Please sign in to comment.