pybedtools.bedtool.BedTool.seq

static BedTool.seq(loc, fasta)[source]

Return just the sequence from a region string or a single location >>> fn = pybedtools.example_filename(‘test.fa’) >>> BedTool.seq(‘chr1:2-10’, fn) ‘GATGAGTCT’ >>> BedTool.seq((‘chr1’, 1, 10), fn) ‘GATGAGTCT’