Closed tseemann closed 3 years ago
I used the 6 column BED format (assumed this was the standard?) for ivar as documented by UCSC genome browser. It seems to match the default 6 column BED generated using bedtools bamtobed
.
I can also modify to read the format specified here:
Region, chromStart, chromEnd, primer_name, amplicon_name
perl -ne
'my @x=split m/\t/; print join("\t",@x[0..3], 60, $x[3]=~m/LEFT/?"+":"-"),"\n";'
< nCoV-2019.scheme.bed > ARTIC-V1.bed
I'll fix this now, the score field is never going to be used so I could hijack that for the pool number.
@joshquick The V3 BED file is in the old artic BED format (column 5 - amplicon_name) compared to V1 and V2 ( which are in usual 6 column BED format). Just in case this was missed :)
For now, awk -F $'\t' 'BEGIN{OFS=FS;}{$5=60;print}' nCoV-2019.bed > nCoV-2019_col5_replaced.bed
will get the standard BED format for V3 BED file
awk -v OFS='\t' '$5=60' nCoV-2019.bed
from Matthew Croxen :maple_leaf:
Bump! The V3 BED file is still the old ARTIC bed format and doesn't work with iVar.
https://andersen-lab.github.io/ivar/html/manualpage.html
They need a score in col 4 and a strand in col 5 ?
You have