Commit b0d49869 authored by Alessia Marcolini's avatar Alessia Marcolini
Browse files

load_data function directly in script

parent d36a1631
import argparse
import os
from itertools import combinations
import numpy as np
import pandas as pd
import argparse
from itertools import combinations
from mlpy import borda_count
from input_output import load_data
def load_data(filename):
df = pd.read_csv(filename, sep='\t', header=0, index_col=0)
var_names = df.columns.tolist()
sample_names = df.index.tolist()
data = df.values.astype(dtype=np.float)
return sample_names, var_names, data
class myArgumentParser(argparse.ArgumentParser):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment