This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Assigning sample names to a columns

Hi,

I have a file includes read counts in single cell-seq and a file includes barcodes and number of cells

head(sample_barcodes[,1:2]) 
  Sample     Barcode
1   sc1-1 CCTAGATTAAT
2   sc1-2 GAAGACTTGGT
3   sc1-3 GAAGCAGTATG
4   sc1-4 GGTAACCTGAC
5   s1-5 ATAGTTCTCGT
6   sc1-6 TCGTTACCAAG

> head(counts[,1:4]) 
            DDB_G0267178 DDB_G0267180 DDB_G0267182 DDB_G0267184
Barcode     "0.0"        "0.0"        "0.0"        "0.0"       
AACCAACCAAG "0.0"        "0.0"        "1.0"        "0.0"       
AACCAACGACC "3.0"        "0.0"        "0.0"        "0.0"       
AACCAACGCAA "0.0"        "0.0"        "0.0"        "0.0"       
AACCAACTCCG "0.0"        "0.0"        "0.0"        "0.0"       
AACCAACTGAC "0.0"        "0.0"        "0.0"        "0.0"

How can I assign sample number to my counts? I mean for example to know AACCAACCAAG barcode belongs to which cell

r single cell sequencing

Hello izadi1991!

We believe that this post does not fit the main topic of this site.

This is a pure R question. Please search for `merge R`

For this reason we have closed your question. This allows us to keep the site focused on the topics that the community can help with.

If you disagree please tell us why in a reply below, we'll be happy to talk about it.

Cheers!

0 answers

No answers yet.

Log in to answer this question.