File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
modules/local/quantification/split_types Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -875,7 +875,7 @@ process {
875
875
[
876
876
"-v FS='\\t'",
877
877
"-v OFS='\\t'",
878
- "'{ \$4 = \"circ_\" \ $1 \":\" \$2 \"-\" \$3",
878
+ "'{ \$4 = \$1 \":\" \$2 \"-\" \$3",
879
879
(params.consider_strand ? " \":\" \$6" : ""),
880
880
"; print }'",
881
881
].join(' ').trim()
@@ -983,7 +983,7 @@ process {
983
983
}
984
984
985
985
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 } }'"
987
987
ext.suffix = "marked.fasta"
988
988
publishDir = [
989
989
path: { "${params.outdir}/5_quantification/psirc/transcriptome" },
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ process SPLIT_TYPES {
13
13
output:
14
14
tuple val(meta), path(" linear.tsv" ) , emit: linear
15
15
tuple val(meta), path(" circular.tsv" ), emit: circular
16
- path " versions.yml" , emit: versions
16
+ path " versions.yml" , emit: versions
17
17
18
18
when:
19
19
task. ext. when == null || task. ext. when
@@ -22,7 +22,7 @@ process SPLIT_TYPES {
22
22
"""
23
23
awk -F'\\ t' \\
24
24
'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}
26
26
27
27
cat <<-END_VERSIONS > versions.yml
28
28
"${ task.process} ":
You can’t perform that action at this time.
0 commit comments