Skip to content

Commit

Permalink
add README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSergeyPixel committed Nov 18, 2022
1 parent 3de0b7c commit b0dd0bd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ We are currently working on creating conda package.

## Usage

Diablo G25 requires basic **gzipped** VCF file (for example, HaplotypeCaller + GenotypeGVCFs output) as input. The
output is always generated as tsv file. Run main.py from downloaded repository as follows:
Diablo G25 requires basic **gzipped** VCF file (for example, HaplotypeCaller + GenotypeGVCFs output) as input.
Important to note, that **VCF has to be annotated with rsID** in ID column (e.g with GATK VariantAnnotator). <br/>
<br/>
The output is always generated as tsv file. Run main.py from downloaded repository as follows:

```
python main.py -i /path/to/vcf/file.vcf -o /desired/output/direcotry/output.tsv -m model_name
Expand Down
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ def main():
mod_scores = admix(os.path.abspath(args.output), args.model)

with open(os.path.join(os.path.split(args.output)[0],
f"{''.join(os.path.split(args.output)[1].split('.')[:-1])}_G25.tsv"), 'w') as g_scores:
f"{''.join(os.path.split(args.output)[1].split('.')[:-1])}_{args.model}.tsv"), 'w') \
as g_scores:
g_scores.write(f"{''.join(os.path.split(args.output)[1].split('.')[:-1])},{mod_scores}")

stop_time = time()
Expand Down

0 comments on commit b0dd0bd

Please sign in to comment.