Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
52 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
src/guiTests/req/circularGenomeBuilder/expandHPV16FigureList.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import * as winMgr from "./../../../req/main/winMgr"; | ||
import * as dataMgr from "./../../../req/main/dataMgr"; | ||
import {Fasta} from "./../../../req/fasta"; | ||
|
||
/** | ||
* Expands HPV16 figure list | ||
* | ||
* @export | ||
* @returns {Promise<void>} | ||
*/ | ||
export async function expandHPV16FigureList() : Promise<void> | ||
{ | ||
return new Promise<void>((resolve,reject) => | ||
{ | ||
setTimeout(function() | ||
{ | ||
console.log("expanding figure list for hpv16"); | ||
|
||
let genomeBuilder = winMgr.getFreeWebContents(); | ||
if(!genomeBuilder || genomeBuilder.length == 0) | ||
{ | ||
console.log("Failed to open genomeBuilder window"); | ||
process.exit(1); | ||
} | ||
|
||
let fastas = new Array<Fasta>(); | ||
fastas = dataMgr.getKey("input","fastaInputs"); | ||
for(let i = 0; i != fastas.length; ++i) | ||
{ | ||
if(fastas[i].alias == "HPV16ref_genomes.fasta") | ||
{ | ||
genomeBuilder[0].executeJavaScript(` | ||
document.getElementById("${fastas[i].uuid}ExpandTree").children[0].click(); | ||
`); | ||
return resolve(); | ||
} | ||
} | ||
return reject(); | ||
},1000); | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters