loadCounts: Import featureCounts output table into R.

Description Usage Arguments Value Author(s)

View source: R/import_data.R

Description

Skips the first comment line.

Usage

1
2
loadCounts(sample_dir, sample_names, counts_suffix = ".counts.txt",
  sub_dir = TRUE)

Arguments

sample_dir

Path to the directory containing the count files.

sample_names

Vector of sample names.

counts_suffix

Suffix of the counts file.

sub_dir

If TRUE, count files are nested in subfolders named after sample names, otherwise counts files are directly in sample_dir.

Value

Counts matrix where the first two columns are gene_id and feature length.

Author(s)

Kaur Alasoo


kauralasoo/seqUtils documentation built on May 20, 2019, 7:42 a.m.