@@ -33,11 +33,6 @@ library("optparse")
3333# # PAIR: POPS on paired chains
3434# # DIFF: difference between sum of isolated chain SASA and paired chain SASA
3535
36- # # The '--contact' option creates a list of paired residues at
37- # # the chain interface, based on relative per-residue surface burial (0.25)
38- # # and a distance-weighted soft contact score. The reciprocally highest
39- # # scoring pairs are listed.
40-
4136option_list = list (
4237 make_option(c(" -p" , " --pdb" ), type = " character" , default = NULL ,
4338 help = " local PDB file (upload)" , metavar = " character" ),
@@ -46,9 +41,7 @@ option_list = list(
4641 make_option(c(" -m" , " --mmcif" ), type = " character" , default = NULL ,
4742 help = " local MMCIF file (upload)" , metavar = " character" ),
4843 make_option(c(" -w" , " --workdir" ), type = " character" , default = NULL ,
49- help = " working directory" , metavar = " character" ),
50- make_option(c(" -c" , " --contact" ), type = " character" , default = NULL ,
51- help = " contact interface" , metavar = " character" )
44+ help = " working directory" , metavar = " character" )
5245)
5346
5447opt_parser = OptionParser(option_list = option_list )
@@ -111,17 +104,9 @@ exit_codes = sapply(1:length(chain.files), function(x) {
111104})
112105
113106# # Concatenate output files of single (ISO = isolated) chains.
114- # # Atom
115- # # first just the header line
116- # # then concatenate output file, without file name header (-q) and table header (-n+2)
117- command2 = paste0(" tail -q -n+2 " , " *.iso.rpopsAtom >> " , " isoSASA.rpopsAtom" )
118- system_status2 = system(command2 , wait = TRUE )
119107# # Residue
120108command3 = paste0(" tail -q -n+2 " , " *.iso.rpopsResidue >> " , " isoSASA.rpopsResidue" )
121109system_status3 = system(command3 , wait = TRUE )
122- # # Chain
123- command4 = paste0(" tail -q -n+2 " , " *.iso.rpopsChain >> " , " isoSASA.rpopsChain" )
124- system_status4 = system(command4 , wait = TRUE )
125110
126111# ________________________________________________________________________________
127112# # PAIR: create PDB files for all pairwise chain combinations
@@ -185,7 +170,7 @@ pair.sasa.level.files = lapply(pair.sasa.level.files, pair.veclist)
185170# # read PAIR SASA files
186171for (i in 1 : dim(pair.cmbn )[2 ]) {
187172 # # read paired chain output
188- pair.sasa.level.files [[j ]][[i ]] = read.table(paste0(chainpair.files.short [i ],
173+ pair.sasa.level.files [[1 ]][[i ]] = read.table(paste0(chainpair.files.short [i ],
189174 " .pair." , rpopsLevel [1 ]),
190175 header = TRUE , stringsAsFactors = FALSE )
191176}
@@ -221,13 +206,8 @@ sel.lix = (pair.sasa.level.files[[1]][[1]][ , "Q.SASA."][is.lix] <= 0.25) & (Zro
221206final.ix = (which(is.lix ))[sel.lix ]
222207
223208# ________________________________________________________________________________
224- # # write DIFF SASA result files
225- # # ID SASA files have been created in the App
226- # # PAIR SASA files have been created here earlier
227- # # that completes the set of three types of output files
228- # message("Writing SASA difference output")
229- for (j in 1 : length(rpopsLevel )) {
230- write.table(do.call(rbind , diff.sasa.level [[j ]]), paste0(" deltaSASA." , rpopsLevel [j ]))
231- }
209+ # # write results
210+ write.table(pair.sasa.level.files [[1 ]][[1 ]][final.ix , ], file = " Qinterface.dat" )
211+
232212
233213# ===============================================================================
0 commit comments