forked from hail-is/hail
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make TabixReader take a hadoop configuration in the constructor (hail…
…-is#5033) * Make TabixReader take a hadoop configuration This fixes a bug in import_vcfs as reading the indices and generating partitions is parallelized. * Add cluster test for import_vcfs Also reorganize the cluster tests to be under the python directory, and make it easier to add new scripts. * Make partitions json actually subset the files Before they were just selecting nothing.
- Loading branch information
1 parent
2d76494
commit b1473a7
Showing
7 changed files
with
29 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import json | ||
import hail as hl | ||
|
||
gvcfs = ['gs://hail-ci/gvcfs/HG00096.g.vcf.gz', | ||
'gs://hail-ci/gvcfs/HG00268.g.vcf.gz'] | ||
hl.init(default_reference='GRCh38') | ||
parts = [ | ||
{'start': {'locus': {'contig': 'chr20', 'position': 17821257}}, | ||
'end': {'locus': {'contig': 'chr20', 'position': 18708366}}, | ||
'includeStart': True, | ||
'includeEnd': True}, | ||
{'start': {'locus': {'contig': 'chr20', 'position': 18708367}}, | ||
'end': {'locus': {'contig': 'chr20', 'position': 19776611}}, | ||
'includeStart': True, | ||
'includeEnd': True}, | ||
{'start': {'locus': {'contig': 'chr20', 'position': 19776612}}, | ||
'end': {'locus': {'contig': 'chr20', 'position': 21144633}}, | ||
'includeStart': True, | ||
'includeEnd': True}, | ||
] | ||
parts_str = json.dumps(parts) | ||
vcfs = hl.import_vcfs(gvcfs, parts_str) |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters