Skip to content

Commit 2612146

Browse files
committed
docs: add how to read assays
1 parent 783f3d7 commit 2612146

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

docs/output.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,8 +734,28 @@ The principal output files are the same between Salmon and Kallisto:
734734
- `<pseudo_aligner>.merged.gene_counts_length_scaled.tsv`: Matrix of gene-level length-scaled estimated counts across all samples.
735735
- `<pseudo_aligner>.merged.transcript_counts.tsv`: Matrix of isoform-level raw counts across all samples.
736736
- `<pseudo_aligner>.merged.transcript_tpm.tsv`: Matrix of isoform-level TPM values across all samples.
737-
- `all_samples_transcript.SummarizedExperiment.rds`: RDS object that can be loaded in R that contains a [SummarizedExperiment](https://bioconductor.org/packages/release/bioc/html/SummarizedExperiment.html) container with the abundance TPM (`tpm`), estimated isoform-level raw counts (`counts`) and transcript length (`length`) in the assays slot for transcripts.
738737
- `tx2gene.tsv`: Tab-delimited file containing gene to transcripts ids mappings.
738+
- `all_samples_transcript.SummarizedExperiment.rds`: RDS object that can be loaded in R that contains a [SummarizedExperiment](https://bioconductor.org/packages/release/bioc/html/SummarizedExperiment.html) container with the abundance TPM (`tpm`), estimated isoform-level raw counts (`counts`) and transcript length (`length`) in the assays slot for transcripts.
739+
740+
> [!TIP]
741+
> You can access specific assay matrices from the `SummarizedExperiment` RDS object with the following R code:
742+
743+
```r
744+
library(SummarizedExperiment)
745+
746+
# Load the RDS object
747+
se <- readRDS("all_samples_gene.SummarizedExperiment.rds")
748+
749+
# View available assays
750+
assayNames(se)
751+
752+
# Access a specific assay, e.g., length-scaled counts
753+
counts_length_scaled <- assay(se, "counts_length_scaled")
754+
755+
# Print the matrix
756+
print(counts_length_scaled)
757+
```
758+
739759
</details>
740760

741761
An additional subset of files are distinct to each tool, for Salmon:

0 commit comments

Comments
 (0)