Skip to content

Getting Started

Matias Samuel Miranda edited this page Oct 23, 2019 · 11 revisions

Before run Mixture or Dash App you need execute the following commands that will download dependencies:

1- Installing Python3

sudo apt install python3

2- Installing pip3

sudo apt install python3-pip

3- Installing python packages

sudo pip3 install pandas numpy scikit-learn multiprocessing joblib xlrd openpyxl

4- Create sample program (i.e test.py)

import pandas as pd
import Mixture
import Mixture.Utils as mut

# Load Data Signature
# LM22 OR TIL10
X = mut.loadSignature('LM22')

# Read xlsx expression file
Y = pd.read_excel('data/NewmanFL.xlsx', sheet_name = 0) 

# Number of cores that will work
cores = 4

# Number of permutation samples
iters = 500

# Name the output file xlsx (without format)
output = 'Result_Newman'

# Run Mixer Function
if __name__ == '__main__':
    result, pValues = Mixture.Mixture(X, Y , cores, iters, output)

5- Into same folder where it is the file that you was make should be data folder with LM22Signature.xlsx

6- in line

Y = pd.read_excel('./data/NewmanFL.xlsx', sheet_name = 0)

you should be expression file path

7- Execute in the terminal the following command and you should see running the program

python3 test.py

image

Clone this wiki locally