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 {
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" },
Original file line number Diff line number Diff 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} ":
You can’t perform that action at this time.
0 commit comments