Quantcast
Channel: XHMM — GATK-Forum
Viewing all articles
Browse latest Browse all 26

interval_list_to_pseq_reg

$
0
0

Hi Menachem,

Following the workflow I got an error running "interval_list_to_pseq_reg"

./sources/scripts/interval_list_to_pseq_reg EXOME.interval_list > ./EXOME.targets.reg

Error:

awk: line 4: illegal reference to array b

The awk command in the file is:

awk 'BEGIN{OFS="\t"; print "#CHR\tBP1\tBP2\tID"} \
{split($1,a,":"); chr=a[1]; \
if (match(chr,"chr")==0) {chr="chr"chr} \
split(a[2],b,"-"); bp1=b[1]; bp2=bp1; if (length(b) > 1) {bp2=b[2]} \
print chr,bp1,bp2,NR}'

Am I doing something wrong!!!
Thanks!


Viewing all articles
Browse latest Browse all 26

Trending Articles