Skip to content

Commit

Permalink
fix sequence number plot
Browse files Browse the repository at this point in the history
  • Loading branch information
ggabernet committed May 20, 2024
1 parent 46f8eb6 commit 4401e8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion assets/repertoire_comparison.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,9 @@ The full table can be found under [Table_sequences_assembled](repertoire_compari
```{r seq_assembled, echo=FALSE, warning=FALSE, results='asis'}
tab_seqs_assembled <- read.table("./Table_sequences_assembled.tsv", header=TRUE, sep="\t", check.names = FALSE)
# Splitting on last underscore for sample_id
if (any(is.na(tab_seqs_assembled$sample_id))) {
tab_seqs_assembled$sample_id <- sapply(tab_seqs_assembled$file_0, function(x) unlist(strsplit(as.character(x), "_"))[1])
tab_seqs_assembled$sample_id <- sapply(tab_seqs_assembled$file_0, function(x) unlist(strsplit(as.character(x), "_\\s*(?=[^_]+$)", perl=TRUE))[1])
}
dat <- tab_seqs_assembled %>%
Expand Down
2 changes: 1 addition & 1 deletion modules/local/rename_file.nf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ process RENAME_FILE {
tuple val(meta), path(file)

output:
tuple val(meta), path("${meta.id}_${file.name}") , emit: file
tuple val(meta), path("${meta.id}.${file.extension}") , emit: file

script:
"""
Expand Down

0 comments on commit 4401e8c

Please sign in to comment.