mergeIDs: This function merge the flyID by either genesymbol, CG_ID or...

Description Usage Arguments Examples

View source: R/mergeIDs.R

Description

This function merge the flyID by either genesymbol, CG_ID or flybase ID

Usage

1
2
mergeIDs(input, merge_id_x = c("id1"), merge_id_y = c("CG_ID", "flybaseID",
  "genesymbol"))

Arguments

input

data.frame to merge with

merge_id_x

colname in input data frame to merge with

merge_id_y

colname in the reference file, one of "CG_ID", "flybaseID" , "genesymbol"

Examples

1
2
3
4
5
## Not run: 
input = structure(list(id1 = c("FBgn0011656", "FBgn0011656", "FBgn0011656", "FBgn0011656", "FBgn0011656", "FBgn0011656"), id2 = c("FBgn0004009", "FBgn0004110", "FBgn0010246", "FBgn0039039", "FBgn0086906", "FBgn0264491")), .Names = c("id1", "id2"), row.names = c(NA, -6L), class = "data.frame")
input%>%mergeIDs(input=.,merge_id_x="id1",merge_id_y="flybaseID")%>%mergeIDs(input=.,merge_id_x="id2",merge_id_y="flybaseID")%>%arrange(id2,type)%>%filter(type!="rna")

## End(Not run)

YunlongNie/flyfuns documentation built on Oct. 15, 2020, 6:11 p.m.