Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Obtaining cell metadata incl cell type and subtype annotation (Figure 4) #4

Open
lgeistlinger opened this issue Dec 27, 2024 · 1 comment
Labels

Comments

@lgeistlinger
Copy link
Collaborator

Assuming familiarity with R and with the SingleCellExperiment container, all you would need to do is to carry out lines 290-310 here:

Read the pre-processed 10X data for all tumors as `list` of `SingleCellExperiment`s.

and access the colData of the obtained SingleCellExperiments which includes, among other things, the cell type annotation.

For example here for Tumor T59:

> colData(sces[["T59"]])[,c("Barcode", "subtype", "celltype")]
DataFrame with 13040 rows and 3 columns
                 Barcode     subtype    celltype
             <character> <character> <character>
1     AAACCTGAGCTGCCCA-1         DIF         MYE
2     AAACCTGAGTCATCCA-1         DIF         MYE
3     AAACCTGCAAGCCCAC-1         IMR         MYE
4     AAACCTGCAAGCGCTC-1         DIF         EPI
5     AAACCTGCACGTAAGG-1         DIF         EPI
...                  ...         ...         ...
13036 TTTGTCATCCCTTGCA-1         DIF         MYE
13037 TTTGTCATCCGTACAA-1         DIF         MYE
13038 TTTGTCATCCTCCTAG-1         DIF         EPI
13039 TTTGTCATCGGTCTAA-1         DIF         EPI
13040 TTTGTCATCTAACTCT-1         DIF         MYE
@lgeistlinger
Copy link
Collaborator Author

The cell metadata for each tumor can also be obtained as flat text files here:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants