Skip to content

Commit e16f273

Browse files
authored
Merge pull request #98 from Integrative-Transcriptomics/dev
Dev
2 parents 83d0684 + 03ecf3a commit e16f273

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

src/components/Main/ReplicateColumn.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ function ReplicateColumn({ handleRemove, handleFiles, handleAddEF, handleAddER,
6161
handleAdd={(e) => handleAddER(e, i)} handleRemove={(e, s, i) => handleRemove(e, s, i)} handleFiles={(e) => handleFiles(e)}
6262
tooltip="Graph file containing the RNA-seq expression graph for the reverse strand from the 5' enrichment library. tagRNA-seq: Use the TSS reads here."/>
6363

64-
<DragDropField label='normal forward file' currentFiles={[currentNF[i]]} state='normalF' index={i}
64+
<DragDropField label='non-enriched (control) forward file' currentFiles={[currentNF[i]]} state='normalF' index={i}
6565
handleAdd={(e) => handleAddNF(e, i)} handleRemove={(e, s, i) => handleRemove(e, s, i)} handleFiles={(e) => handleFiles(e)}
6666
tooltip="Graph file containing the RNA-seq expression graph for the forward strand from library without 5' enrichment. tagRNA-seq: Use the PSS reads here." />
6767

68-
<DragDropField label='normal reverse file' currentFiles={[currentNR[i]]} state='normalR' index={i}
68+
<DragDropField label='non-enriched (control) reverse file' currentFiles={[currentNR[i]]} state='normalR' index={i}
6969
handleAdd={(e) => handleAddNR(e, i)} handleRemove={(e, s, i) => handleRemove(e, s, i)} handleFiles={(e) => handleFiles(e)}
7070
tooltip="Graph file containing the RNA-seq expression graph for the reverse strand from library without 5' enrichment. tagRNA-seq: Use the PSS reads here."/>
7171

src/components/Main/UploadFile.jsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,12 @@ function UploadFile({ file, id, studyType, genomes, saveIndividualFile, show, sa
1919
disabled = true;
2020
}
2121

22-
const label = (file.name).toLowerCase().replace(' ', '');
22+
let label = (file.name).toLowerCase().replace(' ', '');
23+
// if label contains normal forward or normal reverse, change normal to non-enriched (control)
24+
// if (label.includes('normal')) {
25+
// console.log(label);
26+
// label = label.replace('normal', 'nonenriched');
27+
// }
2328

2429
let fileName;
2530
let gIdx;
@@ -104,7 +109,7 @@ function UploadFile({ file, id, studyType, genomes, saveIndividualFile, show, sa
104109
gap: "12px",
105110
width: "50vw",
106111
}} >
107-
<p className='file-row'>{file.name}</p>
112+
<p className='file-row'>{file.name.includes("normal") ? file.name.replace("normal", "non-enriched (control)") : file.name}</p>
108113
<label className='element-row file-row element-text'>
109114

110115
<input disabled={disabled} className='element' type="file" name={label} id={id + 'file'} style={{ display: 'none' }}

0 commit comments

Comments
 (0)