Bar and line graphs using Bokeh Module in python
0
0
Entering edit mode
2.6 years ago
anasjamshed ▴ 140

I have a gene sequence. I translate it and calculate its amino acid properties. Now I want to take x values as amino acid residues and y values as the percentages (multiply each value by 100) from get_amino_acids_percent() and to plot a bar and line graphs using Bokeh Module.

How can I do this?

I have a percentage like this in the dictionary:

 {'A': 0.032305433186490456, 'C': 0.027900146842878122, 'D': 0.030837004405286344, 'E': 0.03524229074889868, 'F': 0.08663729809104258, 'G': 0.042584434654919234, 'H': 0.041116005873715125, 'I': 0.0631424375917768, 'K': 0.06901615271659324, 'L': 0.1130690161527166, 'M': 0.020558002936857563, 'N': 0.04698972099853157, 'P': 0.05873715124816446, 'Q': 0.02643171806167401, 'R': 0.0513950073421439, 'S': 0.09985315712187959, 'T': 0.049926578560939794, 'V': 0.049926578560939794, 'W': 0.020558002936857563, 'Y': 0.033773861967694566}
Plots Biopython • 476 views
ADD COMMENT

Login before adding your answer.

Traffic: 1916 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6