public class SecondaryStraddling
extends java.lang.Object
Constructor and Description |
---|
SecondaryStraddling() |
Modifier and Type | Method and Description |
---|---|
private static void |
createReport(java.lang.String resPath,
int top,
int separation,
int anyfragSize,
java.lang.String notAllowed,
java.lang.String ssPredPath,
java.lang.String fastaSeq,
java.util.List<java.lang.String> raport)
Run filtering and create report of filtered-out contacts.
|
private static void |
getFragsForPredicted(java.lang.String ssPredPath,
java.lang.String fastaSeq,
int fragSize,
java.util.List<int[]> frags,
java.util.List<java.lang.String> fragSS,
java.lang.String notAllowed,
java.util.List<java.lang.Character> ssPred) |
private static boolean |
ifPassIntraSSMarks(java.util.List<int[]> frags,
java.util.List<java.lang.String> fragSS,
int pos1,
int pos2,
int separation) |
static void |
main(java.lang.String[] args) |
public static void main(java.lang.String[] args)
args
- -
[0]: path to FASTA file;
[1]: path to gplmDCA results;
[2]: path to SSpro results file;
[3]: number of predicted contacts (N; default = 200);
[4]: for number of predicted contacts value of 'm' in 'm*L/d' where 'L' is sequence length (if 'm' is set to non-0 then [3] is ignored);
[5]: for number of predicted contacts value of 'd' in 'm*L/d' where 'L' is sequence length (default = 1);
[6]: chosen sub-name for the output file;private static void createReport(java.lang.String resPath, int top, int separation, int anyfragSize, java.lang.String notAllowed, java.lang.String ssPredPath, java.lang.String fastaSeq, java.util.List<java.lang.String> raport)
resPath
- - path to the file with DCA resultstop
- - number of of predicted contacts N to apply filtration onseparation
- - separation parameter for contact definitionanyfragSize
- - only secondary structure fragments of minimally that length will be used when list of secondary structure fragments is created for a sequencenotAllowed
- - these secondary structure will not be taken under consideration when list of secondary structure fragments is created for a sequencessPredPath
- - path to the file with SSpro resultsfastaSeq
- - FASTA sequenceraport
- - variable which will contain the list of filtered-out contactsprivate static boolean ifPassIntraSSMarks(java.util.List<int[]> frags, java.util.List<java.lang.String> fragSS, int pos1, int pos2, int separation)
private static void getFragsForPredicted(java.lang.String ssPredPath, java.lang.String fastaSeq, int fragSize, java.util.List<int[]> frags, java.util.List<java.lang.String> fragSS, java.lang.String notAllowed, java.util.List<java.lang.Character> ssPred)