get_mir: Get miRNA names from a data frame

Description Usage Arguments Details Value See Also

View source: R/get_mir_vec.R

Description

Get miRNA names from a data frame. These miRNA names can either be the most frequent ones, or the ones exceeding a threshold.

Usage

1
2
3
4
5
6
7
8
9
get_mir(
  df,
  top = NULL,
  threshold = NULL,
  topic = NULL,
  col.mir = miRNA,
  col.pmid = PMID,
  col.topic = Topic
)

Arguments

df

Data frame containing miRNA names. If threshold is set, df must also contain PubMed-IDs. If topic is set, df must also contain topic names.

top

Integer. Optional. Specifies number of most frequent miRNA names to return. If neither top nor threshold is set, top is automatically set to 5.

threshold

Integer or float. Optional. If threshold >= 1, return miRNA names mentioned in at least threshold abstracts. If threshold is between 0 and 1, return miRNA names mentioned in at least threshold abstracts of all abstracts in df.

topic

String. Optional. Character vector specifying which topics to obtain miRNA names from.

col.mir

Symbol. Column containing miRNA names.

col.pmid

Symbol. Column containing PubMed-IDs.

col.topic

Symbol. Column containing topic names.

Details

Get miRNA names from a data frame. These miRNA names can either be the most frequent ones, or the ones exceeding a threshold. Furthermore, if the data frame contains abstracts of different topics, only the miRNA names of specific topics can be obtained by setting the topic argument.

If neither top nor threshold is set, top is automatically set to 5.

Value

Character vector containing miRNA names.

See Also

Other get functions: get_distinct_mir_df(), get_distinct_mir_vec(), get_pmid(), get_shared_mir_df(), get_shared_mir_vec(), get_snp()


JulFriedrich/miRetrieve documentation built on Sept. 20, 2021, 11:37 p.m.