View source: R/feature_counts.R
Convert a 'data.frame' containing feature-count data into an 'edgeR::DGEList'
1 | feature_counts_to_dgelist(fcounts_df, sample_df, id_column = NULL, ...)
|
fcounts_df |
A 'data.frame' containing the feature-counts (ie, read number) for each feature (gene; rows) in each sample (columns 3:END). The first two columns should be 'feature_id' and 'length'. 'length' should be a numeric column. The column names are taken to be the working IDs for the samples (except 'feature_id' and 'length') and each column name must be present once in the 'id_column' (may be the 'rownames') of 'sample_df'. |
sample_df |
A 'data.frame' containing the sample-level annotation data, eg, the phenotypic info, the file locations, for each sample. This must either contain 'id_column' as a column name or have defined 'rownames' if 'id_column' is 'NULL'. The samples defined in the 'id_column' of 'sample_df' must be a superset of the samples present in the colnames of 'fcounts_df'. The rows of 'sample_df' that correspond to the samples in 'fcounts_df' will be passed into the 'DGEList::samples' slot, possibly being reordered to match the ordering of the samples in 'fcounts_df'. |
id_column |
A single string giving the column of 'sample_df' that gives the working IDs for the samples in the experiment. If 'NULL', the IDs are taken from the 'rownames' of 'sample_df' (which must be defined in that case). |
... |
Additional parameters for passing to 'DGEList'. Note that these should be ordered according to the sample-ordering in 'fcounts_df' (if this differs from that in 'sample_df'). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.