@@ -65,12 +65,12 @@ public static String checkORF(ProfilePredictionEntity pp, String prtn, String or
65
65
static String TASK = null ;
66
66
public static void setTask (String task ) {TASK = task ;}
67
67
68
- public static MMseqsSearchResultEntity search (String queryPath , String targetPath , String tmpPath , int uoff , int doff , boolean abs , int threads ) {
68
+ public static MMseqsSearchResultEntity search (String queryPath , String targetPath , String tmpPath , int searchType , int uoff , int doff , boolean abs , int threads ) {
69
69
String resultPath = tmpPath + GenericConfig .SESSION_UID + "_" + targetPath .substring (targetPath .lastIndexOf (File .separator ) + 1 ) + ".m8" ;
70
70
71
71
MMseqsWrapper mm = new MMseqsWrapper ();
72
72
mm .setEasySearch (queryPath , targetPath , resultPath , tmpPath );
73
- mm .setSearchType (0 );
73
+ mm .setSearchType (searchType );
74
74
mm .setThreads (threads );
75
75
mm .exec ();
76
76
@@ -90,12 +90,12 @@ public static MMseqsSearchResultEntity search(String queryPath, String targetPat
90
90
91
91
return res ;
92
92
}
93
- public static MMseqsSearchResultEntity search (String queryPath , String targetPath , String tmpPath , double evalue , int threads , double cov ) {
93
+ public static MMseqsSearchResultEntity search (String queryPath , String targetPath , String tmpPath , int searchType , double evalue , int threads , double cov ) {
94
94
String resultPath = tmpPath + GenericConfig .SESSION_UID + "_" + targetPath .substring (targetPath .lastIndexOf (File .separator ) + 1 ) + ".m8" ;
95
95
96
96
MMseqsWrapper mm = new MMseqsWrapper ();
97
97
mm .setEasySearch (queryPath , targetPath , resultPath , tmpPath );
98
- mm .setSearchType (0 );
98
+ mm .setSearchType (searchType );
99
99
mm .setEvalue (evalue );
100
100
mm .setCoverage (cov );
101
101
mm .setThreads (threads );
@@ -124,16 +124,16 @@ public static ProfilePredictionEntity parse(MMseqsSearchResultEntity res) {
124
124
return pp ;
125
125
}
126
126
127
- public static void validate (ProfilePredictionEntity pp , String seqPath , String tmpPath , int threads ) {
127
+ public static void validate (ProfilePredictionEntity pp , String seqPath , String tmpPath , int searchType , int threads ) {
128
128
String queryPath = pp .export ();
129
129
130
130
// 3-step coverage search
131
- MMseqsSearchResultEntity res = search (queryPath , seqPath , tmpPath , GenericConfig .EvalueCutoff , threads , 0.8 );
131
+ MMseqsSearchResultEntity res = search (queryPath , seqPath , tmpPath , searchType , GenericConfig .EvalueCutoff , threads , 0.8 );
132
132
if (res .size () == 0 && GenericConfig .SENS > 1 ) {
133
- res = search (queryPath , seqPath , tmpPath , GenericConfig .EvalueCutoff , threads , 0.5 );
133
+ res = search (queryPath , seqPath , tmpPath , searchType , GenericConfig .EvalueCutoff , threads , 0.5 );
134
134
}
135
135
if (res .size () == 0 && GenericConfig .SENS > 2 ) {
136
- res = search (queryPath , seqPath , tmpPath , GenericConfig .EvalueCutoff , threads , 0.0 );
136
+ res = search (queryPath , seqPath , tmpPath , searchType , GenericConfig .EvalueCutoff , threads , 0.0 );
137
137
}
138
138
139
139
res .assignLocs ();
0 commit comments