rmskFilter | R Documentation |
For filtering out the select transposable elements from gene, family, and class to down-stream analysis, we provide this function to help quickly list all options out. You can run this function first setting show to TRUE to see every possibility. Then you provide a character vector including the name of family/class you want to select. The function will then return a subset of the rmsk dataframe.
rmskFilter(rmskInfo, gene = NULL, family = NULL, class = NULL, show = FALSE)
rmskInfo |
rmsk dataframe, with three columns, gene_id, family_id, and class_id |
gene |
a vector including the gene names you want |
family |
a vector including the family names you want |
class |
a vector including the class names you want |
show |
if you want to first see all possible family/class, set this as TRUE |
a subset of rmsk dataframe including three columns, gene, family and class
data(hg19rmsk_info)
df <- hg19rmsk_info
#list all possibilities
rmskFilter(df, show=TRUE)
# select family
rmskFilter(df, family="hAT-Charlie")
# select class
df_subset <- rmskFilter(df, class= c("LINE", "SINE"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.