import os
if os.system(r"egrep -v -n '^<%=snpRef.getOption("PATTERN_1")%>|^<%=snpRef.getOption("PATTERN_2")%>' <%=snpRef.getOption("DEFAULT_DIRECTORY")%>/<%=snpRef.getOption("SOURCE_DATA")%> > <%=snpRef.getOption("DEFAULT_DIRECTORY")%>/err_<%=snpRef.getOption("SOURCE_DATA")%>") <> 0 :
raise "get <error> OS command has signalled errors"
import os
if os.system(r"grep -n '^<%=snpRef.getOption("PATTERN_1")%>' <%=snpRef.getOption("DEFAULT_DIRECTORY")%>/<%=snpRef.getOption("SOURCE_DATA")%> > <%=snpRef.getOption("DEFAULT_DIRECTORY")%>/<%=snpRef.getOption("PATTERN_1")%>_<%=snpRef.getOption("SOURCE_DATA")%>") <> 0 :
raise "get <<%=snpRef.getOption("PATTERN_1")%>> OS command has signalled errors"
import os
if os.system(r"grep -n '^<%=snpRef.getOption("PATTERN_2")%>' <%=snpRef.getOption("DEFAULT_DIRECTORY")%>/<%=snpRef.getOption("SOURCE_DATA")%> > <%=snpRef.getOption("DEFAULT_DIRECTORY")%>/<%=snpRef.getOption("PATTERN_2")%>_<%=snpRef.getOption("SOURCE_DATA")%>") <> 0 :
raise "get <<%=snpRef.getOption("PATTERN_2")%>> OS command has signalled errors"