separate_tags: Separate locus tag into multiple rows

Description Usage Arguments Value Author(s) Examples

View source: R/separate_tags.R

Description

Separates locus tags mentioned in full text and expands ranges like YPO1970-74 into new rows

Usage

1
separate_tags(txt, pattern, column = "text")

Arguments

txt

a table

pattern

regular expression to match locus tags like YPO[0-9-]+ or the locus tag prefix like YPO.

column

column name to search, default "text"

Value

a tibble with locus tag, matching text and rows.

Author(s)

Chris Stubben

Examples

1
2
x <- data.frame(row = 1, text = "some genes like YPO1002 and YPO1970-74")
separate_tags(x, "YPO")

tidypmc documentation built on Aug. 1, 2019, 5:05 p.m.