Skip to content
Open
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
4 changes: 2 additions & 2 deletions src/hatchet/utils/phase_snps.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,8 @@ def liftover(self, infile, chromosome, outname, chain, refgen, ch):
# e.g. small contigs variably present among the assemblies

cmd1 = (
f'{self.picard} LiftoverVcf -I {infile} -O {tmpfile} -CHAIN {chain} -R {refgen} -REJECT {rejfile} '
'--WARN_ON_MISSING_CONTIG true'
f'{self.picard} LiftoverVcf I={infile} O={tmpfile} CHAIN={chain} R={refgen} REJECT={rejfile} '
'WARN_ON_MISSING_CONTIG=true'
)
# need to change 'chr' notation depending on liftover direction
c = chromosome if not ch else f'chr{chromosome}'
Expand Down
2 changes: 1 addition & 1 deletion src/hatchet/utils/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ def main(args=None):
f'{output}/phase/',
'-L',
]
+ (['-N'] if config.genotype_snps.chr_notation else [])
+ glob.glob(f'{output}/snps/*.vcf.gz')
+ (['-N'] if config.genotype_snps.chr_notation else [])
+ extra_args
)

Expand Down