def translate(seq, id = None):
    if id is None:
        s = "translator"
    else:
        s = "translator.id.%d" % id
    translator = default_manager.resolve(seq.alphabet, s)
    return translator.translate(seq)
Example #2
0
def back_transcribe(seq):
    """Back-transcribe a sequence (DEPRECATED)."""
    import warnings
    warnings.warn("Bio.utils.back_transcribe() has been deprecated, and we" \
                  " intend to remove it in a future release of Biopython."\
                  " Please use the back_transcribe method or function in"\
                  " Bio.Seq instead, as described in the Tutorial.",
                  DeprecationWarning)
    transcriber = default_manager.resolve(seq.alphabet, "transcriber")
    return transcriber.back_transcribe(seq)
Example #3
0
def back_transcribe(seq):
    """Back-transcribe a sequence (DEPRECATED)."""
    import warnings
    warnings.warn("Bio.utils.back_transcribe() has been deprecated, and we" \
                  +" intend to remove it in a future release of Biopython."\
                  +" Please use the back_transcribe method or function in"\
                  +" Bio.Seq instead, as described in the Tutorial.",
                  DeprecationWarning)
    transcriber = default_manager.resolve(seq.alphabet, "transcriber")
    return transcriber.back_transcribe(seq)
Example #4
0
def back_translate(seq, id = None):
    """Back-translate a sequence (DEPRECATED)."""
    import warnings
    warnings.warn("Bio.utils.back_translate() has been deprecated, and we"
                  " intend to remove it in a future release of Biopython."
                  " If you use it, please tell us on the mailing list.",
                  DeprecationWarning)
    if id is None:
        s = "translator"
    else:
        s = "translator.id.%d" % id
    translator = default_manager.resolve(seq.alphabet, s)
    return translator.back_translate(seq)
Example #5
0
def back_translate(seq, id=None):
    """Back-translate a sequence (DEPRECATED)."""
    import warnings
    warnings.warn("Bio.utils.back_translate() has been deprecated, and we" \
                  +" intend to remove it in a future release of Biopython."\
                  +" If you use it, please tell us on the mailing list.",
                  DeprecationWarning)
    if id is None:
        s = "translator"
    else:
        s = "translator.id.%d" % id
    translator = default_manager.resolve(seq.alphabet, s)
    return translator.back_translate(seq)
Example #6
0
def translate_to_stop(seq, id = None):
    """Translate a sequence up to the first in frame stop codon (DEPRECATED)."""
    import warnings
    warnings.warn("Bio.utils.translate_to_stop() has been deprecated, and we"
                  " intend to remove it in a future release of Biopython."
                  " Please use the translate method or function in Bio.Seq"
                  " instead, as described in the Tutorial.",
                  DeprecationWarning)
    if id is None:
        s = "translator"
    else:
        s = "translator.id.%d" % id
    translator = default_manager.resolve(seq.alphabet, s)
    return translator.translate_to_stop(seq)
Example #7
0
def translate_to_stop(seq, id=None):
    """Translate a sequence up to the first in frame stop codon (DEPRECATED)."""
    import warnings
    warnings.warn("Bio.utils.translate_to_stop() has been deprecated, and we" \
                  +" intend to remove it in a future release of Biopython."\
                  +" Please use the translate method or function in Bio.Seq"\
                  +" instead, as described in the Tutorial.",
                  DeprecationWarning)
    if id is None:
        s = "translator"
    else:
        s = "translator.id.%d" % id
    translator = default_manager.resolve(seq.alphabet, s)
    return translator.translate_to_stop(seq)
Example #8
0
def total_weight_range(seq, weight_table = None):
    if weight_table is None:
        weight_table = default_manager.resolve(seq.alphabet, "weight_range_table")
    return sum_2ple(seq, weight_table)
Example #9
0
def total_weight_range(seq, weight_table=None):
    if weight_table is None:
        weight_table = default_manager.resolve(seq.alphabet,
                                               "weight_range_table")
    return sum_2ple(seq, weight_table)
def back_transcribe(seq):
    transcriber = default_manager.resolve(seq.alphabet, "transcriber")
    return transcriber.back_transcribe(seq)