-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #405 from chgibb/dev
398, 374, 372
- Loading branch information
Showing
11 changed files
with
172 additions
and
169 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"version" : "0.2.0", | ||
"configurations" : [ | ||
{ | ||
"name" : "Debug Main", | ||
"type" : "node", | ||
"request" : "launch", | ||
"cwd" : "${workspaceRoot}/phat-linux-x64", | ||
"runtimeExecutable" : "${workspaceRoot}/phat-linux-x64/phat", | ||
"program" : "${workspaceRoot}/phat-linux-x64/resources/app/main.js", | ||
"protocol" : "legacy" | ||
} | ||
] | ||
} |
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
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
52 changes: 52 additions & 0 deletions
52
src/req/renderer/OutputRenderer/reportView/renderMappedReadsPerContigTable.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,52 @@ | ||
import * as viewMgr from "./../../viewMgr"; | ||
import * as masterView from "./../masterView"; | ||
import * as rightPanel from "./../rightPanel"; | ||
|
||
export function renderMappedReadsPerContigTable() : string | ||
{ | ||
let masterView = <masterView.View>viewMgr.getViewByName("masterView"); | ||
let rightPanel = <rightPanel.View>viewMgr.getViewByName("rightPanel",masterView.views); | ||
if(masterView.displayInfo != "MappedReadsPerContigInfo") | ||
return ""; | ||
return ` | ||
<table style="width:100%"> | ||
${(()=>{ | ||
let res = ""; | ||
res += ` | ||
<tr> | ||
${rightPanel.mapppedReadsPerContigInfoSelection.refSeqName != false ? "<th>Contig Name</th>" : ""} | ||
${rightPanel.mapppedReadsPerContigInfoSelection.seqLength != false ? "<th>Length</th>" : ""} | ||
${rightPanel.mapppedReadsPerContigInfoSelection.mappedReads != false ? "<th>Mapped Reads</th>" : ""} | ||
${rightPanel.mapppedReadsPerContigInfoSelection.unMappedReads != false ? "<th>Unmapped Reads</th>" : ""} | ||
</tr> | ||
`; | ||
return res; | ||
})()} | ||
${(()=>{ | ||
let res = ""; | ||
for(let i = 0; i != masterView.alignData.length; ++i) | ||
{ | ||
if(masterView.alignData[i].uuid == masterView.inspectingUUID) | ||
{ | ||
for(let k = 0; k != masterView.alignData[i].idxStatsReport.length; ++k) | ||
{ | ||
res += "<tr>"; | ||
if(rightPanel.mapppedReadsPerContigInfoSelection.refSeqName) | ||
res += `<td>${masterView.alignData[i].idxStatsReport[k].refSeqName}</td>`; | ||
if(rightPanel.mapppedReadsPerContigInfoSelection.seqLength) | ||
res += `<td>${masterView.alignData[i].idxStatsReport[k].seqLength}</td>`; | ||
if(rightPanel.mapppedReadsPerContigInfoSelection.mappedReads) | ||
res += `<td>${masterView.alignData[i].idxStatsReport[k].mappedReads}</td>`; | ||
if(rightPanel.mapppedReadsPerContigInfoSelection.unMappedReads) | ||
res += `<td>${masterView.alignData[i].idxStatsReport[k].unMappedReads}</td>`; | ||
res += "</tr>"; | ||
} | ||
break; | ||
} | ||
} | ||
return res; | ||
})()} | ||
</table> | ||
`; | ||
} |
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
Oops, something went wrong.