Skip to content
Snippets Groups Projects
Commit 149e3d82 authored by nservant's avatar nservant
Browse files

[MODIF] deal with technical replicates

parent 863e95be
Branches
No related tags found
No related merge requests found
...@@ -124,8 +124,8 @@ class RowChecker: ...@@ -124,8 +124,8 @@ class RowChecker:
for row in self.modified: for row in self.modified:
sample = row[self._sample_col] sample = row[self._sample_col]
seen[sample] += 1 seen[sample] += 1
if counts[sample] > 1: #if counts[sample] > 1:
row[self._sample_col] = f"{sample}_T{seen[sample]}" # row[self._sample_col] = f"{sample}_T{seen[sample]}"
def sniff_format(handle): def sniff_format(handle):
......
...@@ -164,10 +164,10 @@ workflow HIC { ...@@ -164,10 +164,10 @@ workflow HIC {
ch_input ch_input
) )
.reads .reads
.map { //.map {
meta, fastq -> // meta, fastq ->
meta.id = meta.id.split('_')[0..-2].join('_') // meta.id = meta.id.split('_')[0..-2].join('_')
[ meta, fastq ] } // [ meta, fastq ] }
.groupTuple(by: [0]) .groupTuple(by: [0])
.flatMap { it -> setMetaChunk(it) } .flatMap { it -> setMetaChunk(it) }
.collate(2) .collate(2)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment