Answers.Body: <p>It looks like you have normalized counts. My guess is that they are log-normalized with some scale factor, probably 10000.</p>
  
  <p>With the whole matrix you should be able to work out the scale factor for each cell. See <a href="https://www.nxn.se/valent/2018/10/25/unscaling-scaled-counts-in-scrna-seq-data" rel="nofollow noreferrer">https://www.nxn.se/valent/2018/10/25/unscaling-scaled-counts-in-scrna-seq-data</a> </p>
  
  <p>They typical format for scRNA-seq data is to have cells in the columns and genes in the rows. So here your rownames are the gene names and colnames are the cell names.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-02-27T20:02:43.107Z
Answers.Text: Thanks for the response ! Do you have any idea of a DB of some sorts that is used to convert the colnames from sequence format to cellID format?
Answers.UserDisplayName: h3ab74
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-02-27T20:52:29.403Z
Answers.Text: What's the cellID format?
Answers.UserDisplayName: TimStuart
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-02-27T21:49:29.193Z
Answers.Text: It is not a particular format called cellID per ce. I just mean conversion from the sequences to a naming system that would be more suitable for downstream analysis / clustering.
Answers.UserDisplayName: h3ab74
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-02-28T00:09:30.530Z
Answers.Text: Ok in that case any unique identifier is fine and I would leave the cell names as they are. The only thing you might like to do is extract the patient ID information that appears to be encoded in the cell name. If you use Seurat, this will be done for you when creating the Seurat object.
Answers.UserDisplayName: TimStuart
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-02-27T18:49:13.157Z
Answers.LastActivityDate: 2019-02-27T18:49:13.157Z
Answers.UserDisplayName: TimStuart
Body: <p>I am trying to replicate some results of a scRNASeq experiment and, when I looked at the data provided by the author, I noticed that some of the counts in the expression matrix are represented as decimals. </p>
  
  <p>Would this be because the authors uploaded a normalised count matrix or for other reasons? Also, please note that the authors used the 10X genomics <code>cellranger</code> pipeline for the processing of raw data.</p>
  
  <p>I have provided a brief snippet of the data frame here:</p>
  
  <pre><code>structure(list(P1TLH_AAACCTGAGCAGCCTC_1 = c(0, 0, 0, 0, 0, 0, 
  0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), P1TLH_AAACCTGTCCTCATTA_1 = c(0, 
  0, 0.314759545319035, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
  0, 0.314759545319035, 0, 0), P1TLH_AAACCTGTCTAAGCCA_1 = c(0, 
  0, 0, 0, 0, 0, 0, 0, 0, 0, 1.18024827050334, 0, 0, 0, 0, 0, 1.18024827050334, 
  0, 0, 0), P1TLH_AAACGGGAGTAGGCCA_1 = c(0, 0, 0, 0, 0, 0, 0, 0, 
  0, 0, 0, 0, 0, 0, 0, 0, 0.644905372424165, 0, 0, 0), P1TLH_AAACGGGGTTCGGGCT_1 = c(0, 
  0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.780522072779651, 
  0, 0, 0), P1TLH_AAAGCAACAGTAAGAT_1 = c(0, 0, 0, 0, 0, 0, 0, 0, 
  0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)), row.names = c("RP11-34P13.7", 
  "FO538757.2", "AP006222.2", "RP4-669L17.10", "RP5-857K21.4", 
  "RP11-206L10.9", "LINC00115", "FAM41C", "RP11-54O7.1", "RP11-54O7.3", 
  "SAMD11", "NOC2L", "KLHL17", "PLEKHN1", "RP11-54O7.17", "HES4", 
  "ISG15", "AGRN", "C1orf159", "RP11-465B22.8"), class = "data.frame")
  </code></pre>
  
  <p>Also, I am quite confused of the structure they used - as I don't have much experience with single cell datasets. Just to give some further context:</p>
  
  <p>The <code>colnames</code> of the "full" dataframe are coded from P1TLH_sequence_1 to P5TLH_sequence_1. There are 5 patients in the study. </p>
  
  <p>I'm assuming that each of the <code>colnames</code> represents a cell for a particular patient while the rows are the genes.  </p>
  
  <p>If this assumption is correct, how would I do the conversion from <code>colnames</code> in the dataframe to the "cell names"? And lastly, why are there decimals in this expression matrix?</p>
  
  <p>Thank you all for your time,</p>
  
Tags: <r><scrnaseq><sequence-annotation>
Title: scRNASeq expression matrix with decimal values
ThreadText: # scRNASeq expression matrix with decimal values
  
  (Asked by: username_0 on 2019-02-27)
  
  I am trying to replicate some results of a scRNASeq experiment and, when I looked at the data provided by the author, I noticed that some of the counts in the expression matrix are represented as decimals.
  
  Would this be because the authors uploaded a normalised count matrix or for other reasons? Also, please note that the authors used the 10X genomics `cellranger` pipeline for the processing of raw data.
  
  I have provided a brief snippet of the data frame here:
  
  ```
  structure(list(P1TLH_AAACCTGAGCAGCCTC_1 = c(0, 0, 0, 0, 0, 0, 
  0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), P1TLH_AAACCTGTCCTCATTA_1 = c(0, 
  0, 0.314759545319035, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
  0, 0.314759545319035, 0, 0), P1TLH_AAACCTGTCTAAGCCA_1 = c(0, 
  0, 0, 0, 0, 0, 0, 0, 0, 0, 1.18024827050334, 0, 0, 0, 0, 0, 1.18024827050334, 
  0, 0, 0), P1TLH_AAACGGGAGTAGGCCA_1 = c(0, 0, 0, 0, 0, 0, 0, 0, 
  0, 0, 0, 0, 0, 0, 0, 0, 0.644905372424165, 0, 0, 0), P1TLH_AAACGGGGTTCGGGCT_1 = c(0, 
  0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.780522072779651, 
  0, 0, 0), P1TLH_AAAGCAACAGTAAGAT_1 = c(0, 0, 0, 0, 0, 0, 0, 0, 
  0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)), row.names = c("RP11-34P13.7", 
  "FO538757.2", "AP006222.2", "RP4-669L17.10", "RP5-857K21.4", 
  "RP11-206L10.9", "LINC00115", "FAM41C", "RP11-54O7.1", "RP11-54O7.3", 
  "SAMD11", "NOC2L", "KLHL17", "PLEKHN1", "RP11-54O7.17", "HES4", 
  "ISG15", "AGRN", "C1orf159", "RP11-465B22.8"), class = "data.frame")
  
  ```
  
  Also, I am quite confused of the structure they used - as I don't have much experience with single cell datasets. Just to give some further context:
  
  The `colnames` of the "full" dataframe are coded from P1TLH\_sequence\_1 to P5TLH\_sequence\_1. There are 5 patients in the study.
  
  I'm assuming that each of the `colnames` represents a cell for a particular patient while the rows are the genes.
  
  If this assumption is correct, how would I do the conversion from `colnames` in the dataframe to the "cell names"? And lastly, why are there decimals in this expression matrix?
  
  Thank you all for your time,
  
  **Tags:** r, scrnaseq, sequence-annotation
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-02-27. Score: 3 | Accepted answer
  
  It looks like you have normalized counts. My guess is that they are log-normalized with some scale factor, probably 10000.
  
  With the whole matrix you should be able to work out the scale factor for each cell. See <https://www.nxn.se/valent/2018/10/25/unscaling-scaled-counts-in-scrna-seq-data>
  
  They typical format for scRNA-seq data is to have cells in the columns and genes in the rows. So here your rownames are the gene names and colnames are the cell names.
  
  > **Comments:**
  > **username_0**: Thanks for the response ! Do you have any idea of a DB of some sorts that is used to convert the colnames from sequence format to cellID format?  
  > **username_1**: What's the cellID format?  
  > **username_0**: It is not a particular format called cellID per ce. I just mean conversion from the sequences to a naming system that would be more suitable for downstream analysis / clustering.  
  > **username_1**: Ok in that case any unique identifier is fine and I would leave the cell names as they are. The only thing you might like to do is extract the patient ID information that appears to be encoded in the cell name. If you use Seurat, this will be done for you when creating the Seurat object.  
  
  ---
  
  