function
getHTMLContent(filepath) {
return
$.ajax({
type :
"GET"
,
dataType :
"json"
,
url: window.location.pathname.replace(
"/SearchDatabase"
,
""
) +
"/GetHTMLContent?filepath="
+ filepath,
async :
false
,
cache :
false
});
}
function
getComponents() {
return
$.ajax({
type :
"GET"
,
dataType :
"json"
,
url: window.location.pathname.replace(
"/SearchDatabase"
,
""
) +
"/Components"
,
async :
false
,
cache :
false
});
}
function
searchContig(serializedForm) {
return
$.ajax({
type :
"GET"
,
dataType :
"json"
,
url: window.location.pathname.replace(
"/SearchDatabase"
,
""
) +
"/Contig?"
+ serializedForm,
async :
false
,
cache :
false
});
}
function
searchGeneByID(featureId) {
return
$.ajax({
type :
"GET"
,
dataType :
"json"
,
url: window.location.pathname +
"/GetGene?featureId="
+ featureId,
async :
false
,
cache :
false
});
}
function
searchGene(serializedForm, pageSize, offset) {
return
$.ajax({
type :
"GET"
,
dataType :
"json"
,
url: window.location.pathname +
"/GetGene?"
+ serializedForm +
"&pageSize="
+ pageSize +
"&offset="
+ offset,
async :
false
,
cache :
false
});
}
function
searchrRNA(serializedForm, pageSize, offset) {
return
$.ajax({
type :
"GET"
,
dataType :
"json"
,
url: window.location.pathname +
"/rRNA_search?"
+ serializedForm +
"&pageSize="
+ pageSize +
"&offset="
+ offset,
async :
false
,
cache :
false
});
}
function
getGeneByPosition(serializedForm, pageSize, offset) {
return
$.ajax({
type :
"GET"
,
dataType :
"json"
,
url: window.location.pathname +
"/geneByPosition?"
+ serializedForm +
"&pageSize="
+pageSize+
"&offset="
+offset,
async :
false
,
cache :
false
});
}
function
analysesCDS(serializedForm, pageSize, offset) {
return
$.ajax({
type :
"GET"
,
dataType :
"json"
,
url: window.location.pathname +
"/analysesCDS?"
+ serializedForm +
"&pageSize="
+ pageSize +
"&offset="
+ offset,
async :
false
,
cache :
false
});
}
function
trnaSearch(serializedForm, pageSize, offset) {
return
$.ajax({
type :
"GET"
,
dataType :
"json"
,
url: window.location.pathname +
"/trnaSearch?"
+ serializedForm +
"&pageSize="
+ pageSize +
"&offset="
+ offset,
async :
false
,
cache :
false
});
}
function
tandemRepeatsSearch(serializedForm, pageSize, offset) {
return
$.ajax({
type :
"GET"
,
dataType :
"json"
,
url: window.location.pathname +
"/tandemRepeatsSearch?"
+ serializedForm +
"&pageSize="
+ pageSize +
"&offset="
+ offset,
async :
false
,
cache :
false
});
}
function
ncRNASearch(serializedForm, pageSize, offset) {
return
$.ajax({
type :
"GET"
,
dataType :
"json"
,
url: window.location.pathname +
"/ncRNASearch?"
+ serializedForm +
"&pageSize="
+ pageSize +
"&offset="
+ offset,
async :
false
,
cache :
false
});
}
function
transcriptionalTerminatorSearch(serializedForm, pageSize, offset) {
return
$.ajax({
type :
"GET"
,
dataType :
"json"
,
url: window.location.pathname +
"/transcriptionalTerminatorSearch?"
+ serializedForm +
"&pageSize="
+ pageSize +
"&offset="
+ offset,
async :
false
,
cache :
false
});
}
function
rbsSearch(serializedForm, pageSize, offset) {
return
$.ajax({
type :
"GET"
,
dataType :
"json"
,
url: window.location.pathname +
"/rbsSearch?"
+ serializedForm +
"&pageSize="
+ pageSize +
"&offset="
+ offset,
async :
false
,
cache :
false
});
}
function
alienhunterSearch(serializedForm, pageSize, offset) {
return
$.ajax({
type :
"GET"
,
dataType :
"json"
,
url: window.location.pathname +
"/alienhunterSearch?"
+ serializedForm +
"&pageSize="
+ pageSize +
"&offset="
+ offset,
async :
false
,
cache :
false
});
}
function
getGeneBasics(id) {
return
$.ajax({
type :
"GET"
,
dataType :
"json"
,
url: window.location.pathname +
"/GetGeneBasics/"
+ id,
async :
false
,
cache :
false
});
}
function
getIntervalEvidenceProperties(id, component) {
return
$.ajax({
type :
"GET"
,
dataType :
"json"
,
url: window.location.pathname +
"/getIntervalEvidenceProperties/"
+ id +
"/"
+ component,
async :
false
,
cache :
false
});
}
function
getSimilarityEvidenceProperties(id, component) {
return
$.ajax({
type :
"GET"
,
dataType :
"json"
,
url: window.location.pathname +
"/getSimilarityEvidenceProperties?feature="
+ id ,
async :
false
,
cache :
false
});
}
function
getSubsequence(type, contig, sequenceName, start, end) {
return
$.ajax({
type :
"GET"
,
dataType :
"json"
,
url: window.location.pathname +
"/GetSubsequence/"
+ type +
"/"
+ contig +
"/"
+ sequenceName +
"/"
+ start +
"/"
+ end,
async :
false
,
cache :
false
});
}
function
getSubEvidences(featureId, locus_tag) {
return
$.ajax({
type :
"GET"
,
dataType :
"json"
,
url: window.location.pathname +
"/SubEvidences?feature="
+ featureId +
"&locus_tag="
+locus_tag,
async :
false
,
cache :
false
});
}
function
getTargetClass() {
return
$.ajax({
type :
"GET"
,
dataType :
"json"
,
url: window.location.pathname +
"/target_class"
,
async :
false
,
cache :
false
});
}
function
getRibosomalRNAs() {
return
$.ajax({
type :
"GET"
,
dataType :
"json"
,
url: window.location.pathname +
"/getRibosomalRNAs"
,
async :
false
,
cache :
false
});
}
function
postBlast(formData) {
return
$.ajax({
type :
"POST"
,
"mimeType"
:
"multipart/form-data"
,
"contentType"
:
false
,
"processData"
:
false
,
"headers"
: {
"accept"
:
"application/json"
,
"cache-control"
:
"no-cache"
,
},
"url"
: window.location.pathname.replace(
"/SearchDatabase"
,
"/Blast"
) +
"/search"
,
"data"
: formData
});
}