Skip to content

Commit e5db53e

Browse files
committed
Fix ciriquant keyerror
1 parent bb54895 commit e5db53e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

conf/modules.config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ process {
875875
[
876876
"-v FS='\\t'",
877877
"-v OFS='\\t'",
878-
"'{ \$4 = \"circ_\" \$1 \":\" \$2 \"-\" \$3",
878+
"'{ \$4 = \$1 \":\" \$2 \"-\" \$3",
879879
(params.consider_strand ? " \":\" \$6" : ""),
880880
"; print }'",
881881
].join(' ').trim()
@@ -983,7 +983,7 @@ process {
983983
}
984984

985985
withName: MARK_CIRCULAR {
986-
ext.args = "'{ if (/^>.+:[0-9]+-[0-9]+/) { print \$1 \"\\tC\" } else { print } }'"
986+
ext.args = "'{ if (/^>.+:[0-9]+-[0-9]+(:[+-])?/) { print \$1 \"\\tC\" } else { print } }'"
987987
ext.suffix = "marked.fasta"
988988
publishDir = [
989989
path: { "${params.outdir}/5_quantification/psirc/transcriptome" },

modules/local/quantification/split_types/main.nf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ process SPLIT_TYPES {
1313
output:
1414
tuple val(meta), path("linear.tsv") , emit: linear
1515
tuple val(meta), path("circular.tsv"), emit: circular
16-
path "versions.yml" , emit: versions
16+
path "versions.yml" , emit: versions
1717

1818
when:
1919
task.ext.when == null || task.ext.when
@@ -22,7 +22,7 @@ process SPLIT_TYPES {
2222
"""
2323
awk -F'\\t' \\
2424
'NR==1 {print > "circular.tsv"; print > "linear.tsv"} \\
25-
NR>1 {if (\$1 ~ /^circ_/) print > "circular.tsv"; else print > "linear.tsv"}' ${input}
25+
NR>1 {if (\$1 ~ /^.+:[0-9]+-[0-9]+(:[+-])?/) print > "circular.tsv"; else print > "linear.tsv"}' ${input}
2626
2727
cat <<-END_VERSIONS > versions.yml
2828
"${task.process}":

0 commit comments

Comments
 (0)