Skip to content

Commit

Permalink
Merge pull request #118 from AlexsLemonade/allyhawkins/no-large-merge…
Browse files Browse the repository at this point in the history
  • Loading branch information
allyhawkins committed Apr 4, 2024
1 parent 8fe7467 commit af208db
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 26 deletions.
Binary file modified manuscript.docx
Binary file not shown.
21 changes: 12 additions & 9 deletions manuscript.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@
<meta name="dc.date" content="2024-04-04" />
<meta name="citation_publication_date" content="2024-04-04" />
<meta property="article:published_time" content="2024-04-04" />
<meta name="dc.modified" content="2024-04-04T16:20:40+00:00" />
<meta property="article:modified_time" content="2024-04-04T16:20:40+00:00" />
<meta name="dc.modified" content="2024-04-04T21:18:15+00:00" />
<meta property="article:modified_time" content="2024-04-04T21:18:15+00:00" />
<meta name="dc.language" content="en-US" />
<meta name="citation_language" content="en-US" />
<meta name="dc.relation.ispartof" content="Manubot" />
Expand Down Expand Up @@ -118,9 +118,9 @@
<meta name="citation_fulltext_html_url" content="https://AlexsLemonade.github.io/ScPCA-manuscript/" />
<meta name="citation_pdf_url" content="https://AlexsLemonade.github.io/ScPCA-manuscript/manuscript.pdf" />
<link rel="alternate" type="application/pdf" href="https://AlexsLemonade.github.io/ScPCA-manuscript/manuscript.pdf" />
<link rel="alternate" type="text/html" href="https://AlexsLemonade.github.io/ScPCA-manuscript/v/b57eb10ce0000b0a4a5b7ef22c21ed9b8d1b0c84/" />
<meta name="manubot_html_url_versioned" content="https://AlexsLemonade.github.io/ScPCA-manuscript/v/b57eb10ce0000b0a4a5b7ef22c21ed9b8d1b0c84/" />
<meta name="manubot_pdf_url_versioned" content="https://AlexsLemonade.github.io/ScPCA-manuscript/v/b57eb10ce0000b0a4a5b7ef22c21ed9b8d1b0c84/manuscript.pdf" />
<link rel="alternate" type="text/html" href="https://AlexsLemonade.github.io/ScPCA-manuscript/v/e698e8df5f035d4713c7dc509df2d4e85be091e1/" />
<meta name="manubot_html_url_versioned" content="https://AlexsLemonade.github.io/ScPCA-manuscript/v/e698e8df5f035d4713c7dc509df2d4e85be091e1/" />
<meta name="manubot_pdf_url_versioned" content="https://AlexsLemonade.github.io/ScPCA-manuscript/v/e698e8df5f035d4713c7dc509df2d4e85be091e1/manuscript.pdf" />
<meta property="og:type" content="article" />
<meta property="twitter:card" content="summary_large_image" />
<link rel="icon" type="image/png" sizes="192x192" href="https://manubot.org/favicon-192x192.png" />
Expand All @@ -137,9 +137,9 @@ <h1 class="title">The Single-cell Pediatric Cancer Atlas: Data portal and open-s
</header>
<p><small><em>
This manuscript
(<a href="https://AlexsLemonade.github.io/ScPCA-manuscript/v/b57eb10ce0000b0a4a5b7ef22c21ed9b8d1b0c84/">permalink</a>)
(<a href="https://AlexsLemonade.github.io/ScPCA-manuscript/v/e698e8df5f035d4713c7dc509df2d4e85be091e1/">permalink</a>)
was automatically generated
from <a href="https://github.com/AlexsLemonade/ScPCA-manuscript/tree/b57eb10ce0000b0a4a5b7ef22c21ed9b8d1b0c84">AlexsLemonade/ScPCA-manuscript@b57eb10</a>
from <a href="https://github.com/AlexsLemonade/ScPCA-manuscript/tree/e698e8df5f035d4713c7dc509df2d4e85be091e1">AlexsLemonade/ScPCA-manuscript@e698e8d</a>
on April 4, 2024.
</em></small></p>
<h2 id="authors">Authors</h2>
Expand Down Expand Up @@ -457,7 +457,9 @@ <h3 id="merged-objects">Merged objects</h3>
The genes available in the merged object will be the same as those in each individual object, as all objects on the Portal were quantified using the same index.
Where possible, library-, cell- and gene-specific metadata found in the individual processed <code>SingleCellExperiment</code> objects are also merged.
The merged normalized counts matrix is then used to select high-variance genes in a library-aware manner before performing dimensionality reduction with both PCA and UMAP.
<code>merge.nf</code> outputs the merged and processed object as a <code>SingleCellExperiment</code> object.</p>
<code>merge.nf</code> outputs the merged and processed object as a <code>SingleCellExperiment</code> object.
The more samples that are included in a merged object, the larger the object, and the more difficult it is to work with that object in R or Python.
Therefore, we do not provide merged objects for projects with more than 50 samples.</p>
<p>We also account for additional modalities in <code>merge.nf</code>.
If at least one library in a project contains ADT data, the raw and normalized ADT data are also merged and saved as an <code>altExp</code> in the merged <code>SingleCellExperiment</code> object.
If any libraries in a project are multiplexed, no merged object is created, as there is no guarantee that a unique HTO was used for each sample in a given project.
Expand Down Expand Up @@ -672,7 +674,8 @@ <h3 id="generating-merged-data">Generating merged data</h3>
These genes are used to calculate library-aware principal components with <code>batchelor::multiBatchPCA()</code>.
The top 50 principal components were selected and used to calculate UMAP embeddings for the merged object.</p>
<p>If any libraries included in the ScPCA project contain additional ADT data, the ADT data are also merged and stored in the <code>altExp</code> slot of the merged <code>SingleCellExperiment</code> object.
By contrast, if any libraries included in the ScPCA project are multiplexed and contain HTO data, no merged object is created.</p>
By contrast, if any libraries included in the ScPCA project are multiplexed and contain HTO data, no merged object is created.
Merged objects were not created for projects with more than 50 samples because of the computational resources that would be required for working with those objects.</p>
<h3 id="converting-singlecellexperiment-objects-to-anndata-objects">Converting SingleCellExperiment objects to AnnData objects</h3>
<p><code>zellkonverter::writeH5AD()</code> <span class="citation" data-cites="11dH4UgRF">[<a href="#ref-11dH4UgRF" role="doc-biblioref">62</a>]</span> was used to convert <code>SingleCellExperiment</code> objects to <code>AnnData</code> format and export the objects as <code>.hdf5</code> files.
For any <code>SingleCellExperiment</code> objects containing an <code>altExp</code> (e.g., ADT data), the RNA and ADT data were exported and saved separately as RNA (<code>_rna.hdf5</code>) and ADT (<code>_adt.hdf5</code>) files.
Expand Down
17 changes: 10 additions & 7 deletions manuscript.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ header-includes: |
<meta name="dc.date" content="2024-04-04" />
<meta name="citation_publication_date" content="2024-04-04" />
<meta property="article:published_time" content="2024-04-04" />
<meta name="dc.modified" content="2024-04-04T16:20:40+00:00" />
<meta property="article:modified_time" content="2024-04-04T16:20:40+00:00" />
<meta name="dc.modified" content="2024-04-04T21:18:15+00:00" />
<meta property="article:modified_time" content="2024-04-04T21:18:15+00:00" />
<meta name="dc.language" content="en-US" />
<meta name="citation_language" content="en-US" />
<meta name="dc.relation.ispartof" content="Manubot" />
Expand Down Expand Up @@ -91,9 +91,9 @@ header-includes: |
<meta name="citation_fulltext_html_url" content="https://AlexsLemonade.github.io/ScPCA-manuscript/" />
<meta name="citation_pdf_url" content="https://AlexsLemonade.github.io/ScPCA-manuscript/manuscript.pdf" />
<link rel="alternate" type="application/pdf" href="https://AlexsLemonade.github.io/ScPCA-manuscript/manuscript.pdf" />
<link rel="alternate" type="text/html" href="https://AlexsLemonade.github.io/ScPCA-manuscript/v/b57eb10ce0000b0a4a5b7ef22c21ed9b8d1b0c84/" />
<meta name="manubot_html_url_versioned" content="https://AlexsLemonade.github.io/ScPCA-manuscript/v/b57eb10ce0000b0a4a5b7ef22c21ed9b8d1b0c84/" />
<meta name="manubot_pdf_url_versioned" content="https://AlexsLemonade.github.io/ScPCA-manuscript/v/b57eb10ce0000b0a4a5b7ef22c21ed9b8d1b0c84/manuscript.pdf" />
<link rel="alternate" type="text/html" href="https://AlexsLemonade.github.io/ScPCA-manuscript/v/e698e8df5f035d4713c7dc509df2d4e85be091e1/" />
<meta name="manubot_html_url_versioned" content="https://AlexsLemonade.github.io/ScPCA-manuscript/v/e698e8df5f035d4713c7dc509df2d4e85be091e1/" />
<meta name="manubot_pdf_url_versioned" content="https://AlexsLemonade.github.io/ScPCA-manuscript/v/e698e8df5f035d4713c7dc509df2d4e85be091e1/manuscript.pdf" />
<meta property="og:type" content="article" />
<meta property="twitter:card" content="summary_large_image" />
<link rel="icon" type="image/png" sizes="192x192" href="https://manubot.org/favicon-192x192.png" />
Expand All @@ -115,9 +115,9 @@ manubot-clear-requests-cache: false

<small><em>
This manuscript
([permalink](https://AlexsLemonade.github.io/ScPCA-manuscript/v/b57eb10ce0000b0a4a5b7ef22c21ed9b8d1b0c84/))
([permalink](https://AlexsLemonade.github.io/ScPCA-manuscript/v/e698e8df5f035d4713c7dc509df2d4e85be091e1/))
was automatically generated
from [AlexsLemonade/ScPCA-manuscript@b57eb10](https://github.com/AlexsLemonade/ScPCA-manuscript/tree/b57eb10ce0000b0a4a5b7ef22c21ed9b8d1b0c84)
from [AlexsLemonade/ScPCA-manuscript@e698e8d](https://github.com/AlexsLemonade/ScPCA-manuscript/tree/e698e8df5f035d4713c7dc509df2d4e85be091e1)
on April 4, 2024.
</em></small>

Expand Down Expand Up @@ -506,6 +506,8 @@ The genes available in the merged object will be the same as those in each indiv
Where possible, library-, cell- and gene-specific metadata found in the individual processed `SingleCellExperiment` objects are also merged.
The merged normalized counts matrix is then used to select high-variance genes in a library-aware manner before performing dimensionality reduction with both PCA and UMAP.
`merge.nf` outputs the merged and processed object as a `SingleCellExperiment` object.
The more samples that are included in a merged object, the larger the object, and the more difficult it is to work with that object in R or Python.
Therefore, we do not provide merged objects for projects with more than 50 samples.

We also account for additional modalities in `merge.nf`.
If at least one library in a project contains ADT data, the raw and normalized ADT data are also merged and saved as an `altExp` in the merged `SingleCellExperiment` object.
Expand Down Expand Up @@ -744,6 +746,7 @@ The top 50 principal components were selected and used to calculate UMAP embeddi

If any libraries included in the ScPCA project contain additional ADT data, the ADT data are also merged and stored in the `altExp` slot of the merged `SingleCellExperiment` object.
By contrast, if any libraries included in the ScPCA project are multiplexed and contain HTO data, no merged object is created.
Merged objects were not created for projects with more than 50 samples because of the computational resources that would be required for working with those objects.

### Converting SingleCellExperiment objects to AnnData objects

Expand Down
Binary file modified manuscript.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion spelling-errors.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Prasad
sjspielman
SMF
Spielman
taroni
Taroni
UTHealth
Venkatesh
Yakovets
Loading

0 comments on commit af208db

Please sign in to comment.