pivot_sample {tidybulk} | R Documentation

## Extract sampe-wise information

### Description

pivot_sample() takes as imput a 'tbl' formatted as | <SAMPLE> | <ENSEMBL_ID> | <COUNT> | <...> | and returns a 'tbl' with only sampe-related columns

### Usage

    pivot_sample(.data, .sample = NULL)

### Arguments

`.data` | A 'tbl' formatted as | <SAMPLE> | <TRANSCRIPT> | <COUNT> | <...> |
`.sample` | The name of the sample column

### Details

This functon extracts only sample-related information for downstream analysis (e.g., visualisation). It is disruptive in the sense that it cannot be passed anymore to tidybulk function.

### Value

A 'tbl' object

### Examples

    	pivot_sample(
    		tidybulk::counts_mini,
    		.sample = sample
    	)

[Package tidybulk version 0.99.23 Index]