Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)
it appends the text to the seqrecord description

        def append_to_description(seqrecord, text):
    'it appends the text to the seqrecord description'
    desc = get_description(seqrecord)
    if desc in (None, get_name(seqrecord), ''):
        desc = ''
    desc += text
    seqrecord.object.description = desc
        


src/s/e/seq_crumbs-HEAD/crumbs/transcript_orientations.py   seq_crumbs(Download)
from crumbs.annotation import (PolyaAnnotator, EstscanOrfAnnotator,
                               BlastAnnotator)
from crumbs.utils.seq_utils import append_to_description
from crumbs.utils.tags import SEQRECORD
from crumbs.seq import SeqWrapper
                # we mark the reason why it has been reversed
                text = '(reversed because of: {})'.format(reason)
                append_to_description(seq, text)
 
            reorientated_seqrecords.append(seq)