Example #1
0
def open_files():
    global windows_file
    windows_file = open(project_paths.get_window_features_file_path(advanced),
                        'rb')
Example #2
0
def open_files():
    global windows_file
    windows_file = open(project_paths.get_window_features_file_path(advanced), 'rb')
Example #3
0
def open_files():
    global windows_file, predictor_dump_file
    windows_file = open(project_paths.get_window_features_file_path(advanced),
                        'rb')
    predictor_dump_file = util.open_file(predictor_dump_path, 'wb')
Example #4
0
def open_files():
    global predictor_dump_file, windows_file
    predictor_dump_file = open(project_paths.get_peptide_predictor_dump_file_path(advanced), 'rb')
    windows_file = open(project_paths.get_window_features_file_path(advanced), 'rb')
Example #5
0
import asap

from cleavepred import util
from cleavepred import project_paths
from cleavepred.common import window_extraction_params

### Parse arguments ###

project_paths.dataset_name = sys.argv[1]
advanced = util.parse_bool(sys.argv[2])

if len(sys.argv) > 3:
    output_file_path = sys.argv[3]
else:
    output_file_path = project_paths.get_window_features_file_path(advanced)

### Extract the windows ###

annotated_seqs_file = None
seqs_filtration_file = None
csv_output_file = None
extra_tracks_files = {}

def open_files():

    global annotated_seqs_file, seqs_filtration_file, csv_output_file, extra_tracks_files

    annotated_seqs_file = open(project_paths.get_annotated_seqs_file_path(), 'rb')
    seqs_filtration_file = open(project_paths.get_filtered_seqs_file_path(), 'rb')
    csv_output_file = open(output_file_path, 'wb')
Example #6
0
def open_files():
    global predictor_dump_file, windows_file
    predictor_dump_file = open(
        project_paths.get_peptide_predictor_dump_file_path(advanced), 'rb')
    windows_file = open(project_paths.get_window_features_file_path(advanced),
                        'rb')
Example #7
0
def open_files():
    global windows_file, predictor_dump_file
    windows_file = open(project_paths.get_window_features_file_path(advanced), 'rb')
    predictor_dump_file = util.open_file(predictor_dump_path, 'wb')
Example #8
0
import asap

from cleavepred import util
from cleavepred import project_paths
from cleavepred.common import window_extraction_params

### Parse arguments ###

project_paths.dataset_name = sys.argv[1]
advanced = util.parse_bool(sys.argv[2])

if len(sys.argv) > 3:
    output_file_path = sys.argv[3]
else:
    output_file_path = project_paths.get_window_features_file_path(advanced)

### Extract the windows ###

annotated_seqs_file = None
seqs_filtration_file = None
csv_output_file = None
extra_tracks_files = {}


def open_files():

    global annotated_seqs_file, seqs_filtration_file, csv_output_file, extra_tracks_files

    annotated_seqs_file = open(project_paths.get_annotated_seqs_file_path(),
                               'rb')