writeConFile              package:cosmo              R Documentation

_C_o_n_v_e_r_t_s _a_n _o_b_j_e_c_t _o_f _c_l_a_s_s '_c_o_n_s_t_r_a_i_n_t_S_e_t' _i_n_t_o _a _t_e_x_t _f_i_l_e

_D_e_s_c_r_i_p_t_i_o_n:

     This function converts an object of class 'constraintSet' or a
     list of such objects into a text file.

_U_s_a_g_e:

       writeConFile(constraints, stringOutput=TRUE, outputFile="constraints.txt")

_A_r_g_u_m_e_n_t_s:

constraints: object of class 'constraintSet' or list of objects of
          class 'constraintSet' which is to be converted in a text
          format

stringOutput: logical, whether the constraint should be written as a
          string. If FALSE, the constraint is written as a text file

outputFile: path and name of the constraint text file to be created

_D_e_t_a_i_l_s:

     Both the string and the text file can be used to submit
     constraints directly to the COSMO web application, which is an
     alternative to the GUI application. The text file has the
     advantage of being more easy to read and to load for future use.

_V_a_l_u_e:

     NULL A single text file is created, by default in the working
     directory.

_A_u_t_h_o_r(_s):

     Fabian Gallusser, fgallusser@berkeley.edu

_S_e_e _A_l_s_o:

     'constraintSet', 'readConFile'

_E_x_a_m_p_l_e_s:

     set <- makeConSet(4,c("B","P","V","B"),c(4,50,NA,4))
     con1 <- makeBoundCon(1,2)
     con2 <- makePalCon(1,4,0.5)
     con3 <- makeSubMotifCon("TATA",0.6)
     con4 <- makePosFreqCon("2","A",0.5)
     con5 <- makePosFreqCon("All","G",0.4)
     conSet <- addCon(set,list(con1,con2,con3,con4,con5),c(2,NA,NA,1,3))
     conString <- writeConFile(conSet)

