Terminus groups the transcripts whose abundances the reads cannot estimate
separately and reports one consensus grouping for a set of samples. Run it
on Salmon output made with --numGibbsSamples (or --numBootstraps),
--dumpEq and --dumpEqWeights:
Details
terminus group -d quant/sample1 -o terminus/out
terminus collapse -d quant/sample1 quant/sample2 -o terminus/outcollapse writes clusters.txt in the output folder of every sample: one
line per group, the name of the group followed by its transcripts, separated
by commas. read_terminus_groups() reads that file into a long table that
add_uncertainty() accepts in its groups argument, so that the groups of
Terminus replace the groups built from the correlation of the replicates.
Examples
clusters <- tempfile(fileext = ".txt")
writeLines(
c(
"NewTr1,ENST00000831217.1,ENST00000831165.1",
"NewTr2,ENST00000831423.1,ENST00000831157.1,ENST00000831246.1"
),
clusters
)
read_terminus_groups(clusters)
#> # A tibble: 5 × 3
#> group_id transcript_id group_size
#> <chr> <chr> <int>
#> 1 NewTr1 ENST00000831217.1 2
#> 2 NewTr1 ENST00000831165.1 2
#> 3 NewTr2 ENST00000831423.1 3
#> 4 NewTr2 ENST00000831157.1 3
#> 5 NewTr2 ENST00000831246.1 3
