Plotting non-zero values along rows in python
0
0
Entering edit mode
3.5 years ago

Hello everyone, I am facing an issue plotting the expression matrix. I have a matrix where rows are cells and column is genes, and matrix consists of their expression. The matrix dimension is 10*1400. I want to plot individual cells and the gene expression level when the gene expression is greater than 0. Also I want to have gene names along the x-axis whose value is being plotted. Every cell has different genes whose expression value is greater than 0.

I tried using:

for i in k.columns: 
    plt.figure()
    plt.hist(k[i])

but it could not plot the gene name even after using axis label. Is there any other way to plot only those values that have greater than 0 value along each row?

Being new to this I have quite an issue in it. Any help is highly appreciated.

Python RNA-Seq • 882 views
ADD COMMENT

Login before adding your answer.

Traffic: 2566 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