ids.by.pos: Order rs-ids or ichip ids by chrosome and position

Description Usage Arguments Value See Also Examples

View source: R/humarray.R

Description

Simple function to sort a character list of SNP ids into genome order.

Usage

1

Arguments

ids

character, vector of SNP rs-ids or chip-ids, see rs.to.id()

Value

the same vector 'ids', sorted by genome position

See Also

rs.to.id, id.to.rs, Chr, Pos

Examples

1
2
3
4
5
6
snp.ids <- c("rs3842724","imm_11_2147527","rs689","rs9467354","rs61733845")
Chr(snp.ids) # shows each is on a different chromosome
Pos(snp.ids)
ids.by.pos(snp.ids)
Chr(ids.by.pos(snp.ids))
Pos(ids.by.pos(snp.ids))

humarray documentation built on Nov. 20, 2017, 1:05 a.m.