Skip to content

This is a library of Nearest Template Prediction(NTP) method for python

Notifications You must be signed in to change notification settings

swiri021/Nearest_Template_Prediction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Nearest Template Prediction for Python

This is a library of Nearest Template Prediction method for python

Reference

Nearest Template Prediction: A Single-Sample-Based Flexible Class Prediction with Confidence Assessment

Example :

from algorithm.NTPrediction import NTP
import pandas as pd
import numpy as np

# Import class information for prediction with gene signature
class_information = pd.read_csv('input_example/input_example_class_information.csv', index_col=0)
class_information.index = class_information.index.astype(int).astype(str)

# Expression data
expr = pd.read_csv('input_example/input_example_expression.csv', index_col=0)
expr.index = expr.index.astype(int).astype(str)

ntp = NTP(template_df=class_information, input_df=expr)

# Nominal P-value and it does not have FDR
print ntp.predict(perm=1000)

About

This is a library of Nearest Template Prediction(NTP) method for python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages