Skip to main content
2 of 2
added 14 characters in body
Alex Reynolds
  • 3.2k
  • 13
  • 27

Via BEDOPS convert2bed (psl2bed) and bedops operations:

$ psl2bed < hits.psl | bedops --range 5 --everything - > answer.bed

The file answer.bed will contain target intervals from the PSL (BLAT) input, padded up- and downstream by five bases.

This BED file can be run through samtools faidx or similar to get sequence data.

References:

Alex Reynolds
  • 3.2k
  • 13
  • 27