Ignore:
Timestamp:
Nov 22, 2016, 9:02:01 PM (3 years ago)
Author:
xuedongx
Message:

Add parser for PROSITE protein patterns

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/icgrep.cpp

    r5202 r5218  
    4444        clEnumValN(re::RE_Syntax::BRE, "G", "Posix basic regular expression (BRE) syntax"),
    4545        clEnumValN(re::RE_Syntax::ERE, "E", "Posix extended regular expression (ERE) syntax"),
     46        clEnumValN(re::RE_Syntax::PROSITE, "PRO", "PROSITE protein patterns syntax"),
    4647        clEnumValN(re::RE_Syntax::PCRE, "P", "Perl-compatible regular expression (PCRE) syntax - default"),
    4748               clEnumValEnd), cl::cat(LegacyGrepOptions), cl::Grouping, cl::init(re::RE_Syntax::PCRE));
     
    209210bool isArgUnwantedForGrep(char *argument) {
    210211#ifdef FUTURE
    211     std::vector<std::string> unwantedFlags = {"-n", "-P", "-G", "-E"};
     212    std::vector<std::string> unwantedFlags = {"-n", "-P", "-G", "-E", "-PRO"};
    212213#else
    213214    std::vector<std::string> unwantedFlags = {"-n"};
     
    278279        case re::RE_Syntax::ERE:
    279280            grepArguments.append("\"-E\" ");
     281            break;
     282        case re::RE_Syntax::PROSITE:
     283            grepArguments.append("\"-PRO\" ");
    280284            break;
    281285        case re::RE_Syntax::PCRE:
Note: See TracChangeset for help on using the changeset viewer.