Entering edit mode
I am trying to perform a count per gene analysis using featureCounts in R. I have downloaded the gtf file and edited it within R to only contain the gene ID, chr, start, end, and strand, within a data frame (df2). I am trying to run featureCounts on df2 with my 6 bam files, however, I am unable to download the package Rsubread.
library("Rsubread")
Error in library("Rsubread") : there is no package called ‘Rsubread’
The code I have within my R script so far is:
install.packages('BiocManager')
library(BiocManager)
install()
library('Rsubread')