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

changed pre.py params to work with single gvcf #113

Merged
merged 1 commit into from
Mar 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions doc/normalisation.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ usage: VCF preprocessor [-h] [--location LOCATIONS] [--pass-only]
[--fixchr] [--no-fixchr] [--bcf] [-v] [-r REF]
[-w WINDOW] [--threads THREADS] [--force-interactive]
[--logfile LOGFILE] [--verbose | --quiet] [--filter-nonref]
[--convert-gvcf-truth] [--convert-gvcf-query]
[--convert-gvcf-to-vcf]
input output
```

Expand Down Expand Up @@ -148,8 +148,7 @@ be used on genome VCFs since attempting to convert a standard VCF will
cause all biallelic variants to be filtered out (most of them).

```
--convert-gvcf-truth Convert the truth genome VCF to a standard VCF.
--convert-gvcf-query Convert the query genome VCF to a standard VCF.
--convert-gvcf-to-vcf Convert the input genome VCF to a standard VCF.
```

Runtime behaviour can also be controlled as follows:
Expand Down
9 changes: 3 additions & 6 deletions src/python/pre.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def preprocessWrapper(args):
args.threads,
args.gender,
args.somatic_allele_conversion,
convert_gvcf_to_vcf=args.convert_gvcf)
convert_gvcf_to_vcf=args.convert_gvcf_to_vcf)

elapsed = time.time() - starttime
logging.info("preprocess for %s -- time taken %.2f" % (args.input, elapsed))
Expand Down Expand Up @@ -316,12 +316,9 @@ def updateArgs(parser):
parser.add_argument('--filter-nonref', dest='filter_nonref', action="store_true", default=False,
help='Remove any variants genotyped as <NON_REF>.')

parser.add_argument('--convert-gvcf-truth', dest='convert_gvcf_truth', action="store_true", default=False,
help='Convert the truth set from genome VCF format to a VCF before processing.')
parser.add_argument('--convert-gvcf-to-vcf', dest='convert_gvcf_to_vcf', action="store_true", default=False,
help='Convert the input set from genome VCF format to a VCF before processing.')

parser.add_argument('--convert-gvcf-query', dest='convert_gvcf_query', action="store_true", default=False,
help='Convert the query set from genome VCF format to a VCF before processing.')

# genotype handling on chrX.
parser.add_argument("--gender", dest="gender", choices=["male", "female", "auto", "none"], default="auto",
help="Specify sex. This determines how haploid calls on chrX get treated: for male samples,"
Expand Down