tidybulk {tidybulk} | R Documentation

## Creates a 'tt' object from a 'tbl“

### Description

tidybulk() creates a 'tt' object from a 'tbl' formatted as | <SAMPLE> | <TRANSCRIPT> | <COUNT> | <...> |

### Usage

    tidybulk(.data, .sample, .transcript, .abundance, .abundance_scaled = NULL)

### Arguments

`.data` | A 'tbl' formatted as | <SAMPLE> | <TRANSCRIPT> | <COUNT> | <...> |
`.sample` | The name of the sample column
`.transcript` | The name of the transcript/gene column
`.abundance` | The name of the transcript/gene abundance column
`.abundance_scaled` | The name of the transcript/gene scaled abundance column

### Details

This function created a tidybulk object and is useful if you want to avoid to specify .sample, .transcript and .abundance arguments all the times. The tidybulk object have an attribute called tt_internals where these three arguments are stored as metadata. They can be extracted as attr(<object>, "tt_internals").

### Value

A 'tidybulk' object

### Examples

    my_tt =  tidybulk(tidybulk::counts_mini, sample, transcript, count)

[Package tidybulk version 0.99.23 Index]