Python API Usage - GenomicsDB/GenomicsSampleAPIs GitHub Wiki
Using the Python API
Under the example folder single_position_query.py
shows how to use the APIs. Use the -h
option to get the details of the command line options to run the query.
usage: single_position_query.py [-h] -c CHROMOSOME -p POSITION -a ATTRIBUTES [ATTRIBUTES ...]
Here are the options for single_position_query.py
Option | Description |
---|---|
-h, --help | show this help message and exit |
-c CHROMOSOME, --chromosome CHROMOSOME | Chromosome or contig name that is in the first column of the VCF |
-p POSITION, --position POSITION | position in the contig to query from |
-a ATTRIBUTES [ATTRIBUTES ...], --attributes ATTRIBUTES [ATTRIBUTES ...] | List of attributes to fetch |
Example command
./single_position_query.py -c 1 -s 94986 -a ALT REF QUAL PL AC AN AF