This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Plotting non-zero values along rows in python

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

0 answers

No answers yet.

Log in to answer this question.