-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathrun_ttmars.sh
More file actions
65 lines (58 loc) · 2.82 KB
/
Copy pathrun_ttmars.sh
File metadata and controls
65 lines (58 loc) · 2.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/bin/bash
# conda create -n ttmars
# conda activate ttmars
# conda install -c bioconda pysam
# conda install -c anaconda numpy
# conda install -c bioconda mappy
# conda install -c conda-forge biopython
# conda install -c bioconda pybedtools
#sample: HG00096 HG00171 HG00513 HG00731 HG00732 HG00864 HG01114 HG01505 HG01596 HG03009
sample=HG00096
reference=path-to-reference_file/hg38.no_alts.fasta
vcf_file=path-to-target-vcf/callset.vcf
#assembly files, can be downloaded by download_asm.sh
asm_h1=path-to-assemblies/h1.fa
asm_h2=path-to-assemblies/h2.fa
output_dir=output-directory
#path to downloaded ttmars files: default ./ttmars_files/sample
files_dir=./ttmars_files/$sample
#provided centromere file
centro_file=centromere_hg38.txt
#provided tandem repeats file
tr_file=hg38_tandem_repeats.bed
#1: if male sample; 2: if female sample
num_X_chr=1
python ttmars.py "$output_dir" "$files_dir" "$centro_file" "$vcf_file" "$reference" "$asm_dir"/h1.fa "$asm_dir"/h2.fa "$tr_file" "$num_X_chr" -s -g -w -d -i -v
# positional arguments:
# output_dir output directory
# files_dir input directory that stores files used in tt-mars for the current sample
# Should include:
# assem1_non_cov_regions_file
# Regions that are not covered on hap1
# assem2_non_cov_regions_file
# Regions that are not covered on hap2
# liftover_file1 liftover file hap1
# liftover_file2 liftover file hap2
# liftover_file1_0 liftover file hap1 asm to ref
# liftover_file2_0 liftover file hap2 asm to ref
# centromere_file centromere file, default is provided by tt-mars
# vcf_file input vcf file
# ref_file reference file
# query_file1 assembly fasta file hap1
# query_file2 assembly fasta file hap2
# tandem_file tandem repeats regions, default is provided by tt-mars
# region_len_m region_len_m
# {1,2} male sample 1, female sample 2
# optional arguments:
# -h, --help show this help message and exit
# -n, --not_hg38 if reference is NOT hg38 (hg19)
# -p, --passonly if consider PASS calls only
# -s, --seq_resolved if consider sequence resolved calls (INS)
# -w, --wrong_len if count wrong length calls as True
# -g, --gt_vali conduct genotype validation
# -i, --gt_info index with GT info
# -d, --phased take phased information
# -v, --vcf_out output results as vcf files, must be used together with -f/--vcf_file
# -f, --false_neg output false negative, must be used together with -t/--truth_file and -f/--vcf_file
# -t TRUTH_FILE, --truth_file TRUTH_FILE
# input truth vcf file, must be used together with -n/--false_neg