This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How Do I create a BED file from an hard masked fasta?

Hi to everyone,

I would like to create a BED file with the position hard masked in a fasta file.

This is the hard masked fasta:

>seq1 
ACGTNNNNAGTCAGNNNNACGTC
>seq2
NNNNACGCATGNNNACGT

And this is the output bed file that I want:

seq1 5 9
seq1 16 19
seq2 1 4
seq2 12 14
genome sequencing

2 answers

Many thanks for these links. Your solution with flex work well.

This tools : https://github.com/BGI-shenzhen/Reseqtools by this : iTools Fatools findN -InPut in.fa -OutPut N_Region.bed

Log in to answer this question.