This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to calculate read frequency from read counts for each gene in all samples all at once

I have a biological data with read counts in many samples. It looks like this snapshot of the format of data in excel- snapshot of read counts table

I want to calculate the frequency of each gene in each sample. Mathematically obviouslly, I want each row to be divided by it's column sum but I am confused about how to do it all at once? I want a new sheet with same format but with frequency of each gene rather than count. Kindly help. Sorry for deviating from bioinformatics here .

rna-seq

Longer genes will have more counts, so they will have a higher proportion of mapped reads. A better measure is transcripts per million (TPM), which is essentially what you want but normalized by gene length.

I have no idea how your data is formatted, but this gist is one example of how to get from counts to TPM

0 answers

No answers yet.

Log in to answer this question.