This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Issues with BedToIntervalList Picard tool

Hi everyone,

I'm trying to convert a bed file into interval list format. I'm not sure about which file I should choose as SD. I've tried using 'genome.dict' (genome.fa is the reference genome I've used to align) or the BAM file of the aligned reads; in both cases I get the following error:

Exception in thread "main" picard.PicardException: Sequence 'chr1_KI270763v1_alt' was not found in the sequence dictionary

How can I solve this issue?

Thanks in advance

picard

1 answer

Sequence 'chr1_KI270763v1_alt' was not found in the sequence dictionary

your bed file contains a chromosome "chr1_KI270763v1_alt" that is not defined in the REFERENCE/DICT file. if you're not interested with that contig, you can just remove it from your bed with grep -v

I'm interested with that contig so I can't remove it. Is it allowed to add that contig to the reference genome?

it depends of your downstream analysis. For example if you're using a bam and gatk, the internal dictionary should be the very same than the reference sequence.

Log in to answer this question.