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 top is set, df must also contain PubMed IDs.

row

Integer. Optional. Specifies row from which SNP shall be obtained. Works best with a data frame listing counts only as from count_snp(). If neither row nor top is given, row is automatically set to 1.

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 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()


[Package miRetrieve version 1.3.4 Index]