ebv/check_last_n_transcript_seq_for_PA_motif.py
def fetch_sequence(chrom, start, end, strand, genome):
    """ Given a BED region, fetch its sequence. If it is on the minus strand,
        then reverse-complement the sequence. """

    seq = genome.sequence({'chr': chrom, 'start': start, 'stop': end, 
                      'strand': strand}, one_based=False)

    return seq
 Given a BED region, fetch its sequence. If it is on the minus strand,
        then reverse-complement the sequence. 
Given a BED region, fetch its sequence. If it is on the minus strand,
then reverse-complement the sequence.
Given a BED region fetch its sequence . If it is on the minus strand then reverse - complement the sequence .
def fetch_sequence(chrom, start, end, strand, genome):
    seq = genome.sequence({'chr': chrom, 'start': start, 'stop': end, 
                      'strand': strand}, one_based=False)
    return seq
def fetch_sequence ( chrom , start , end , strand , genome ) : seq = genome . sequence ( { 'chr' : chrom , 'start' : start , 'stop' : end , 'strand' : strand } , one_based = False ) return seq
Given a BED region, fetch its sequence.
Given a BED region fetch its sequence .
""" Given a BED region, fetch its sequence. If it is on the minus strand,
        then reverse-complement the sequence. """
chrom
start
end
strand
genome