Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-patient training #61

Open
chrissype opened this issue Apr 7, 2020 · 2 comments
Open

Multi-patient training #61

chrissype opened this issue Apr 7, 2020 · 2 comments

Comments

@chrissype
Copy link

I would like to run a large scale training task over thousands of labelled patient BAMs. Is this currently supported with neusomatic in any way, or will I have to write some custom code to recombine the generated training data?

@msahraeian
Copy link
Contributor

@chrissype happy to see your interest in NeuSomatic.
Yes, you can train on multiple samples as follows:

  1. For each sample run preprocess.py. This will you give you per sample candidate TSV files in the following paths: sample_i_output/dataset/work.*/candidates*.tsv
  2. Use all the candidate TSV files from multiple samples together to buil a NeuSomatic model using train.py. So, as --candidates_tsv argument you can provide paths to all candidate TSVs, like:

--candidates_tsv sample_*_output/dataset/work.*/candidates*.tsv
OR

--candidates_tsv sample_1_output/dataset/work.*/candidates*.tsv \
sample_2_output/dataset/work.*/candidates*.tsv ... \
sample_n_output/dataset/work.*/candidates*.tsv ... \

@chrissype
Copy link
Author

That's amazing, many thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants