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

All Samples(2)  |  Call(0)  |  Derive(0)  |  Import(2)
str(object='') -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

src/s/e/seq_crumbs-HEAD/crumbs/trim.py   seq_crumbs(Download)
 
from crumbs.utils.optional_modules import Seq
from crumbs.utils.tags import (TRIMMING_RECOMMENDATIONS, QUALITY, OTHER,
                               VECTOR, TRIMMING_KINDS, SEQS_PASSED,
                               ORPHAN_SEQS)
    def _do_trim(self, seq):
        'It trims the masked segments of the SeqWrappers.'
        segments = self._matcher.get_matched_segments_for_read(get_name(seq))
        if segments is not None:
            _add_trim_segments(segments[0], seq, kind=VECTOR)

src/s/e/seq_crumbs-HEAD/test/test_trim.py   seq_crumbs(Download)
    seq_to_trim_packets)
from crumbs.utils.bin_utils import BIN_DIR
from crumbs.utils.tags import (SEQRECORD, SEQITEM, TRIMMING_RECOMMENDATIONS,
                               VECTOR, ORPHAN_SEQS, SEQS_PASSED)
from crumbs.seq import get_str_seq, get_annotations, get_int_qualities, get_name
        trim_packets2 = blast_trim(trim_packets[0])
        # It should trim the first and the second reads.
        res = [get_annotations(s).get(TRIMMING_RECOMMENDATIONS, {}).get(VECTOR,
                                                                        [])
                            for l in trim_packets2[SEQS_PASSED] for s in l]
        trim_packets2 = blast_trim(trim_packets[0])
        # It should trim the first and the second reads.
        res = [get_annotations(s).get(TRIMMING_RECOMMENDATIONS, {}).get(VECTOR,
                                                                        [])
                            for l in trim_packets2[SEQS_PASSED] for s in l]