Skip to content

Commit

Permalink
Manual fix. Trying to fix barplot
Browse files Browse the repository at this point in the history
  • Loading branch information
yana-safonova committed Oct 8, 2016
1 parent 5c5e260 commit ac42eb8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
12 changes: 5 additions & 7 deletions diversity_analyzer_manual.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ <h1>Diversity Analyzer 1.0 manual</h1>
&nbsp;&nbsp;&nbsp;&nbsp;4.2. <a href="#shm_details">SHM details file</a><br>
&nbsp;&nbsp;&nbsp;&nbsp;4.3. <a href="#v_alignments">V alignments file</a><br>

5. <a href = "#plot_descr">Plot description</a><br>
<!--- 5. <a href = "#plot_descr">Plot description</a><br> --->

6. <a href="#feedback">Feedback and bug reports</a><br>
5. <a href="#feedback">Feedback and bug reports</a><br>
<!--- &nbsp;&nbsp;&nbsp;&nbsp;5.1. <a href="#citation">Citation</a><br> --->

<!-- -------- --->
Expand Down Expand Up @@ -354,6 +354,7 @@ <h3 id = "v_alignments">4.3. V alignments file</h3>
Please not that start position (<code>START_POS</code> field in a header) and end position (<code>END_POS</code> field) are inclusive.

<!--- -------------------------------------------------------------------- --->
<!---
<h2 id = "plot_descr">5. Plot description</h2>
Diversity Analyzer reports plots in PNG and PDF formats.
All plots can be found in <b>plots</b> directory.
Expand All @@ -376,9 +377,6 @@ <h3 id = "shm_plots">5.2. SHM plots</h3>
</li>
</ul>



<h3 id = "cdr_plots">5.3. CDR plots</h3>
If a chain type (IGH / IGK / IGL / TRA / TRB / TRG / TRD) is presented in <b>input_sequences.fasta</b>,
Diversity Analyzer reports the following plots for CDR1, CDR2 and CDR3 for sequences of this chain type:
Expand All @@ -388,10 +386,10 @@ <h3 id = "cdr_plots">5.3. CDR plots</h3>
To output variability plots, Diversity Analyzer selects length value that is presented by the largest number of CDRs.</li>
</ul>
All CDR plots can be found in <b>plots/cdr_plots</b> directory.

--->
<!--- -------------------------------------------------------------------- --->
<a id="feedback"></a>
<h2>6. Feedback and bug reports</h2>
<h2>5. Feedback and bug reports</h2>
Your comments, bug reports, and suggestions are very welcome.
They will help us to further improve Diversity Analyzer.
<br><br>
Expand Down
3 changes: 2 additions & 1 deletion py/diversity_stats_visualizer/visualize_cdr_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,8 @@ def visualize_largest_group_aa_variability(labeling_df, region, region_name, out
abun_.append(aa_large_abun[i])
else:
abun_.append(0)
sns.barplot(x_, abun_, color = aa_colors[amino_acids.index(aa)])
df = pd.DataFrame({'x': x_, 'y' : abun_})
sns.barplot(x = 'x', y = 'y', data = df, color = aa_colors[amino_acids.index(aa)])
plt.xticks(range(0, len(aa_large_abun)), aa_large_acid, fontsize = 14)
plt.yticks(fontsize = 14)
plt.xlabel('The most abundant amino acid', fontsize = 16)
Expand Down

0 comments on commit ac42eb8

Please sign in to comment.