diff --git a/str/associatr/plotters/qqplotter.py b/str/associatr/plotters/qqplotter.py index 537532a1..9b9d408b 100644 --- a/str/associatr/plotters/qqplotter.py +++ b/str/associatr/plotters/qqplotter.py @@ -7,7 +7,7 @@ qqplotter.py \ --input-dir=gs://cpg-bioheart-test/str/associatr/tob_n1055_and_bioheart_n990/DL_random_model/raw_pval_extractor \ --cell-types=CD4_TCM,CD4_Naive,CD4_TEM,CD4_CTL,CD4_Proliferating,CD4_TCM_permuted,NK,NK_CD56bright,NK_Proliferating,CD8_TEM,CD8_TCM,CD8_Proliferating,CD8_Naive,Treg,B_naive,B_memory,B_intermediate,Plasmablast,CD14_Mono,CD16_Mono,cDC1,cDC2,pDC,dnT,gdT,MAIT,ASDC,HSPC,ILC \ - --title='associaTR BioHEART' --ylim=330 + --title='associaTR BioHEART' --ylim=308 """ @@ -80,8 +80,8 @@ def main(input_dir, cell_types, title, ylim): } # Create QQ plot - plt.figure(figsize=(10, 8)) - fig, ax = plt.subplots(figsize=(10, 8)) + plt.figure(figsize=(10, 6)) + fig, ax = plt.subplots(figsize=(10, 6)) # Define a list of colors colors = [ @@ -154,11 +154,11 @@ def main(input_dir, cell_types, title, ylim): # Create the main legend with other items ax.legend(other_handles, other_labels, bbox_to_anchor=(1.05, 1), loc='upper left', fontsize=11) - ax.set_xlabel('Expected -log₁₀(p-value)', fontsize=14) - ax.set_ylabel('Expected -log₁₀(p-value)', fontsize=14) + ax.set_xlabel('Expected -log₁₀(p-value)', fontsize=17) + ax.set_ylabel('Expected -log₁₀(p-value)', fontsize=17) - plt.xticks(fontsize=10) - plt.yticks(fontsize=10) + plt.xticks(fontsize=15) + plt.yticks(fontsize=15) ax.set_ylim(0, ylim) ax.plot([0, 7], [0, 7], color='grey', linestyle='--') # Add a reference line