コード例 #1
0
ファイル: ex2_2_4.py プロジェクト: Dilkushi/ipython
def gc_content_along_the_chain(dna_sequence, window_size):
    """Returns a list of GC along the DNA sequence
    given a DNA sequence and the size of the sliding window
    """
    sub_sequences = extract_sub_sequences(dna_sequence, window_size)
    gc_results = []
    for sub_sequence in sub_sequences:
        gc_results.append(gc_content(sub_sequence))
    return gc_results
コード例 #2
0
def gc_content_along_the_chain(dna_sequence, window_size):
    """Returns a list of GC along the DNA sequence
    given a DNA sequence and the size of the sliding window
    """
    sub_sequences = extract_sub_sequences(dna_sequence, window_size)
    gc_results = []
    for sub_sequence in sub_sequences:
        gc_results.append(gc_content(sub_sequence))
    return gc_results
コード例 #3
0
ファイル: ex2_2_4.py プロジェクト: Dilkushi/ipython
from ex2_2_2 import gc_content
from ex2_2_3 import extract_sub_sequences


def gc_content_along_the_chain(dna_sequence, window_size):
    """Returns a list of GC along the DNA sequence
    given a DNA sequence and the size of the sliding window
    """
    sub_sequences = extract_sub_sequences(dna_sequence, window_size)
    gc_results = []
    for sub_sequence in sub_sequences:
        gc_results.append(gc_content(sub_sequence))
    return gc_results


dna = 'ATGGTGCATCTGACTCCTGAGGAGAAGTCTGCCGTTACTGCCCTGTGGGGCAAGGTG'
print(gc_content(dna))
print(extract_sub_sequences(dna, 5))
print(gc_content_along_the_chain(dna, 5))
コード例 #4
0
from ex2_2_2 import gc_content
from ex2_2_3 import extract_sub_sequences


def gc_content_along_the_chain(dna_sequence, window_size):
    """Returns a list of GC along the DNA sequence
    given a DNA sequence and the size of the sliding window
    """
    sub_sequences = extract_sub_sequences(dna_sequence, window_size)
    gc_results = []
    for sub_sequence in sub_sequences:
        gc_results.append(gc_content(sub_sequence))
    return gc_results


dna = 'ATGGTGCATCTGACTCCTGAGGAGAAGTCTGCCGTTACTGCCCTGTGGGGCAAGGTG'
print gc_content(dna)
print extract_sub_sequences(dna, 5)
print gc_content_along_the_chain(dna, 5)
コード例 #5
0
from ex2_2_2 import gc_content
from ex2_2_3 import extract_sub_sequences


def gc_content_along_the_chain(dna_sequence, window_size):
    """Returns a list of GC along the DNA sequence
    given a DNA sequence and the size of the sliding window
    """
    sub_sequences = extract_sub_sequences(dna_sequence, window_size)
    gc_results = []
    for sub_sequence in sub_sequences:
        gc_results.append(gc_content(sub_sequence))
    return gc_results

dna = 'ATGGTGCATCTGACTCCTGAGGAGAAGTCTGCCGTTACTGCCCTGTGGGGCAAGGTG'
print(gc_content(dna))
print(extract_sub_sequences(dna, 5))
print(gc_content_along_the_chain(dna, 5))