get_snp {miRetrieve} | R Documentation |
Get SNPs from a data frame
Description
Get SNPs from a data frame.
Usage
get_snp(df, row = NULL, top = NULL, col.snp = SNPs, col.pmid = PMID)
Arguments
df |
Data frame containing SNPs. If |
row |
Integer. Optional. Specifies row from which SNP shall be obtained. Works best
with a data frame listing counts only as from |
top |
Integer. Optional. Specifies number of most frequent SNPs to return. |
col.snp |
Symbol. Column containing SNPs. |
col.pmid |
Symbol. Column containing PubMed IDs. Necessary if the data frame provided is not a count data frame. |
Details
Get SNPs from a data frame.
If a data frame containing SNP counts as from
count_snp()
is provided, these SNPs are specified by the row they are listed in. To get the SNPs by row, set therow
argument.If a data frame with PubMed IDs is provided, these SNPs are specified by their top occurrence. To get the SNPs by frequency, set the
top
argument.
If neither row
nor top
is provided, row
is automatically set to 1
.
Value
String or character vector containing SNPs.
See Also
extract_snp()
,
count_snp()
,
subset_snp()
Other get functions:
get_distinct_mir_df()
,
get_distinct_mir_vec()
,
get_mir()
,
get_pmid()
,
get_shared_mir_df()
,
get_shared_mir_vec()