Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .codacy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
exclude_paths:
- "test/**"
2 changes: 1 addition & 1 deletion sequana_pipelines/lora/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ fastp:
## If you want your own multiqc, fill this entry
multiqc:
options: -p -f
modules: busco quast sequana_coverage prokka fastp long_read_sum
modules: busco quast sequana_coverage prokka fastp
input_directory: .
config_file: multiqc_config.yaml
resources:
Expand Down
30 changes: 15 additions & 15 deletions sequana_pipelines/lora/src/templates/lora.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,32 @@
[].slice.call(document.querySelectorAll("#lora_summary tr"), 1).forEach(row => {
const selectedClass = "is-selected";
row.addEventListener("click", () => {
/* get row informations */
const ths = document.querySelectorAll("#lora_summary th", 1);
/* get row informations */
const ths = document.querySelectorAll("#lora_summary th", 1);
const rowObj = [].reduce.call(ths, (acc, th, i) => {
const { textContent } = row.cells[i];
acc[th.textContent] = textContent;
return acc;
const { textContent } = row.cells[i];
acc[th.textContent] = textContent;
return acc;
}, {});

/* update row style */
if (!row.classList.contains(selectedClass)) {
/* update row style */
if (!row.classList.contains(selectedClass)) {
var pastRow = document.getElementById('lora_summary').getElementsByClassName(selectedClass)[0];
if (pastRow) {
/* hide past row */
pastRow.classList.remove(selectedClass);
if (pastRow) {
/* hide past row */
pastRow.classList.remove(selectedClass);
const pastRowObj = [].reduce.call(ths, (acc, th, i) => {
const { textContent } = pastRow.cells[i];
const { textContent } = pastRow.cells[i];
acc[th.textContent] = textContent;
return acc;
}, {});
document.getElementById(pastRowObj.Sample).style.display = "none";
}
row.classList.add(selectedClass);
document.getElementById(rowObj.Sample).style.display = "block";
}
row.classList.add(selectedClass);
document.getElementById(rowObj.Sample).style.display = "block";
}
});
});
});

/** open the first contig information*/
document.getElementById("defaultOpenAssembly").click();
6 changes: 3 additions & 3 deletions sequana_pipelines/lora/src/templates/summary.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
document.body.style.setProperty("--calc-svg-height", "auto");
const svg = document.getElementsByTagName('svg')[0];
const svg = document.getElementsByTagName("svg")[0];
document.body.style.setProperty("--calc-svg-height", svg.getBBox().height + "pt");

document.body.style.setProperty("--calc-dep-height", "auto");
const tableHeight = document.getElementById('dependencies').firstElementChild.clientHeight + "px";
document.body.style.setProperty("--calc-dep-height", tableHeight);

document.body.style.setProperty("--calc-methods-height", "auto");
const methodsHeight = document.getElementById('methods').scrollHeight + "px";
const methodsHeight = document.getElementById("methods").scrollHeight + "px";
document.body.style.setProperty("--calc-methods-height", methodsHeight);

/* Hide div */
Expand All @@ -19,6 +19,6 @@ const hideDiv = (currentElm, idToHide) => {
} else {
elementToHide.classList.remove(`open-section-${idToHide}`);
}
var spanElem = currentElm.querySelector('span');
var spanElem = currentElm.querySelector("span");
spanElem.textContent = spanElem.textContent === "expand_more" ? "expand_less" : "expand_more";
};
Loading