Giter Site home page Giter Site logo

liquidbiopsycancerclassification's Introduction

Liquid Biopsy Cancer Classification

This is the official code repository to the paper Platelet RNA sequencing data through the lens of machine learning.

Used libraries

Python==3.8.10
torch==1.7.1
torchvision==0.8.2
scikit-learn==0.24.1

How to start

First create Python3 virtual environment:

python3 -m venv venv

Then install all required Python packages:

pip install -r requirements.txt

The main file is cnn.py. In this file we must set such variables like:

  • lr_list - list with at least one value of learning rate for our model
  • Dropout_list - list with at least one value of Dropout of final layer for our model
  • wd_list - list with at least one value of weight decay for optimizer of our model
  • train_filename - name of numpy file with indices to the train samples from whole dataset. If doesn't exist it will be created a new file, with new train/test split.
  • test_filename - name of numpy file with indices to the test samples from whole dataset. If doesn't exist it will be created a new file, with new train/test split.
  • result_file - name of csv file for saving results like val and test auc for each fold.
  • log_file - name of txt file for logs from training of a model.

In the same file, in function train we must set variable data_dir and annotation_file to the locations of dataset and file with annotations. It should be equal:

'annotations/Cancer_annotations_mts.csv'

which is set by function annotateCancer.

liquidbiopsycancerclassification's People

Contributors

franek18 avatar pijuszczyk avatar

Stargazers

Nicolae Drabcinski avatar  avatar

Watchers

Sebastian Cygert avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.