Attaching package: 'valr'
The following objects are masked from 'package:dplyr':
as_data_frame, data_frame
The following objects are masked from 'package:tibble':
as_data_frame, data_frame
Question 1 – 5 points
We’ll work with a few different files for the next questions.
hg19.refGene.chr22.bed.gz is a BED12 file containing gene (mRNA) information for chr22.
hg19.rmsk.chr22.bed.gz is a BED6 containing repetitive elements in the human genome.
hg19.dnase1.bw is a bigWig file containing DNaseI signal.
You can find the path to each with valr_example(). Load each one invdividually using the read_* functions.
Which repeat class covers the largest amount of chromosome 22?
# N.B.: the following doesn't collapse intervals within repeat classes, but it's a# decent approximation.rmsk_tbl|>mutate(int_size =end-start)|>group_by(name)|>summarize(total_size =sum(int_size))|>arrange(desc(total_size))