r3fang / SnapTools

A module for working with snap files in Python
Apache License 2.0
35 stars 21 forks source link

Annotation of additional data to single barcodes/cells #14

Open cschmidl opened 5 years ago

cschmidl commented 5 years ago

Dear Rongxin, can I add additional metadata to 1) single barcodes/cells or 2)even only to whole experiments during "createSnap"?

Concerning 1 I want to add protein-expression values and then visualize it for each cell.

In case of 2) the createSnap function seems to only allow to specify "file" and "sample", but nothing in addition. I'd like to add information I have for my sample and the visualize it in a umap similar as you visualize 2 different biological replicates in the tutorial, but I have several things for one sample I would like to add.

Thanks a lot! Christian

r3fang commented 5 years ago

Hi,

You can add addition information for each cell in the metaData which is a data.frame x.sp@metaData

-- Rongxin Fang, Ren Lab Ludwig Cancer Research Bioinformatics Ph.D. Student University of California, San Diego

On Jul 19, 2019, at 5:13 AM, cschmidl notifications@github.com wrote:

Dear Rongxin, can I add additional metadata to 1) single barcodes/cells or 2)even only to whole experiments during "createSnap"?

Concerning 1 I want to add protein-expression values and then visualize it for each cell.

In case of 2) the createSnap function seems to only allow to specify "file" and "sample", but nothing in addition. I'd like to add information I have for my sample and the visualize it in a umap similar as you visualize 2 different biological replicates in the tutorial, but I have several things for one sample I would like to add.

Thanks a lot! Christian

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/r3fang/SnapTools/issues/14?email_source=notifications&email_token=ABT6GGZQDVLJKLT6A7HHJATQAGVYJA5CNFSM4IFFMAA2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HAIDZYQ, or mute the thread https://github.com/notifications/unsubscribe-auth/ABT6GG2EWYU37INQBSWL563QAGVYJANCNFSM4IFFMAAQ.