Code Monkey home page Code Monkey logo

Comments (3)

litaifang avatar litaifang commented on June 12, 2024

It's complaining about memory....

Just a thought, you may try the xgboost algorithm in the latest version. XGBoost is orders of magnitudes faster and uses less memory than the original AdaBoost implemented in R.

So if you install the latest SomaticSeq, you can train for xgboost model from your labeled TSV files (yes, it can take multiple tsv files and will combine them automatically):
somatic_xgboost.py train -tsvs sample_1/Ensemble.sSNV.tsv sample_2/Ensemble.sSNV.tsv.... -out SNV.xgboost.classifier -threads 14

To use that classifier on new data:
somatic_xgboost.py predict -tsv Ensemble.sSNV.tsv -model SNV.xgboost.classifier -out Predicted.sSNV.tsv

To see different CLI options: somatic_xgboost.py train -h or somatic_xgboost.py predict -h.

Then, if you want to convert that into VCF file:
SSeq_tsv2vcf.py -tsv Predicted.sSNV.tsv -vcf Predicted.sSNV.vcf -tools [FILL IN ALL THE TOOLS YOU USED] -all -phred -paired.

from somaticseq.

litaifang avatar litaifang commented on June 12, 2024

For xgboost training, you may also pass any of the xgboost training parameters as described here by passing them into the program using this format: --extra-params max_leaves:8 max_bin:16, etc.

from somaticseq.

gianfilippo avatar gianfilippo commented on June 12, 2024

Hi, thanks for the suggestion. For now I increased the memory allocation and the first failed sample completed. Eventually, I will try xgboost as well. Thanks

from somaticseq.

Related Issues (20)

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.